Jan-Felix Klein
Jan-Felix Klein

Reputation: 119

How to synchronize Webots Time with ROS time?

I'm currently trying to synchronize the ROS time with Webots. What I'm expecting:

However, I'm currently not able to synchronize webots to achieve the above behavior. I followed the instructions mentioned in the Webots documention and in this thread of the old webots forum and set the ros_controller arguments --use_sim_time, --clock and --synchronize to be true, with no success. Both Times still run independently from each other.

I would be glad if anyone would have some feedback how one can achieve the synchronization.

Best regards

Upvotes: 2

Views: 952

Answers (1)

David Mansolino
David Mansolino

Reputation: 1733

It seems you missed one step, you have to set the ROS /use_sim_time parameter to true before starting your ROS node and the simulation so that it will use the time published by the /clock topic: http://wiki.ros.org/Clock#Using_Simulation_Time_from_the_.2BAC8-clock_Topic

Upvotes: 2

Related Questions