How to Run Multiple Gazebo Simulations with Unique Clocks
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!