Robotics StackExchange | Archived questions

changing/remove singe tf transformation in a rosbag

Hello

I have a huge bag file and notice that there is a wrong static tf. Is there an easy way to change the bag file? I just want to change a single transformation.

Thanks

Asked by Markus Bader on 2019-08-20 02:59:49 UTC

Comments

Yes: use a simple Python script (examples here) and iterate over all broadcasted TF messages, compare the frame_id to single out the msgs that need to be changed, update them and then write them out again.

there is a wrong static tf.

is this an actual "static TF", or a regular transform that just doesn't change?

Asked by gvdhoorn on 2019-08-20 03:22:49 UTC

Answers