remote roslaunch failed to launch error

asked 2015-10-16 14:10:14 -0500

dobe gravatar image


I'm trying to use 2 RaspberryPis to record video with, using the ROS and raspicam_node. Working with one camera works fine, but when I fire up the second camera, the first one disconnects saying that the node name has been reassigned to a new one. If I launch one as raspicam_node and the second camera as raspicam_raw_node, both cameras stream st the same time, but I need both as raspicam_raw_nodes.

I saw that you can use ROS launch configurations to have several nodes of the same name and roslaunch will rename them internally. I set up my roslaunch file, however, I get an error when executing it. Here is the full output in verbose mode:

... logging to /home/pi/.ros/log/e4996e78-6fda-11e5-8a6d-b827eb9e23de/roslaunch-rpi2-2-2689.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.

... loading XML file [/opt/ros/groovy/etc/ros/roscore.xml]
... executing command param [rosversion roslaunch]
Added parameter [/rosversion]
... executing command param [rosversion -d]
Added parameter [/rosdistro]
Added core node of type [rosout/rosout] in namespace [/]
... loading XML file [record-stereo-90fps-640-480-raw.launch]
Added machine [1]
Added machine [2]
Added node of type [raspicam/raspicam_raw_node] in namespace [/]
Added node of type [raspicam/raspicam_raw_node] in namespace [/]
started roslaunch server http://rpi2-2:41361/
remote[] starting roslaunch
remote[]: creating ssh connection to
launching remote roslaunch child with command: [env ROS_MASTER_URI= /home/pi/ROS- roslaunch -c -u http://rpi2-2:41361/ --run_id e4996e78-6fda-11e5-8a6d-b827eb9e23de]
remote[]: ssh connection created
[] process has died
remote roslaunch failed to launch: 1

This is my roslaunch file:

  <!-- roscore is running on 1 -->
  <env name="ROS_MASTER_URI" value=""/>

  <!-- roscore is running on 2 -->
  <!--<env name="ROS_MASTER_URI" value=""/>-->

  <machine name="1" address="" env-loader="/home/pi/" />
  <machine name="2" address="" env-loader="/home/pi/"/>

  <node machine="1" name="righteye" pkg="raspicam" type="raspicam_raw_node" args="_framerate:=90 _width:=640 _height:=480" respawn="true">
    <remap from="camera/image" to="cameraright/image"/>
    <remap from="camera/camera_info" to="cameraright/camera_info"/>

  <node machine="2" name="lefteye" pkg="raspicam" type="raspicam_raw_node" args="_framerate:=90 _width:=640 _height:=480" respawn="true">
    <remap from="camera/image" to="cameraleft/image"/>
    <remap from="camera/camera_info" to="cameraleft/camera_info"/>

Also, the contents of (on machine 2, machine 1 IP addresses end with .1):


export ROS_IP=

. /opt/ros/groovy/
. /home/pi/catkin_ws/devel/

I'm fairly new to ROS, any help would be appreciated or tips, e.g. which log files to look at to help me find the problem, would also help.

One last question, the roslaunch files are only used for configuration, right ... (more)

edit retag flag offensive close merge delete