Robotics StackExchange | Archived questions

rosserial_python fuerte

In ROS electric I started connecting an arexx robot arm. I used rosserialarduino as a starting point. And used a slightly modified rosserialpython on the computer side. Now I upgraded to ROS fuerte, and keep getting errormessages:

richi@quadulrich:~/sourcecode/robotloader/ros/uc_arm$ rosrun uc_arm robot_arm_serial_node.py _port:=/dev/ttyUSB0 _baud:=38400 &
[2] 11749
richi@quadulrich:~/sourcecode/robotloader/ros/uc_arm$ Traceback (most recent call last):
  File "/home/richi/sourcecode/robotloader/ros/uc_arm/nodes/robot_arm_serial_node.py", line 38, in <module>
    import roslib; roslib.load_manifest("rosserial_python")
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
    sys.path = _generate_python_path(package_name, _rospack) + sys.path
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path
    m = rospack.get_manifest(pkg)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 118, in get_manifest
    return self._load_manifest(name)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 157, in _load_manifest
    retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 149, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: rosserial_python
ROS path [0]=/opt/ros/fuerte/share/ros
ROS path [1]=/opt/ros/fuerte/share
ROS path [2]=/opt/ros/fuerte/stacks
ROS path [3]=/home/richi/sourcecode/robotloader/ros

I'm fairly new to ROS and python.

My code is at : https://github.com/ulrichard/robotloader/tree/master/ros/uc_arm

Do I have to look up the changes in https://kforge.ros.org/rosserial/hg and incorporate them into my code. Or is it simply a matter of adding some directory to some search path?

Asked by ulrichard on 2012-07-12 09:33:36 UTC

Comments

I haven't used fuerte, but looks like python can't find rosserial_python, or ROS can't find the package.

What does this give? $ rospack find rosserial_python

Also, check your PYTHONPATH and that you are sourcing the correct stuff in your .bashrc.

Asked by dougbot01 on 2012-07-15 15:38:29 UTC

Hi, did you ever get this to work?

Asked by dougbot01 on 2012-09-29 12:29:35 UTC

Answers