Ask Your Question
0

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@10.42.0.3

IP of A is 10.42.0.2

master is A

IP of B is 10.42.0.3

<launch>

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

</launch>

but i got this error

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

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

Chrissi gravatar image

Try adding the user and address separately:

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

Comments

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

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

This should solve that issue: http://answers.ros.org/question/41446...

Chrissi gravatar imageChrissi ( 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' 10.42.0.3
Vinh K gravatar imageVinh K ( 2015-12-17 15:05:47 -0600 )edit

But there is new error:

[10.42.0.3-0]: [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 imageVinh 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 imageChrissi ( 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 imageChrissi ( 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 imageChrissi ( 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 imageVinh 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

Stats

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

Seen: 884 times

Last updated: Dec 15 '15