ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Dapake's profile - activity

2014-09-23 03:59:01 -0500 received badge  Famous Question (source)
2014-05-11 04:38:03 -0500 received badge  Notable Question (source)
2014-05-05 20:50:52 -0500 received badge  Popular Question (source)
2014-05-02 15:57:38 -0500 received badge  Editor (source)
2014-05-02 15:55:51 -0500 asked a question 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 _register_with_server 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.single_request(host, handler, request_body, verbose) File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request self.send_content(h, request_body) File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content connection.endheaders(request_body)
File "/usr/lib/python2.7/httplib.py", line 969, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 829, in _send_output 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.source_address) File "/usr/lib/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0 ...

(more)
2014-04-17 00:44:04 -0500 received badge  Famous Question (source)
2014-01-29 14:48:29 -0500 received badge  Notable Question (source)
2014-01-29 12:50:24 -0500 commented answer Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml

Ahh I see! Ok I just fixed that error. Now, for some reason it cannot find my listener.cpp file, but the listener file is in the correct directory. Also, thank you very much for the help by the way. Im new to ROS but Im using it for a university design team

2014-01-29 11:52:05 -0500 commented answer Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml

I just made a Github repo containing my package.xml and CMakeLists.txt files:https://github.com/dkelly67/ROS_Code My command line input is just "catkin_make" in the ~/catkin_ws directory

2014-01-29 08:55:10 -0500 received badge  Popular Question (source)
2014-01-29 08:33:32 -0500 commented answer Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml

Post has been edited to include the package.xml

2014-01-29 07:47:22 -0500 commented answer Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml

Thank you for the reply, but this line is already added in my package.xml, which is why I am so confused.

2014-01-28 16:18:25 -0500 asked a question Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml

Hello all,

I am currently doing the ROS tutorial (I am on the 'writing a simple publisher and subscriber in C++). When I enter the 'catkin_make' command into the terminal, I first got the add_message_files() directory not found error. To fix this I went into the CMakeLists.txt file and commented out the add_message_file(), add_service_file() and so on. This got rid of that error, however, I am now getting this error when running 'catkin_make':

"Cmake Error at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:92(message): catkin_package() 'catkin' must be listed as a buildtool dependency in the package.xml"

However, catkin is specified as a buildtool dependency in my package.xml. How can I fix this?

I am running ROS Groovy on top of Ubuntu 12.04 in a VirtualBox instance.

Thank you!

EDIT: Here is my package.xml file:

<package>
  <name>beginner_tutorials</name>
  <version>0.0.0</version>
  <description>The beginner_tutorials package</description>

  <maintainer email="viki@todo.todo">viki</maintainer>

  <license>TODO</license>

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>std_msgs</build_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>rospy</run_depend>
  <run_depend>std_msgs</run_depend>

  <export>

  </export>
</package>