Ask Your Question
0

Adding a topic to an existing rosbag file

asked 2019-08-22 01:04:04 -0500

jaden0747 gravatar image

Hi all, I have a bag file which includes topic /imu/data containing linear, angular velocity messages and their timestamps. How can I add a topic that has the transform calculated based on the velocity messages to my existing rosbag file? Thank you for your time.

edit retag flag offensive close merge delete

Comments

You can write a script using the rosbag API to do that. See the cookbook for examples.

mgruhler gravatar imagemgruhler ( 2019-08-22 04:38:07 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-22 23:06:42 -0500

cassini.huygens gravatar image

One way is what was mentioned in the first comment. Another way is to let this calculation and new topic be published and using the remap tag in lunch file to change the name of the old topic and simply record rosbag again using the new topic.

edit flag offensive delete link more

Comments

1

you are correct, but note that this might lead to some message missing, as the ROS publish/subscribe mechanism is not deterministic and thus cannot guarantee every message to be sent/received properly.

mgruhler gravatar imagemgruhler ( 2019-08-23 01:14:56 -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

2 followers

Stats

Asked: 2019-08-22 01:04:04 -0500

Seen: 16 times

Last updated: Aug 22