Ask Your Question
3

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

Comments

Seeing the same issue myself.

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

1 Answer

Sort by ยป oldest newest most voted
0

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.

--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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

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

Seen: 525 times

Last updated: Sep 03 '18