I've created my own message type, and have a C++ program generating messages. When I attempt to listen to the messages using rostopic echo, I get the following message.
ERROR: Cannot load message class for [mocap_msgs/LocalMocapFrame]. Are your messages built?
My messages are built and compiled. Why do I still get this error message?
Are you sure that rostopic is running with the same ROS_PACKAGE_PATH and that the messages are built correctly? A quick test:
#!/usr/bin/env python
import roslib
roslib.load_manifest('mocap_msgs')
import mocap_msgs.msg
print mocap_msgs.msg.LocalMocapFrame
Asked: 2011-08-14 14:10:08 -0500
Seen: 424 times
Last updated: Aug 15 '11
Renaming a topic inside a bag file
How to obtain the msg format of a topic on runtime?
ROS topic communication between robots? [closed]
plot/print rpy from quaternion
Subscribe to a topic using an overloaded callback function
rostopic publish constant value
Is there a way to wait for certain topics to be published in a launchfile?
problem with roslaunch command and Kinect camera_info [closed]
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.