From d5772d83197210816d48ab2494a9d2180ad0f513 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 23 Aug 2024 16:30:01 +0800 Subject: [PATCH] fix type issue --- .../mini_pupper_recognition/line_detection_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini_pupper_recognition/mini_pupper_recognition/line_detection_node.py b/mini_pupper_recognition/mini_pupper_recognition/line_detection_node.py index 8de1a3b..98fa50d 100644 --- a/mini_pupper_recognition/mini_pupper_recognition/line_detection_node.py +++ b/mini_pupper_recognition/mini_pupper_recognition/line_detection_node.py @@ -90,8 +90,8 @@ def line_recognition(self, msg): linear, angular = detect_black_line(cv_img) message1 = LineDetectionResult() - message1.linear = linear - message1.angular = angular + message1.linear = str(linear) + message1.angular = str(angular) self.get_logger().info(f"Linear: {message1.linear}\nAngular: {message1.angular:.2f}")