Ejemplo n.º 1
0
 def callback(self, data):
 	bridge=CvBridge()
 	try:
 		cv_image=bridge.img_to_cv(data, "bgr8")
 	except CvBridgeError, e:
 		#print won't work, need to use rospy.log_ format
 		rospy.loginfo("Media failed to convert to OpenCV format")