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

Synchronization of 2 or more nodes?

asked 2012-07-12 10:39:48 -0600

abdullah gravatar image

updated 2012-07-13 06:23:22 -0600


Is it possible that we can start all nodes in launch file without any delay. Because In my case I am running 3 robots. I am starting nodes for these robots in a launch file. Here I have a problem that every time when I start these nodes, robots do not start moving at once.

Can anyone please guide me that how I can start nodes at the same time?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-13 07:37:27 -0600

roslaunch does not provide any guarantees about timing or ordering. If you need to do synchronization of your nodes, you will probably have to add synchronization code to the nodes themselves.

edit flag offensive delete link more



It is not really a matter of roslaunch not providing this, it is just plainly impossible to achieve a perfect synchronization between three independent processes with the kind of scheduler we have on a standard Linux ;)

Thomas gravatar image Thomas  ( 2012-07-13 09:07:22 -0600 )edit

Question Tools


Asked: 2012-07-12 10:39:48 -0600

Seen: 906 times

Last updated: Jul 13 '12