Sport Client Joystick (Python) — Quick Start
Source: rbq_sdk/python/example/sport/rbq_sport_client_joy.py
Gamepad-driven robot control via Python SportClient. Single event loop at 10 Hz.
Install
bash
cd RBQ/rbq_sdk/python
pip install -e .Run
bash
cd RBQ/rbq_sdk/python/example/sport
python3 rbq_sport_client_joy.py <networkInterface> [joystickPath]
python3 rbq_sport_client_joy.py eth0
python3 rbq_sport_client_joy.py eth0 /dev/input/js1Gamepad layout (Logitech F710 / Xbox)
Button chords
| Hold + Press | Action |
|---|---|
| L2 + B | E-stop (Damp) |
| L2 + A × 1 | StandUp |
| L2 + A × 2 | StandDown |
| START | Default gait |
| L2 + START | Running mode |
| L2 + X | Recovery stand |
| R1 + X | Climb |
| L1 + X | not supported on this robot |
| L1 + Y | not supported on this robot |
| BACK | Stop |
Double-click (400 ms)
| Button | Action |
|---|---|
| X × 2 | Left-side gait |
| Y × 2 | Right-side gait |
| R1 × 2 | not supported on this robot |
| R2 × 2 | not supported on this robot |
Sticks (when no button)
| Axis | Command | Max |
|---|---|---|
| L stick forward | vel_x | ±1.0 m/s |
| L stick left | vel_y | ±0.5 m/s |
| R stick left | vyaw | ±1.0 rad/s |
→ Full reference: Sport Client Joystick (Python)
