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

identical ros nodes

asked 2016-03-14 11:52:16 -0500

Satori gravatar image

updated 2016-03-14 13:17:15 -0500

Hello,

I am trying to launch a ROS node per ssh on a Ubuntu computer where the same node (different executable) is being launched at the same time (by a friend). I am doing this from a different user account, but both nodes are crashing when doing this. My question is: is it possible for us both to run the same node simultaneously without affecting each other?

Greetings

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-14 13:19:51 -0500

mgruhler gravatar image

Yes and no.

You can run the same node (i.e. even the same executable) multiple times, if you give them different names in roslaunch (check the roslaunch syntax).

You cannot launch two nodes (does not matter if it is the same or another executable) with the same name

edit flag offensive delete link more

Comments

OK, but if I have launch file which starts lots of other nodes as well, would this still work? or do I have to rename all other nodes as well?

Satori gravatar image Satori  ( 2016-03-14 13:39:27 -0500 )edit
1

Yes; you'll have to rename every node, or push the whole launch file into a namespace.

ahendrix gravatar image ahendrix  ( 2016-03-14 14:01:00 -0500 )edit
1

Be careful running multiple copies of the same node or set of nodes; if both use the same topics, you could end up with multiple nodes publishing on the same topic. Depending on what your subscribers on that topic do with the data, they could behave poorly.

ahendrix gravatar image ahendrix  ( 2016-03-14 14:03:29 -0500 )edit

Question Tools

Stats

Asked: 2016-03-14 11:52:16 -0500

Seen: 799 times

Last updated: Mar 14 '16