ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

launch file for another machine

asked 2015-12-15 02:20:02 -0600

Vinh K gravatar image

updated 2015-12-15 02:27:49 -0600

I am trying to do a single master. My ssh password-less is working just by typing as follow: ssh huey@

IP of A is

master is A

IP of B is


    name = "robot" 
    address = "huey@" 
    env-loader = "/opt/ros/indigo/"></machine>
    pkg ="turtlesim" 
    type = "turtlesim_node"
    machine = "robot"></node>


but i got this error

cannot resolve host address for machine [huey@]
The traceback for the exception was written to the log file


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-15 04:38:46 -0600

Chrissi gravatar image

Try adding the user and address separately:

name = "robot" 
address = "" 
user = "huey"
env-loader = "/opt/ros/indigo/"></machine>
edit flag offensive delete link more


Hi chrissi, It gives other issue after this. remote[]: failed to launch on master: is not in your SSH known_hosts file. Please manually: ssh huey@ then try roslaunching again.

Vinh K gravatar image Vinh K  ( 2015-12-16 23:10:48 -0600 )edit

This should solve that issue:

Chrissi gravatar image Chrissi  ( 2015-12-17 02:54:26 -0600 )edit

Chrissi I almost got it to work. Based on the link you have me, this is what i put in the terminal:

ssh -oHostKeyAlgorithms='ssh-rsa'
Vinh K gravatar image Vinh K  ( 2015-12-17 15:05:47 -0600 )edit

But there is new error:

[]: [turtlesim-1] process has died [pid 2638, exit code 1, cmd /opt/ros/indigo/lib/turtlesim`/turtlesim_node `__name:=turtlesim __log:=/home/huey/.ros/log/e75e45ec-a500-11e5-9a9d-f4b7e29bc4b5/turtlesim-1.log].`

when i do the roslaunch on my master laptop.

Vinh K gravatar image Vinh K  ( 2015-12-17 15:13:16 -0600 )edit

Can you run the turtlesim on the other machine without the ssh setup? Also, turtlesim does need a graphical user interface. I don't think that X forwarding will mwork like that. Try DISPLAY=:0 roslaunch ... which might then start the GUI on the remote machine instead of trying to forward it.

Chrissi gravatar image Chrissi  ( 2015-12-18 06:17:45 -0600 )edit

Never tried this though. If this doesn't work, start the turtlesim on the local machine.

Chrissi gravatar image Chrissi  ( 2015-12-18 06:18:16 -0600 )edit

No, this won't work... I don't think you can start nodes that require X remotely using a launch file but I might be mistaken.

Chrissi gravatar image Chrissi  ( 2015-12-18 06:32:19 -0600 )edit

i see. I will just do a basic talker listener from ROS tutorial rather than turtlesim.

Vinh K gravatar image Vinh K  ( 2015-12-18 19:34:19 -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

1 follower


Asked: 2015-12-15 02:20:02 -0600

Seen: 1,320 times

Last updated: Dec 15 '15