docs: fix example

This commit is contained in:
Oleg Kalachev
2018-03-19 21:33:54 +03:00
parent 9dbce4d08b
commit 3245d5fcf5

View File

@@ -36,7 +36,7 @@ rospy.init_node('computer_vision_sample')
bridge = CvBridge()
def image_callback(data):
cv_image = self.bridge.imgmsg_to_cv2(data, 'bgr8') # OpenCV image
cv_image = bridge.imgmsg_to_cv2(data, 'bgr8') # OpenCV image
# Do any image processing with cv2...
image_sub = rospy.Subscriber('main_camera/image_raw', Image, image_callback)