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

Is there a way to change the /tf in a rosbag?

asked 2017-07-10 13:36:35 -0600

RachitB11 gravatar image

I currently have a rosbag with a /tf topic containing only static transforms. Is there a way I can alter one of the transforms?

I have tried creating a new filtered rosbag not containing the /tf and generating the /tf from a launch file. But I get issues when trying to display the pointclouds in rviz.

I get the error : "Message removed because it is too old" when trying to display PointCloud2 topics.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-11 00:14:02 -0600

Wolf gravatar image

Hi There,

Set the param use_sim_time true before you start both rviz and rosbag and play your rosbag File using

rosbag play --clock <yourfile.bag>

This will cause your BAG to publish Sim time and rviz to believe it was lauched at the time the BAG was Recorder.

edit flag offensive delete link more


That works perfectly. Thanks.

RachitB11 gravatar image RachitB11  ( 2017-07-11 01:07:06 -0600 )edit

Question Tools


Asked: 2017-07-10 13:36:35 -0600

Seen: 748 times

Last updated: Jul 11 '17