Ask Your Question
1

how to save a point cloud?

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

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?

thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

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

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

Comments

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 imageliquidmonkey ( 2011-11-06 19:58:20 -0600 )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 imageroehling ( 2011-11-06 21:28:47 -0600 )edit
bag_to_pcd is exactly what i'm looking for, thanks!
liquidmonkey gravatar imageliquidmonkey ( 2011-11-07 01:39:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 4,579 times

Last updated: Nov 06 '11