ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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)
2 | No.2 Revision |
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)