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

failed to roslaunch remotely on another computer

asked 2016-11-11 01:37:49 -0500

johnyang gravatar image

updated 2016-11-13 19:35:12 -0500

I am trying to remotely launch realsense from another computer. Pinging the remote PC has no problem. I can also execute the launch file from remote computer with roscore on my current PC successfully. I tried to set up a launch file like following:

    <machine name="croc3up1" address="" user="croc3up1" password="croc3up1" env-loader="~/catkin_ws/src/croc3_robot/config/" default="true"/>
    <!-- just testing a simple node-->
    <node machine="croc3up1" pkg="tf" type="static_transform_publisher" name="virtual_joint_broadcaster_0" args="0 0 0 0 0 0 link0 world 100" />

I also tried this:

<include file="$(find realsense_test)/launch/realsense_test.launch" machine="croc3up1"/>

However I am getting the following error message:

... logging to /home/johnyang/.ros/log/25f83d3e-a7db-11e6-bef6-086266c7c72e/roslaunch-johnyang-ubuntu1404-7206.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 :33411/
remote[] starting roslaunch
remote[]: creating ssh connection to, user[croc3up1]
launching remote roslaunch child with command: [env ROS_MASTER_URI=http://localhost:11311 ~/catkin_ws/src/croc3_robot/config/ roslaunch -c -u :33411/ --run_id 25f83d3e-a7db-11e6-bef6-086266c7c72e]
remote[]: ssh connection created
remote[]: [:33411/] is not a launch file name
The traceback for the exception was written to the log file

[] killing on exit
remote roslaunch failed to launch: croc3up1
The traceback for the exception was written to the log file looks like following:

export ROS_HOSTNAME=""
export ROS_IP=""
. ~/catkin_ws/devel/
exec "$@"

It sounded like the file is executed properly and ssh connection is established correctly. However it seemed having difficulty finding the the correct launch file to execute (throwing "is not a launch file name" error). The launch file is definitely put on the 2nd PC.

If I just manually ssh into the 2nd PC and I can perform all the roslaunch straight away (since I setup source ~/catkin/devel/setup.bash in ~/.bashrc etc already).

Any clue why using the "machine" tag to remotely start launch files does not work here? (I'm using ROS Jade) Thanks.

edit retag flag offensive close merge delete


I found something suspicious in the terminal output. There is a space between "" and ":33411"... which is probably the major reason of the error. Maybe there is a bug in the source code for ROS Jade

johnyang gravatar image johnyang  ( 2016-11-13 21:10:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-13 22:02:22 -0500

johnyang gravatar image

I figured out eventually after going through the log and source code of roslaunch. It's actually because I had "export ROS_HOSTNAME=hostname -I" instead of "export ROS_HOSTNAME=". This will then not create that extra space behind the server uri.

edit flag offensive delete link more


If you are going to use IPs, please consider setting ROS_IP instead of ROS_HOSTNAME. See wiki/EnvironmentVariables - Node Environment Variables - ROS_IP/ROS_HOSTNAME for some info on those variables.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-14 04:23:50 -0500 )edit

That's a good point. Thanks.

johnyang gravatar image johnyang  ( 2016-11-15 17:51:36 -0500 )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: 2016-11-11 01:37:49 -0500

Seen: 1,097 times

Last updated: Nov 13 '16