Robotics StackExchange | Archived questions

Permission denied with running roslaunch for multiple machines

Hey all, I searched through the forums and I didn't see anyone with this particular issue so I figure'd I'd post here. Pardon me if someone already answered this question and I missed it. Anyways, so I have a roslaunch file set up to start nodes on multiple machines, one being my computer, and the other being an O-Droid which will control the robot. The purpose is to send remote commands from my computer to the robot.

My roslaunch file is below:

   <?xml version="1.0"?>
<!--xml file for roslaunch
    roslaunch will navigate through xml file launching all nodes automatically
-->

<launch>
    <!--Machine declarations-->
    <machine name="Command" address="localhost" env-loader="/home/viki/env.sh"/>
    <machine name="O-Droid" address="odroid" env-loader="/home/odroid/env.sh" user="odroid"/>

    <!--Hardware Interface nodes-->
    <node machine="O-Droid" name="i2c_node"      pkg="hardware_interface" type="i2c_node"/>
    <node machine="O-Droid" name="adafruit_node" pkg="hardware_interface" type="adafruit_node"/>
    <node machine="O-Droid" name="adc_node"      pkg="hardware_interface" type="adc_node"/>

    <!--node name="ina226_node"   pkg="hardware_interface" type="ina266_node"/-->

    <!--Joy nodes-->
    <node machine="Command" name="joy_node" pkg="joy" type="joy_node"/>
    <!--Joy parameters-->

    <!--LADAR Nodes-->
    <!--<node name="urg_node" pkg="urg" type="?"/>-->
    <!--node name="ladar_node" pkg="ladar" type="ladar_node"/-->

    <!--Motor Controller nodes-->
    <node machine="O-Droid" name="bucket_motor_node" pkg="motor_controller" type="bucket_motor_node"/>
    <node machine="O-Droid" name="linear_actuator_node" pkg="motor_controller" type="linear_actuator_node"/>
    <node machine="O-Droid" name="wheel_motor_node" pkg="motor_controller" type="wheel_motor_node"/>

    <!--Power Monitering nodes-->
    <!--node name="power_monitoring_node" pkg="power_monitoring" type="power_monitoring_node"/-->

    <!--Remote Control nodes-->
    <node machine="Command" name="remote_control_node" pkg="remote_control" type="xbox_controller_node"/>

    <!--Remote Control Paramaters-->
    <param name="remote_control/send_freq" value="10"/>
    <param name="remote_control/xbox_controller/mapping" value="2"/>


</launch>

When i first ran the roslaunch, I got this output:

remote[odroid-0]: env: /home/odroid/env.sh: Permission denied

[odroid-0] process has died remote roslaunch failed to launch: O-Droid

I edited permissions on the O-Droid and now when I run my roslaunch file I get this output:

remote[odroid-0]: Exception while registering with roslaunch parent [http://ROS:56437/]: Traceback (most recent call last): File "/opt/ros/hydro/lib/python2.7/dist-packages/roslaunch/server.py", line 498, in registerwithserver code, msg, _ = server.register(name, self.uri) File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in _call__ return self.send(self.name, args) File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in request verbose=self.verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request return self.singlerequest(host, handler, requestbody, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in singlerequest self.sendcontent(h, requestbody) File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in sendcontent connection.endheaders(requestbody)
File "/usr/lib/python2.7/httplib.py", line 969, in endheaders self.
sendoutput(messagebody) File "/usr/lib/python2.7/httplib.py", line 829, in sendoutput self.send(msg) File "/usr/lib/python2.7/httplib.py", line 791, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 772, in connect self.timeout, self.sourceaddress) File "/usr/lib/python2.7/socket.py", line 553, in createconnection for res in getaddrinfo(host, port, 0, SOCK_STREAM): error: [Errno 2] No such file or directory

[odroid-0] process has died

remote roslaunch failed to launch: O-Droid

I have no idea how to debug this, so any help is appreciated. Also I apologize for any formatting errors, Im relatively new to posting on the site.Thank you very much!

Asked by Dapake on 2014-05-02 15:55:51 UTC

Comments

hey @dapake! did you manage to solve this issue? I'm having the same problem. question link

Asked by linusnie on 2017-08-08 04:03:36 UTC

Answers