Skip to content

Sport Client (Python) — Quick Start ​

Source: rbq_sdk/python/example/sport/rbq_sport_client.py

Python terminal CLI for sending SportClient commands.

Install ​

bash
cd RBQ/rbq_sdk/python
pip install -e .

Run ​

bash
cd RBQ/rbq_sdk/python/example/sport
python3 rbq_sport_client.py [networkInterface]

# Simulator / on-robot stack — interface defaults to lo
python3 rbq_sport_client.py

# Real robot — pass the interface that reaches it
python3 rbq_sport_client.py eth0

Usage ​

Input "list " to list all test option ...
list            ← print all commands
balance_stand   ← execute by name
1               ← execute by ID

Key commands ​

IDNameWhat it does
0dampE-stop
1balance_standStanding
2stop_moveStop in place
3stand_downGo prone
4recovery_standStand up from fall
5moveRotate in place
6switch_gaitSwitch to the walk gait (49)
7speed_levelFast: move speeds × 1.5
8get_statePrint the robot state
9body_heightBody 10 cm lower
10stand_upLock standing joints
11enter_leftside_gaitLeftSideGait(1)
12exit_leftside_gaitLeftSideGait(0) — back to the walk gait (49)
13enter_handstandSwitch to the RL_FRONT_WALK (31) policy
14exit_handstandBack to the walk gait (49)
15poseBody 10 cm lower, turned 0.2 rad
16eulerTilt the body

WARNING

Test IDs 11–14 in an open area — the C++ example source marks them "Caution: test in open area".

Body pose, speed level and the state keys are explained in the full reference.

move returns 0 but turns the robot only when control mode is HighLevel and a walking gait is active: publish true on rt/rbq/cmd/switch_control_mode (ROS /rbq/cmd/switch_control_mode), then run switch_gait (6) before move.

→ Full reference: Sport Client (Python)

This user manual is intended for RBQ users.