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

The answer is already in the error message: You create a std_msgs::String subscriber to listen to an sensor_msgs::Image message.

So it should be

from visualizaition_msgs.msg import Image
(...)

 rospy.Subscriber("/camera/image_test", Image, callback)

The answer is already in the error message: You create a std_msgs::String subscriber to listen to an sensor_msgs::Image message.

So it should be

from visualizaition_msgs.msg sensor_msgs.msg import Image
(...)

 rospy.Subscriber("/camera/image_test", Image, callback)