bag file is empty after rosbag reindexing and fixing .bag.active file
Hello everyone!
I'm trying to convert .bag.active
file into .bag
file so I can play it inside rqt_bag
program. The thing is, I tried to follow this steps which is to:
rosbag reindex
the.bag.active
file, and thenrosbag fix
.bag.active
file into.bag
file
I do get the message that Bag migration is successful.
after running rosbag fix
, but when trying rosbag play
it says that there are 0 messages to play.
Someone else also asked this question, but there are no answers, so I'm trying again, maybe you can help me.
EDIT: To anybody else reading this question, to recap:
- run
rosbag record
with--chunksize=<some_number>
option.<some_number>
should be a number which is appropriate for how much data in KB you are sending and/or receiving. - run
rosbag reindex <your_bag_active_file>
, e.g.rosbag reindex myfile.bag.active
- run
rosbag fix <your_bag_active_file> <new_bag_file_name>
, e.g.rosbag fix myfile.bag.active mybagfile.bag
What is the size of the bag before you fix it?
.bag.active
file is 528,4 kB and.bag
file after reindex and fix is 4,1 kB.