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>
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/", line 828, in rosbagmain
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/", line 146, in info_cmd
      File "/opt/ros/groovy/lib/python2.7/dist-packages/rosbag/", 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 ( but I wasn't able to find anymore information about it.


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