diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-07 00:16:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-07 00:16:33 +0100 |
commit | d162ba1860a88062f4cd61f8b52fc303ba0b2991 (patch) | |
tree | 24cd2cf57f3932a24b96e4a0f6666489447e43ba /dev-ros/image_cb_detector/files/py3.patch | |
parent | 590b9b7b03bf4651e099949e318755af7cfa81b8 (diff) |
gentoo resync : 07.08.2021
Diffstat (limited to 'dev-ros/image_cb_detector/files/py3.patch')
-rw-r--r-- | dev-ros/image_cb_detector/files/py3.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-ros/image_cb_detector/files/py3.patch b/dev-ros/image_cb_detector/files/py3.patch new file mode 100644 index 000000000000..54475afd66dc --- /dev/null +++ b/dev-ros/image_cb_detector/files/py3.patch @@ -0,0 +1,22 @@ +Index: image_cb_detector/src/image_cb_detector/cb_detector.py +=================================================================== +--- image_cb_detector.orig/src/image_cb_detector/cb_detector.py ++++ image_cb_detector/src/image_cb_detector/cb_detector.py +@@ -39,7 +39,7 @@ NAME = 'image_cb_detector_node' + import roslib; roslib.load_manifest(PKG) + + import rospy +-import cv ++import cv2 as cv + import math + + from sensor_msgs.msg import Image +@@ -130,7 +130,7 @@ class ImageCbDetectorNode: + #we need to convert the ros image to an opencv image + try: + image = self.bridge.imgmsg_to_cv(ros_image, "mono8") +- except CvBridgeError, e: ++ except CvBridgeError as e: + rospy.logerror("Error importing image %s" % e) + return + |