Error when trying to use CvBridge
When I run this code:
cv_image = self.bridge.imgmsg_to_cv2(image, "bgr8")
I get this error:
dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encoding)
AttributeError: 'Subscriber' object has no attribute 'encoding'
I'd appreciate any help. Thanks!
Did you solve this? posting your hole node or at least the part where you are setting the
image
variable will be of much help.