rosbag record -a - not collecting bag file
Hi Guys,
I am trying to capture the bag files for all the ROS topics using rosbag record -a.
And when I terminate the record using Ctrl+C, the bag file captured is showing in .bag.active status and it looks like no data is being captured as the size of the file is 4.1 kB.
If I give topics individually it runs without any issue capturing the bag file.
Can anybody please help me to fix this issue?
Troubleshooting steps taken: Tried reindexing with rosbag reindex but no luck. Moreover size of the file is 4.1 kB.
Thank you. KK
We might need a little more information about how you are running
rosbag
. From this page,rosbag record -a
might miss some messages if you start the topics after startingrosbag
. Are you startingrosbag
before or after your other topics?@BryceWilley Thanks for the response. I am starting the rosbag after I start the topics. If I collect the rosbag separately for each topic it works fine without any issues. And also it seems like file is corrupted as the file size is only 4.1 kB.
@BryceWilley Could you please help me to fix this issue?
I have similar problems, too. The bag i create is always only 4.1kB and cannot be used to run VINS. Need help. Thanks a lot.
Having the 4.1K issue too.