Hello,
I have a rosbag in which a /tf topic is recorded.
I need to remap all tf frames in that bag which refer to the frame named '/world' to refer to a new frame named '/vision'. I tried the following but it is unfortunately not working:
rosrun tf tf_remap _mappings:='[{old: /world, new: /vision}]'
Am I missing something?
EDIT: I have also tried to do it from a launch file:
<launch>
<node pkg="tf" type="tf_remap" name="tf_remapper" output="screen">
<rosparam param="mappings">
- {old: "/world",
new: "/vision"}
</rosparam>
</node>
</launch>
but it's not working :(
Could it be that I am missing some argument when calling rosbag play?
EDIT 2: After searching, I found people saying that, in addition to running the tf_remap node, rosbag should be run as follows:
rosbag play x.bag /tf:=/tf_old
I tried it, and still it's not working :(
The tf_frames are still referring to /world rather than /vision.
Any help would be highly appreciated!!
Originally posted by beginner on ROS Answers with karma: 83 on 2015-08-26
Post score: 4
Original comments
Comment by spmaniato on 2016-02-04:
Did you end up figuring this out? I would love to know the answer. Thanks!
Comment by OzzieTheHead on 2021-08-20:
I know this is not what you are asking but, for this use case I would just find&replace