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

How to Run Multiple Gazebo Simulations with Unique Clocks

asked 2016-08-26 08:50:01 -0500

JaredMoore gravatar image

As a follow on to my previous question: http://answers.ros.org/question/24100...

I'm trying to run multiple Gazebo simulations on one machine, using the <group> tag to encapsulate each simulation within its own namespace. So far, this works fine. I'm able to launch the simulations, the robot URDF is loaded and parsed and the simulations proceed.

However, I'm running into one outstanding issue which I am unsure how to/if it can be addressed. For example, if I run four separate Gazebo simulations, each in their own namespaced group, the /clock topic is not namespaced. Therefore, each of the four simulations is writing and reading from a common clock leading to synchronization problems and incorrect simulation times. One simulation might run smoothly, but another might jump around timewise depending on how the underlying operating system schedules the processes.

This leads to wildly unpredictable results and invalid simulations.

Is there a way to place the /clock within the scope of a <group> tag? I've been unable to find an example or documentation of this after a fairly comprehensive search. I'm almost thinking that it is not possible, but will wait for confirmation.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-31 11:52:52 -0500

JaredMoore gravatar image

The solution should be to use the <remap> tag and remap /clock per group. However, on Kinectic there seems to be a problem with this currently. See question http://answers.ros.org/question/24265... for a detailed look at the problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-26 08:50:01 -0500

Seen: 442 times

Last updated: Aug 31 '16