From 8a85a2db7ecfa146a08a7e631e448d5178f593d6 Mon Sep 17 00:00:00 2001 From: weiquan Date: Tue, 15 Feb 2022 17:58:52 +0800 Subject: [PATCH] fix bug --- mycobot_ai/scripts/detect_obj_img.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycobot_ai/scripts/detect_obj_img.py b/mycobot_ai/scripts/detect_obj_img.py index b312b7d..eb7f4be 100644 --- a/mycobot_ai/scripts/detect_obj_img.py +++ b/mycobot_ai/scripts/detect_obj_img.py @@ -152,8 +152,8 @@ class Object_detect(Movement): self.pub_coords([x, y, 165, -178.9, -1.57, -66], 20, 1) time.sleep(1.5) # 根据不同底板机械臂,调整吸泵高度 - if "dev" in self.robot_m5: - # m5 and jetson nano + if "dev" in self.robot_m5 or "dev" in self.robot_raspi: + # m5 and raspi self.pub_coords([x, y, 90, -178.9, -1.57, -66], 25, 1) elif "dev" in self.robot_wio: h = 0