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

Where do I get internal structure of rosbag file?

asked 2019-12-05 01:29:57 -0600

prajyot gravatar image

updated 2019-12-05 03:43:04 -0600

gvdhoorn gravatar image

Hi all, I want know about data structure of ros bag file because I want to parse ros bag file on non ros system using c++ language. If any one know please help me.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-05 03:40:23 -0600

gvdhoorn gravatar image

updated 2019-12-05 03:42:57 -0600

The format is documented here: wiki/Bags/Format/2.0.

Instead of writing something from scratch, you may want to look at something like ros/ros_comm/tools/rosbag_storage, which is the C++ library underlying the rosbag set of tools.

It does have some dependencies on other pieces of ROS, but those could potentially be removed.

See also #q267309 for a previous Q&A about this topic.

edit flag offensive delete link more

Question Tools



Asked: 2019-12-05 01:29:57 -0600

Seen: 337 times

Last updated: Dec 05 '19