Low Level (RL Policy) — Quick Start
Source: rbq_sdk/cpp/example/src/rbq_low_level.cpp
Runs a learned walking policy (ONNX) on the robot at 10 Hz via low-level joint control.
Build
bash
cd RBQ/rbq_sdk/cpp/example
bash scripts/setup.bash
bash scripts/build.bashRun
From RBQ/rbq_sdk/cpp/example/:
bash
# Use sudo for real-time thread; without sudo = normal thread
sudo ./bin/rbq_low_level -p ../../rbq_simulator/rbq_gym/policy/rbq10/-p is required — pass a directory containing info.json and policy.onnx.
Run with simulation
- From
RBQ/root, start the simulator:bashbash scripts/sim.bash - In RBQGUI: Connect → Auto Start Robot → Stance (key
2). - Run the example:bash
sudo ./bin/rbq_low_level -p ../../rbq_simulator/rbq_gym/policy/rbq10/
Keyboard controls
| Key | Action |
|---|---|
x | Stand up (ready posture) |
z | Sit down (ground posture) |
c | Start walking (loads policy) |
q | Quit |
Policy directory
Pre-trained policies are in the repository at:
rbq_simulator/rbq_gym/policy/rbq10/
├── info.json
└── policy.onnxTrained your own policy with Isaac Gym or Isaac Lab?
Point -p at the exported directory (policy.onnx + info.json).
State machine
| State | How to enter | What happens |
|---|---|---|
| Idle | (default) | Mirrors the stack's final reference |
| Motion | x or z | Interpolates to ready / ground posture |
| Control | c | Runs ONNX policy at 10 Hz, publishes joint references |
→ Full reference: Low Level (RL Policy)
