Gazebo | Ignition | Community
Ask Your Question

Using an external simulation clock

asked 2017-05-04 12:37:28 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Is it possible to use Gazebo with an external simulation clock source? E.g. have use_sim_time:=true but have the /clock topic published by another process? I'm using ROS:kinetic w/ Gazebo7

I'm trying to glue together some non-ROS programs with Gazebo. One of these monolithic beasts provides a sim clock over UDP and it'd be much easier to write some middleware to pipe it into /clockto set the pace instead of adapting it to use any real of ROS in the short-term (eventually we'd move in that direction).

edit retag flag offensive close merge delete


Hi, I know this was posted long time ago... but I have the same issue, did you find a solution?

iAba gravatar imageiAba ( 2018-03-21 06:06:13 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-21 09:22:30 -0600

nkoenig gravatar image

Gazebo is not setup to consume an external clock. You could write a plugin to Gazebo that controls simulation based on a different clock. For example, your plugin could start simulation paused and subscribe to your custom clock topic. Then, you'd have to step simulation based on the clock information. This will only work if your simulation can run at the same speed or faster than your clock.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-05-04 12:37:28 -0600

Seen: 1,470 times

Last updated: Mar 21 '18