[ros-users] roslaunch for multiple machines

chris_li gang.li at okstate.edu
Wed Nov 17 17:47:55 UTC 2010

This is my first time to use .launch file, I am trying to run some nodes on
multiple machines.  I have gone through the tutorial and previous posts, but
I still can not find where my mistake is.

Here is my .launch file:


<machine name="host" address="localhost" ros-root="/opt/ros/cturtle/ros"
ros-packge-path="/opt/ros/cturtle/stacks" default="true" >
    <env name="ROS_IP" value="" />
</machine>  %% set my localhost env variable 

<node name="GMapping_SLAM" pkg="gmapping" type="slam_gmapping"
required="true" />
%%node on my host machine

<machine name="Fit" address="" ros-root="/opt/ros/cturtle/ros"
ros-packge-path="/opt/ros/cturtle/stacks" user="***" password="***"
default="never" >
    <env name="ROS_MASTER_URI" value="" />
    <env name="ROS_IP" value="" />
</machine>  %%I am using my host machine's IP instead of its name

<node name="Hokuyo" pkg="hokuyo_node" type="hokuyo_node" machine="Fit"
required="true" />
%%node on the other machine


After I roslaunch this, I got this:

... logging to
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://***-toshibalaptop:43812/
remote[] starting roslaunch
remote[]: creating ssh connection to,
remote[]: ssh connection created
remote[]: Exception while registering with roslaunch parent
[http://***-toshibalaptop:43812/]: Traceback (most recent call last):
  File "/opt/ros/cturtle/ros/tools/roslaunch/src/roslaunch/server.py", line
489, in _register_with_server
    code, msg, _ = server.register(name, self.uri)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
  File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content
  File "/usr/lib/python2.6/httplib.py", line 892, in endheaders
  File "/usr/lib/python2.6/httplib.py", line 764, in _send_output
  File "/usr/lib/python2.6/httplib.py", line 723, in send
  File "/usr/lib/python2.6/httplib.py", line 704, in connect
  File "/usr/lib/python2.6/socket.py", line 500, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

[] killing on exit
remote roslaunch failed to launch: Fit

>From the error message, it seems that the name or some path information is
missing.  But I did set the env ROS_MASTER_URI and ROS_IP and, I also reset
ros-root and ros-package-path for the remote machine. (this seems to be the
problem in previous posts about roslaunch issues).

Any suggestion is really appreciated~


View this message in context: http://ros-users.122217.n3.nabble.com/roslaunch-for-multiple-machines-tp1918649p1918649.html
Sent from the ROS-Users mailing list archive at Nabble.com.

More information about the ros-users mailing list