Ask Your Question

remote roslaunch failed to launch [closed]

asked 2014-07-21 14:41:58 -0500

Ajay Jain gravatar image

updated 2014-07-21 21:49:37 -0500

Hi all,

I am trying to launch nodes on a remote master machine through a launch file. My ssh keys are setup for passwordless connection. The husky.machine file to configure the launch ssh connections to the remote computer is:

<arg name="robot_0_ip" default="$(env ROS_MASTER_IP)" />

<machine name="robot_0"
         address="$(arg robot_0_ip)"
         timeout="20" />

I stripped down my main launch file, system.launch to this:

    <include file="$(find husky_pursuit)/launch/game/husky.machine" />

    #### 2: ARBITER - ARENA SETUP ###########
    <include file="$(find husky_pursuit)/launch/game/arbiter.launch" /> # local

    #### 3/4: ROBOT - ROBOT LAUNCHES ###########
    <node machine="robot_0" pkg="tf" type="static_transform_publisher" name="base_link_to_laser" args="0.25 0 0.25 0 0 0 /robot_0/base_link /robot_0/laser 40" />

It just launches one node remotely on robot_0 (the master), a static_transform_publisher. Before running this launch file, I ssh into robot_0 and run roscore. The error from running system.launch is:

... logging to /home/ajay/.ros/log/81f340de-1106-11e4-a670-801f02abdf53/roslaunch-i72ubuntu-12392.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://
remote[] starting roslaunch
remote[]: creating ssh connection to, user[ros]
launching remote roslaunch child with command: [env ROS_MASTER_URI=http:// /home/ros/catkin_ws/ roslaunch -c -u http:// --run_id 81f340de-1106-11e4-a670-801f02abdf53]
remote[]: ssh connection created
[] killing on exit
remote roslaunch failed to launch: robot_0

Based on the log file, SSH authentication was successful, but ProcessMonitor shuts down. The log file is at

Why does the remote roslaunch fail to launch?


EDIT: /home/ros/catkin_ws/ env-loader file:

export ROS_WS=/home/ros/catkin_ws
source $ROS_WS/devel/setup.bash
export PATH=$ROS_ROOT/bin:$PATH
export ROS_MASTER_URI=http://

(I added a space between http:// and 192.168.125:11311 because I can't publish links yet. It's not really there on the robot computer).

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ahendrix
close date 2016-12-30 16:44:22.159099


I've usually seen issues like this when there was an error in the environment loader script. Can you edit your question to include your environment loader?

ahendrix gravatar image ahendrix  ( 2014-07-21 20:20:52 -0500 )edit

I added the script. It sources the workspace devel/setup.bash file - does it also need to source /opt/ros/hydro/

Ajay Jain gravatar image Ajay Jain  ( 2014-07-21 21:51:05 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-07-21 23:12:10 -0500

ahendrix gravatar image

Your environment loader looks reasonable, except that the last line should be exec "$@"

edit flag offensive delete link more


Thanks - this worked! Now I just need to resolve my TF extrapolation into the past errors...

Ajay Jain gravatar image Ajay Jain  ( 2014-07-22 20:36:00 -0500 )edit

answered 2016-12-30 16:31:27 -0500

clyde gravatar image
edit flag offensive delete link more


That link just points back to this question; did you intend to link to something else?

ahendrix gravatar image ahendrix  ( 2016-12-30 16:44:02 -0500 )edit

Doh! I pasted this into the wrong window. Pay no attention. :/

clyde gravatar image clyde  ( 2016-12-30 17:58:00 -0500 )edit

Question Tools



Asked: 2014-07-21 14:41:58 -0500

Seen: 4,049 times

Last updated: Dec 30 '16