ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to save a point cloud?

asked 2011-11-06 18:34:17 -0500

liquidmonkey gravatar image

i'm starting my first ros project :) i have rviz up with a point cloud from a sensor. how do i save that point cloud for offline testing? i'd like to save just one frame as well as 10 minutes worth.

how can i do that?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-11-06 19:00:31 -0500

Take a look at the following documentation pages:

  • rosbag can record and play ROS topics. This is the best way to record data if you want to emulate the live system behavior and/or avoid extra code to deal with file I/O.
  • You can also read and write point clouds from/to PCD files.
edit flag offensive delete link more


looks great, thank you! is it possible to convert a bag file into a pcd file for viewing of the point cloud? or will rosbag play take care of that?
liquidmonkey gravatar image liquidmonkey  ( 2011-11-06 19:58:20 -0500 )edit
"rosbag play" publishes the recorded ROS topic, so you can visualize it pretty much the same way as if the data were live. There is also a tool bag_to_pcd in the pcl_ros package. It's your choice.
roehling gravatar image roehling  ( 2011-11-06 21:28:47 -0500 )edit
bag_to_pcd is exactly what i'm looking for, thanks!
liquidmonkey gravatar image liquidmonkey  ( 2011-11-07 01:39:51 -0500 )edit

Question Tools

1 follower


Asked: 2011-11-06 18:34:17 -0500

Seen: 7,241 times

Last updated: Nov 06 '11