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}")