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

How do you change the message in a rosbag. For eg. from string to float [closed]

asked 2016-07-26 10:51:30 -0600

chezzydc10 gravatar image

updated 2016-07-27 10:21:25 -0600

NEngelhard gravatar image

How do you change the message in a rosbag. For eg. from string to float

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by chezzydc10
close date 2016-07-28 11:12:47.982265

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-07-27 15:47:12 -0600

Chrissi gravatar image

You can migrate messages in your rosbag. Let's say you have a custom message which had a string in it but in a recent version it changed to a float. Given the old message definition and the new, you can create a rule file automatically and adapt it to tell it how to transform the string correctly. Then you can run rosbag fix and it does all the magic conversion for you. Have a look at the rosbag migration tutorial.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-26 10:51:30 -0600

Seen: 1,228 times

Last updated: Jul 27 '16