ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The callback is never accessed. Change
self.sub = rospy.Subscriber('/camera/depth/image_rect_raw',Image,callback)
to
self.sub = rospy.Subscriber('/camera/depth/image_rect_raw', Image, self.callback)
Some additional comments: