Cannot read from rosbag [closed]

asked 2013-05-21 16:15:29 -0500

adobke gravatar image

I have recorded a rosbag (600 mb) that must've not exited cleanly because attempts to read it ask for it to be reindexed.

After I reindex the bag then try to read it I get the following error:

rosbag info [...].bag

    Traceback (most recent call last):
      File "/opt/ros/groovy/bin/rosbag", line 35, in <module>
        rosbag.rosbagmain()
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/rosbag_main.py", line 828, in rosbagmain
        cmds[cmd](argv[2:])
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/rosbag_main.py", line 146, in info_cmd
        print(b)
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/bag.py", line 422, in __str__
        start_stamp = min([index[ 0].time.to_sec() for index in self._connection_indexes.itervalues()])
    IndexError: list index out of range

I am not able to read any messages from it using the python api either. Are there any other ways I might be able to extract the data from this bag?

This questions seems to be the same as (http://answers.ros.org/question/11153/problem-with-rosbag-reindex/) but I wasn't able to find anymore information about it.

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-07-27 18:08:11.805956