From 8eaf1e86dc96fc51a0945cd6c0039dc5ed1c3675 Mon Sep 17 00:00:00 2001 From: mizonon Date: Fri, 25 Oct 2024 18:49:02 +0900 Subject: [PATCH] =?UTF-8?q?color=5Fdetection.py=E3=81=AEsubscription?= =?UTF-8?q?=E3=81=AEcallback=E9=96=A2=E6=95=B0=E5=90=8D=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crane_plus_examples_py/color_detection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crane_plus_examples_py/crane_plus_examples_py/color_detection.py b/crane_plus_examples_py/crane_plus_examples_py/color_detection.py index 17ea59c..6978344 100644 --- a/crane_plus_examples_py/crane_plus_examples_py/color_detection.py +++ b/crane_plus_examples_py/crane_plus_examples_py/color_detection.py @@ -28,10 +28,10 @@ class ImageSubscriber(Node): def __init__(self): super().__init__("color_detection") self.image_subscription = self.create_subscription( - Image, "image_raw", self.listener_callback, 10 + Image, "image_raw", self.image_callback, 10 ) self.camera_info_subscription = self.create_subscription( - CameraInfo, "camera_info", self.listener_callback, 10 + CameraInfo, "camera_info", self.camera_info_callback, 10 ) self.image_thresholded_publisher = self.create_publisher(Image, 'image_thresholded', 10) self.tf_broadcaster = tf2_ros.TransformBroadcaster()