Ask Your Question
0

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

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

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
1

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

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

Comments

That works perfectly. Thanks.

RachitB11 gravatar imageRachitB11 ( 2017-07-11 01:07:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 336 times

Last updated: Jul 11 '17