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

When launching node on remote machine, is the local or remote version of the package used?

asked 2017-03-15 22:22:55 -0500

hwil292 gravatar image

If PC 1 runs Node A on PC 2, does PC 2 use the code from PC 1 or PC2?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-03-16 01:57:58 -0500

gvdhoorn gravatar image

updated 2017-03-16 02:03:17 -0500

What roslaunch really does is start a client roslaunch on PC 2 (using SSH), which is then used by the master roslaunch server on PC 1 to start nodes on PC 2, but those binaries will need to be present on PC 2 (they don't get up or downloaded by anyone in this setup).

So in your words: PC 2 will "use the code from PC 2".

See also wiki/roslaunch/Architecture - Remote Processes for some details about how this works.


Edit: I've seen setups which worked around this limitation by using NFS (or a similar remote FS) to export a workspace that was then shared by all hosts. In this way all hosts would start the exact same nodes, but of course this comes with its own difficulties.

edit flag offensive delete link more

Comments

I thought that was case, but always good to check. Thank you!

hwil292 gravatar image hwil292  ( 2017-03-16 20:44:13 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-15 22:22:55 -0500

Seen: 396 times

Last updated: Mar 16 '17