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

rosbag record -a - not collecting bag file

asked 2018-08-16 05:04:26 -0500

kk2105 gravatar image

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

edit retag flag offensive close merge delete


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 starting rosbag. Are you starting rosbag before or after your other topics?

BryceWilley gravatar image BryceWilley  ( 2018-08-16 10:15:00 -0500 )edit

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

kk2105 gravatar image kk2105  ( 2018-08-17 01:17:44 -0500 )edit

@BryceWilley Could you please help me to fix this issue?

kk2105 gravatar image kk2105  ( 2018-08-28 00:54:55 -0500 )edit

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.

billgaspeed gravatar image billgaspeed  ( 2018-10-08 04:09:46 -0500 )edit

Having the 4.1K issue too.

mbudris gravatar image mbudris  ( 2019-02-26 07:39:30 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-01 08:14:30 -0500

mbudris gravatar image

Disabling statistics fixed the issue.

edit flag offensive delete link more


Can you please elaborate how can I exactly disable the statistics?

Varshita gravatar image Varshita  ( 2020-11-09 07:24:06 -0500 )edit

It is disabled by default, I think, so if you don't know how to disable it, you are probably already there.

mbudris gravatar image mbudris  ( 2020-11-09 09:31:04 -0500 )edit

Question Tools



Asked: 2018-08-16 05:04:26 -0500

Seen: 960 times

Last updated: Mar 01 '19