Errors when using rosbag

Error: Unindexed bag

If you see this message:

$ rxbag 
Error loading []: Unindexed bag

or this output from rqt_bag

Traceback (most recent call last):
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_bag/", line 236, in _handle_load_clicked
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_bag/", line 239, in load_bag
    bag = rosbag.Bag(filename)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/", line 159, in __init__
    self._open(f, mode, allow_unindexed)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/", line 890, in _open
    if   mode == 'r': self._open_read(f, allow_unindexed)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/", line 917, in _open_read
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rosbag/", line 2037, in start_reading
    raise ROSBagUnindexedException()
rosbag.bag.ROSBagUnindexedException: Unindexed bag

Run "rosbag reindex" to index the bagfile.

Wiki: rosbag/Troubleshooting (last edited 2013-12-13 19:44:42 by LucasWalter)