ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

rosbag reindex / fix result in empty bag file.

asked 2017-09-27 08:42:26 -0500

d.fenucci gravatar image

updated 2018-05-23 04:37:16 -0500

Hi to all,

I'm facing with a problem in recovering one bag file marked as *.active. I have tried to execute the sequence reindex / fix, none of them fails, but the resulting .bag file is empty.

Can someone give me some hints?

edit retag flag offensive close merge delete

Comments

Seeing the same issue myself.

nckswt gravatar image nckswt  ( 2018-03-30 14:17:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-03 07:01:31 -0500

Reamees gravatar image

updated 2018-09-03 07:14:19 -0500

Question was asked again recently. And in that specific case the recording was disrupted before anything was written to disk. If the amount of data in the "would be bag" is smaller than the "chunksize" attribute of the bag then all the data would have been lost and there would be nothing to recover.

--chunksize=SIZE

Advanced. Record to chunks of SIZE KB (Default: 768). This is a buffer within the bag file object. Lowering this value will result in more writes to disk.

This question is quite old and the answer might not apply to this specific case, but it has quite a bit of views so I thought I would share my answer here.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2017-09-27 08:42:26 -0500

Seen: 1,165 times

Last updated: Sep 03 '18