[ros-users] Recovering data from corrupted bag files?
achamber at gmail.com
Sat Nov 13 00:03:09 UTC 2010
I captured a large bag file (8GB) onto a flash drive and I'm having
some problems with the bag file. I'm hoping someone has some thoughts
about how to recover the data.
After doing a rosbag check on the file, I'm prompted to reindex. After
reindexing, I can play and get info on the bag file but the duration
of the file is much shorter than it should be.
Here is the output from rosbag info:
duration: 4:12s (252s)
start: Nov 11 2010 13:37:16.53 (1289500636.53)
end: Nov 11 2010 13:41:29.10 (1289500889.10)
size: 8.6 GB
compression: none [1263/1263 chunks]
types: airrobot/airrobotStatus [0e57b2e36051c68a9631c54edf913cc9]
topics: /airrobot_gps_data 1528 msgs @ 6.6 Hz :
/airrobot_imu_data 3057 msgs @ 13.3 Hz :
/airrobot_status 1529 msgs @ 6.6 Hz :
/imu_data 20008 msgs @ 154.8 Hz :
/optilogic_laserscan 27914 msgs @ 111.5 Hz :
/rosout 12 msgs @ 25.9 Hz :
roslib/Log (4 connections)
/rosout_agg 1 msg :
/unicap_camera/camera_info 3792 msgs @ 15.0 Hz :
/unicap_camera/image_raw 3789 msgs @ 15.0 Hz :
You can see the size is 8GB but the duration is only 252 seconds.
Normally when recording bag files on this system, we get about 5MB/sec
but here it is 341 MB/sec. I was using bviplus
(http://bviplus.sourceforge.net/) to look at the raw data in the bag
Here is a link to the file:
More information about the ros-users