Skip to content

Commit

Permalink
Add wait() to robot testing
Browse files Browse the repository at this point in the history
  • Loading branch information
m-decoster committed Jul 15, 2024
1 parent 5e39def commit 6dcbbcd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions airo-robots/airo_robots/drives/hardware/manual_robot_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 6dcbbcd

Please sign in to comment.