From ca8e5aac9b75bc362ad17c6ba2ba36bdfe39f51b Mon Sep 17 00:00:00 2001 From: Simon Pirkelmann Date: Fri, 10 Sep 2021 01:23:14 +0200 Subject: [PATCH] allow further distance from target position --- remote_control/robot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote_control/robot.py b/remote_control/robot.py index 23caeed..1b8c09b 100644 --- a/remote_control/robot.py +++ b/remote_control/robot.py @@ -145,7 +145,7 @@ class ControlledRobot(Robot): e_pos = np.linalg.norm(v[0:2]) #print(f"target_pos = {target_pos}, current_pos = {current_pos}, e_pos = {e_pos}, e_ang = {e_angle}") print(f"e_pos = {e_pos}, e_ang = {e_angle}") - close_to_target = e_pos < 0.05 and abs(e_angle) < 0.1 + close_to_target = e_pos < 0.075 and abs(e_angle) < 0.1 time.sleep(0.1) print("target reached!") self.stop_control()