The runnable scripts that ship with the SDK, grouped by what they show.
Each file is one short, runnable script, kept in the
examples directory of the
SDK repository. Every script except connect.py and the livekit_raw/ scripts connects to
the saved robot (menlo setup), or to the robot the MENLO_* environment variables describe; set MENLO_ROBOT=NAME to pick another saved
robot. The settings a script uses, such as a speed, a duration or a joint name, are constants
at the top of the file. Read the docstring at the top of a file before you run it: it says
what the robot must be doing. Before a script that moves the robot, work through
Before You Run a Script.
a tour of robot.get_state(): mode, arming, faults, battery, the hottest actuators, gravity, alerts, state age and rate, and the mode and alert callbacks
set_joints() on one named joint, on a supported robot; exits unless ROBOT_SUPPORTED = True is set in the file and refuses unless the robot is in STAND; the robot enters DAMP 2 s after the script exits
The scripts in livekit_raw/ use only the livekit and asimov-protocol packages; see
Without the SDK. They read MENLO_CREDENTIAL and the
MANAGER_URL set in manager_token.py.