Ask Your Question
1

rosbag : rewrite the values of a topic

asked 2018-04-16 12:49:12 -0500

lounis gravatar image

Dear all,

what can be the best way to rewrite the values of the messages in a topic in a bag file. For instance, how can I go about creating a new bag that contains modified values of a topic of another bag file (example : multiply the twists in topic of nav_msgs/Odometry messages and store the results in a new bag) ?

Thanks a lot for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-17 03:34:41 -0500

mgruhler gravatar image

You can use the rosbag API. There is an example on the wiki

edit flag offensive delete link more

Comments

Thanks for your answer. I have already seen that page. I have two problems with that : 1. I don't know python 2. Therefore I need a tool or a code snippet that replaces the values in a topic and saves the changes in a new bag

Thanks a lot.

lounis gravatar image lounis  ( 2018-04-17 03:49:28 -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: 2018-04-16 12:49:12 -0500

Seen: 495 times

Last updated: Apr 17 '18