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

Revision history [back]

I have a solution.

The package with the message I used was in the folder /home/aub-ch/ros/hydro_ws/src which was added to the ROS_PACKAGE_PATH. But as I used it in another catkin workspace and it was not added to the PYTHONPATH as al-dev pointed out. This was because I edited the ROS_PACKAGE_PATH myself instead of calling source source devel/setup.bash
-> The PYTHONPATH must include this subpath of a workspace devel/lib/python2.7/dist-packages if you want to use messages out of it.
Thanks for your help!

I have a solution.

The package with the message I used was in the folder /home/aub-ch/ros/hydro_ws/src which was added to the ROS_PACKAGE_PATH. But as I used it in another catkin workspace and it was not added to the PYTHONPATH as al-dev pointed out. This was because I edited the ROS_PACKAGE_PATH myself instead of calling source source devel/setup.bash

->

but ->

The PYTHONPATH must include this subpath of a workspace devel/lib/python2.7/dist-packages if you want to use messages out of it.
Thanks for your help!