remote launch

asked 2015-03-18 06:27:32 -0500

mree gravatar image

I want to remote run some nodes, below was my coding

<launch>
  <!-- This assumes roscore is running on other machine -->
  <env name="ROS_MASTER_URI" value="http://robot1:11311"/>

  <machine name="robot1" address="192.168.0.101" password="123456" env-loader="/home/robot1/catkin_ws/test.sh" user="robot1"/>


  <group ns="robot1">
    <node machine="robot1" pkg="rqt_graph" type="rqt_graph"  name="rqt_graph">
    </node>
  </group>

</launch>

the sh file as below:

#!/bin/bash

export ROS_WS=/home/robot1/catkin_ws
export PATH=$ROS_ROOT/bin:$PATH
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$ROS_WS
exec "$@"

Then its show the error like that

error launching on [192.168.0.101-0, uri http://robot1:59866/]: ERROR: Traceback (most recent call last):
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/server.py", line 323, in launch
    succeeded, failed = runner.launch()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 644, in launch
    self._setup()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 620, in _setup
    self._launch_master()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 409, in _launch_master
    self._check_and_set_run_id(param_server, self.run_id)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 440, in _check_and_set_run_id
    raise RLException("run_id on parameter server does not match declared run_id: %s vs %s"%(val, run_id))
RLException: run_id on parameter server does not match declared run_id: 646b03ea-cd93-11e4-8335-c4d9876410bd vs 0620d648-cd57-11e4-beca-3417eba36e32

Launch of the following nodes most likely failed: rqt_graph/rqt_graph
edit retag flag offensive close merge delete