Rebroadcast tf transforms with different frame_id on the fly
Due to some nomenclature difference between some packages and some simulator (especially considering tf transforms) I am looking for a nice way to change the frame_id and child_frame_id of some tf transforms and republish them directly, without having to touch the source code of any package. I thought about subscribing to /tf and then checking frame_id of each incoming transform. If it is the frame_id i need then create a new transform with the same translation and rotation data but with different frames and broadcast it. For example I have a transform being published by STDR (new 2d simulator)
map_static-> robot0
I want to rebroadcast it to
odom->base_footprint
Is there something already implemented in ROS to do this?
You'll probably have to write that yourself, or reconfigure the frame names in the navigation stack.