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()