Controlling the Robot with a Keyboard

June 7, 2023 ยท View on GitHub

This example creates an interface for operating Spot with your keyboard.

Setup Dependencies

See requirements.txt for the dependencies required for this example. Using pip, these dependencies can be installed using:

python3 -m pip install -r requirements.txt

Running the Example

python3 wasd.py ROBOT_IP

When run, this example will create an interface in your terminal listing the controls which are as follows:

ButtonFunctionality
wasdDirectional Strafing
qeTurning
fStand
vSit
ITake image
TTime-sync
OVideo mode
rSelf-right
bBattery-Change Pose
lReturn/Acquire Lease
SPACEE-Stop
PMotor power & Control
TabExit