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

Revision history [back]

click to hide/show revision 1
initial version

You must not have your ROS_PACKAGE_PATH set?

I can get output from rosmsg list and rosmsg packages locally:

william@dosa:~
% rosmsg packages
actionlib
actionlib_msgs
bond
diagnostic_msgs
driver_base
dynamic_reconfigure
geometry_msgs
nav_msgs
roscpp
rosgraph_msgs
rospy_tutorials
sensor_msgs
shape_msgs
std_msgs
stereo_msgs
tf
tf2_msgs
trajectory_msgs
turtlesim
visualization_msgs

Your ROS_PACKAGE_PATH is not required for python importing to work, but it is required for tools like rosmsg to find .msg files which have been installed.

You can also ensure that your message files are getting installed by looking in path/to/install/share/nnnn_msgs/msg/ for the Nnnn.msg file.

EDIT: Make sure you have the latest version of rospkg:

sudo apt-get update && sudo apt-get install python-rospkg

If that doesn't work then see this answer:

http://answers.ros.org/question/49143/problems-with-rqt-groovy-ubuntu/?answer=49153#post-id-49153

You might need to clear out a previous version installed by pip.


You must not have your ROS_PACKAGE_PATH set?

I can get output from rosmsg list and rosmsg packages locally:

william@dosa:~
% rosmsg packages
actionlib
actionlib_msgs
bond
diagnostic_msgs
driver_base
dynamic_reconfigure
geometry_msgs
nav_msgs
roscpp
rosgraph_msgs
rospy_tutorials
sensor_msgs
shape_msgs
std_msgs
stereo_msgs
tf
tf2_msgs
trajectory_msgs
turtlesim
visualization_msgs

Your ROS_PACKAGE_PATH is not required for python importing to work, but it is required for tools like rosmsg to find .msg files which have been installed.

You can also ensure that your message files are getting installed by looking in path/to/install/share/nnnn_msgs/msg/ for the Nnnn.msg file.