Ask Your Question
0

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

Hi,

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?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

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

Comments

4

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 imageThomas ( 2012-07-13 09:07:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 658 times

Last updated: Jul 13 '12