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.
Afaik: no, this is not possible.
The (final) index is written upon closure, and reading a bag files requires the indices to be present.
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/Commandlin...