Skip to main content

Extracting Example Code

To help you get started quickly and verify hardware status, boosteros provides a series of example code with the installation package, and provides a one-click extraction tool.

After installing boosteros, you can run the following command directly in the terminal to copy the built-in examples to the current working directory:

boosteros-examples

After execution, a boosteros_examples folder will be generated in the current directory, containing the following core examples:

Example File

Description

Applicable Mode

booster/joint_control_example.py

Interactive full-body joint debugging tool. Supports fine-tuning all joints by name or index, auto-completes poses, supports K1/T1 models.

"custom"

booster/joint_upper_control_example.py

Interactive upper-body debugging tool. Takes control of the head and both arms (first 10 joints) without affecting lower-body walking.

"walk"

booster/action_control_example.py

Interactive action debugging tool. Supports listing actions, starting actions, stopping actions, and blocking until the robot action truly completes.

Advanced Task APIs

booster/hand_guilding_example.py

Hand-guiding example. Demonstrates how to record a trajectory, optionally save it as .btraj, read trajectory info, and play it back.

"walk"

booster/go_to_ball.py

Vision closed-loop control example. Demonstrates how to use boosteros.brain to detect a ball and control the robot to track it.

"walk"