From 6dcbbcd142f222191704a8512d176f45cc21347d Mon Sep 17 00:00:00 2001 From: Mathieu De Coster Date: Mon, 15 Jul 2024 09:41:20 +0200 Subject: [PATCH] Add wait() to robot testing --- .../drives/hardware/manual_robot_testing.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/airo-robots/airo_robots/drives/hardware/manual_robot_testing.py b/airo-robots/airo_robots/drives/hardware/manual_robot_testing.py index eabade3..878dd25 100644 --- a/airo-robots/airo_robots/drives/hardware/manual_robot_testing.py +++ b/airo-robots/airo_robots/drives/hardware/manual_robot_testing.py @@ -5,14 +5,14 @@ def manually_test_robot_implementation(robot: MobileRobot) -> None: input("robot will now move forward 10cm") - robot.set_platform_velocity_target(0.1, 0.0, 0.0, 1.0) + robot.set_platform_velocity_target(0.1, 0.0, 0.0, 1.0).wait() input("robot will now move left 10cm") - robot.set_platform_velocity_target(0.0, 0.1, 0.0, 1.0) + robot.set_platform_velocity_target(0.0, 0.1, 0.0, 1.0).wait() input("robot will now make two short rotations") - robot.set_platform_velocity_target(0.0, 0.0, 0.1, 1.0) - robot.set_platform_velocity_target(0.0, 0.0, -0.1, 1.0) + robot.set_platform_velocity_target(0.0, 0.0, 0.1, 1.0).wait() + robot.set_platform_velocity_target(0.0, 0.0, -0.1, 1.0).wait() input("robot will now return to original position") - robot.set_platform_velocity_target(-0.1, -0.1, 0.0, 1.0) + robot.set_platform_velocity_target(-0.1, -0.1, 0.0, 1.0).wait()