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

Revision history [back]

click to hide/show revision 1
initial version

A .bag file is just an store of serialized ROS messages of any kind. It has no affinity for any particular type of message (such as PointCloud) and so you can't open a .bag file in any application unless that application is specifically written to read a .BAG file, and for that, it would need to incorporate the ROS C libraries that read and write to bag files (http://wiki.ros.org/rosbag/Code%20API).

So, the answer would be no. The main app that opens bag files is rqt_bag, a plugin for the rqt ROS GUI framework. If you want to visualize a pointcloud, you can do it with RVIZ fairly easily, but I appreciate you may want to edit it or otherwise analyze it. One thing you can do, is just do a "rostopic echo <yourpointcloudtopic> and pipe the output to a file. The resulting data is very easily modified in a text editor to become a .ply file. You can look up the .ply specification, but it is just a little metadata and all the x,y,z points that constitute your cloud. Be very quick to hand-modify the rostopic echo data into a .ply file and then you can import into meshlab or whatever you like.