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

Error with roslaunch in remote machine

asked 2011-04-12 03:51:47 -0500

updated 2011-04-14 22:47:11 -0500

I am try to launch my setup remotely. This is my launch file:


  <machine name="auriga" address="" user="auriga" />
  <machine name="local"  address="localhost" />

  <param name="robot_description"     textfile="$(find auriga_model)/auriga_robot_box.urdf" />

  <node  name="laser_hokuyo"          pkg="hokuyo_node" type="hokuyo_node" machine="auriga" respawn="false" output="screen">
    <param name="calibrate_time"      type="bool"       value="false" />            <!-- Starts up faster, but timestamps will be inaccurate. -->
    <param name="port"                type="string"     value="/dev/ttyACM0" />     <!-- Set the port to connect to here -->
    <param name="intensity"           type="bool"       value="false" />
    <param name="min_ang"             type="double"     value="-2.08621" />
    <param name="max_ang"             type="double"     value="+2.08621" />

    <node  name="laser_broadcaster"     pkg="tf"                    type="static_transform_publisher" machine="auriga" args="0 0 0.73 0 0 0 base_link laser 50" />
    <node  name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher"            machine="auriga" />
    <node  name="visualization"         pkg="rviz"                  type="rviz"                       machine="local"/>


And I get the following output:

... logging to /home/jose/.ros/log/0db3bbbc-651b-11e0-ad9f-00032d122e94/roslaunch-RoboIcaro-2938.log
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://RoboIcaro:34567/
remote[] starting roslaunch
remote[]: creating ssh connection to, user[auriga]
remote[]: ssh connection created
remote[]: Exception while registering with roslaunch parent [http://RoboIcaro:34567/]: Traceback (most recent call last):
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/", line 489, in _register_with_server
    code, msg, _ = server.register(name, self.uri)
  File "/usr/lib/python2.6/", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/", line 1489, in __request
  File "/usr/lib/python2.6/", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/", line 1349, in send_content
  File "/usr/lib/python2.6/", line 904, in endheaders
  File "/usr/lib/python2.6/", line 776, in _send_output
  File "/usr/lib/python2.6/", line 735, in send
  File "/usr/lib/python2.6/", line 716, in connect
  File "/usr/lib/python2.6/", line 500, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

[] process has died
remote roslaunch failed to launch: auriga

May it be a bug?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-04-12 04:19:39 -0500

kwc gravatar image

It's a bug that it's not caught, but it also means your network is not configured properly. It's important that you have a proper network setup if you intend to use ROS with remote machines.

In this case, RoboIcaro is not a valid hostname, which is why roslaunch is raising an exception.

Please read:

for a guide on how to test your network config.

edit flag offensive delete link more


Thank you, after configure the network everything works fine.
jsogorb gravatar image jsogorb  ( 2011-04-12 04:52:10 -0500 )edit

Question Tools

1 follower


Asked: 2011-04-12 03:51:47 -0500

Seen: 5,130 times

Last updated: Apr 14 '11