Ask Your Question
0

.bag.active file creating

asked 2021-05-15 05:02:48 -0500

Aleena gravatar image

Hello, I am using ROS melodic along with ti_mmwave_rospkg. I am getting the point cloud that in terminal. I want to record it. I used 'rosbag record /ti_mmwave/radar_scan_pcl_1'. I am getting a file as .bag.active. why is it so? Thanks in advance. Thanks and Regards, Aleena N A

edit retag flag offensive close merge delete

Comments

Check the most voted answer of #q40116

abhishek47kashyap gravatar image abhishek47kashyap  ( 2021-05-15 09:44:30 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-05-15 17:13:40 -0500

updated 2021-05-17 10:19:34 -0500

The most likely cause is that the rosbag wasn't shutdown properly. This could be due to loss of power or network or something else. You can re-index the bag using the command line tool

rosbag reindex <name>.bag.active
rosbag fix .bag.active fixed.bag
edit flag offensive delete link more

Comments

But in the terminal it shows as process has finished cleanly. At starting itself it shows as .bag.active

Aleena gravatar image Aleena  ( 2021-05-16 09:03:50 -0500 )edit

Without analyzing your system it would be hard to understand why it's happening. Does the above command fix it though?

Akhil Kurup gravatar image Akhil Kurup  ( 2021-05-16 11:41:28 -0500 )edit

Does the single line code above mentioned is enough to record data? Anything else has to be written??

Aleena gravatar image Aleena  ( 2021-05-16 12:56:55 -0500 )edit

Just replace <name> With your actual bag file name. This one line should be enough

Akhil Kurup gravatar image Akhil Kurup  ( 2021-05-16 13:19:41 -0500 )edit

After reindexing i got a file as .bag.orig.active. How can I open it? Does the problem solved?

Aleena gravatar image Aleena  ( 2021-05-16 22:33:34 -0500 )edit

It creates a copy of the original bag as .orig. there should also be a reindexed file as .bag.

Akhil Kurup gravatar image Akhil Kurup  ( 2021-05-16 22:49:04 -0500 )edit

If that didn’t work, you can also try

rosbag fix .bag.active fixed.bag

Akhil Kurup gravatar image Akhil Kurup  ( 2021-05-16 22:50:32 -0500 )edit

After reindexing there are only two files. The .bag.active file and .bag.orig.active file. I have done rosbag fix. Then I got a repaired.bag file.

Aleena gravatar image Aleena  ( 2021-05-16 23:48:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-05-15 05:02:48 -0500

Seen: 55 times

Last updated: May 17