If having trouble with a rosbag-file that havn't been stopped properly, the file will often have an .active
extension, telling that the file needs to be reindexed.
To fix this, do the following:
- Install rosbag:
sudo apt install python3-rosbag
- Run follwing command:
rosbag reindex brokenfile.bag.active
The new file will have the same name as the previous file e.g., (brokenfile.bag.active
). Just remove the .active
and use it as an ordinary .bag file