read rosbag file without closing it

asked 2019-10-09 18:01:24 -0500

sai krishna gravatar image


Is there any way in either python or c++ to access rosbag file data without stopping or closing it as opening a bag file while it is recording data throws a ROSBagUndexedException and corrupts the bag file in most of the cases.

edit retag flag offensive close merge delete


Afaik: no, this is not possible.

The (final) index is written upon closure, and reading a bag files requires the indices to be present.

gvdhoorn gravatar image gvdhoorn  ( 2019-10-10 01:14:12 -0500 )edit