Skip to content

Sport Client — Quick Start ​

Source: rbq_sdk/cpp/example/src/rbq/rbq_sport_client.cpp

Interactive terminal CLI that sends any SportClient command to the robot.

Build ​

bash
cd RBQ/rbq_sdk/cpp/example
bash scripts/setup.bash
bash scripts/build.bash

Run ​

bash
./bin-x86_64/rbq_sport_client [networkInterface]

# Simulator / on-robot stack — interface defaults to lo
./bin-x86_64/rbq_sport_client

# Real robot — pass the interface that reaches it
./bin-x86_64/rbq_sport_client eth0

Usage ​

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

Commands ​

IDNameWhat it does
0dampHigh-damping e-stop
1balance_standBalanced standing
2stop_moveStop in place
3stand_downGo prone
4recovery_standStand up from fall
5moveRotate in place (Move(0, 0, 0.5))
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 joints in standing position
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 example source marks them "Caution: test in open area".

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

move turns the robot only when control mode is HighLevel and a walking gait is active. The example turns control mode on at start (it publishes true on rt/rbq/cmd/switch_control_mode — ROS /rbq/cmd/switch_control_mode); moving the gamepad stick turns it off again, and then the robot answers 3205 (rejected). Run switch_gait (6) before move.

Full list: type list at the prompt. An unknown command sends nothing.

Notes ​

  • The client uses SetNoReply(true) — fire-and-forget, no RPC wait.
  • One request per line: the selected command is sent once each time you press Enter.

→ Full reference: Sport Client (Software)

This user manual is intended for RBQ users.