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
Asked by kk2105 on 2018-08-16 05:04:26 UTC
Answers
Disabling statistics fixed the issue.
Asked by mbudris on 2019-03-01 09:14:30 UTC
Comments
Can you please elaborate how can I exactly disable the statistics?
Asked by Varshita on 2020-11-09 08:24:06 UTC
http://wiki.ros.org/Topics#Topic_statistics
It is disabled by default, I think, so if you don't know how to disable it, you are probably already there.
Asked by mbudris on 2020-11-09 10:31:04 UTC
Comments
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?Asked by BryceWilley on 2018-08-16 10:15:00 UTC
@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.
Asked by kk2105 on 2018-08-17 01:17:44 UTC
@BryceWilley Could you please help me to fix this issue?
Asked by kk2105 on 2018-08-28 00:54:55 UTC
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.
Asked by billgaspeed on 2018-10-08 04:09:46 UTC
Having the 4.1K issue too.
Asked by mbudris on 2019-02-26 08:39:30 UTC