Ask Your Question
0

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

edit retag flag offensive close merge delete

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

BryceWilley gravatar imageBryceWilley ( 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 imagekk2105 ( 2018-08-17 01:17:44 -0500 )edit

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

kk2105 gravatar imagekk2105 ( 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 imagebillgaspeed ( 2018-10-08 04:09:46 -0500 )edit

Having the 4.1K issue too.

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

1 Answer

Sort by ยป oldest newest most voted
0

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

mbudris gravatar image

Disabling statistics fixed the issue.

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

2 followers

Stats

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

Seen: 207 times

Last updated: Mar 01