How to log data from simulated LiDARs

Issue #10 closed
Boris Leroux created an issue

Hi, impressive work, thanks for sharing. I'm really a newbie at ROS and Gazebo, but I need velodyne simulated data for research purpose.

I would like to know if you can give us a simple way to record the simulated data in a text file ?

When the simulation is running I've tried :

rostopic echo /velodyne_points > test.txt

But it don't look like the best way to do it. Please let me know

Chears Boris

Comments (2)

  1. Kevin Hallenbeck

    Thanks, but you might get better answers with a larger audience on https://answers.ros.org/

    The rosbag package can be used to record and playback any topic in ROS. There are several methods to convert rosbag files to csv files:
    https://www.google.com/search?q=rosbag+csv&oq=rosbag+csv

    It might be helpful to convert from a PointCloud2 to a PointCloud first:
    https://www.google.com/search?q=ros+convert+pointcloud2+to+pointcloud&oq=ros+convert+pointcloud2+to+pointcloud

  2. Log in to comment