read rosbag file without closing it
Hello,
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.
Asked by sai krishna on 2019-10-09 18:01:24 UTC
Comments
Afaik: no, this is not possible.
The (final) index is written upon closure, and reading a bag files requires the indices to be present.
Asked by gvdhoorn on 2019-10-10 01:14:12 UTC
rosbag record --split
will help you, you won't be able to read the very latest bag but there can be recent ones closed out and indexed trailing behind ithttp://wiki.ros.org/rosbag/Commandline#rosbag_record
Asked by lucasw on 2022-06-11 08:56:19 UTC