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

rosbag reindex / fix result in empty bag file.

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

d.fenucci gravatar image

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

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


Seeing the same issue myself.

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

1 Answer

Sort by ยป oldest newest most voted

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

Reamees gravatar image

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

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.


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



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

Seen: 1,140 times

Last updated: Sep 03 '18