Skip to content

Instantly share code, notes, and snippets.

@svinz
Created January 16, 2023 11:30
Show Gist options
  • Save svinz/c65d6385682bdcdfea095afc53863351 to your computer and use it in GitHub Desktop.
Save svinz/c65d6385682bdcdfea095afc53863351 to your computer and use it in GitHub Desktop.
How to reindex a rosbag file that is marked as still active

Reindex of rosbag file

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment