C++ Examples#
The vendored SDK ships C++ examples under external/rby1-sdk/examples/cpp.
Use this page to pick a runnable starting point, then jump back into the
class-reference pages for the specific types that appear in the sample.
Recommended First Files
get_robot_state.cppfor the smallest client-side state example.demo_motion.cppfor the standard power, servo, control-manager, and command flow.real_time_control_command.cppfor the advanced UDP control callback path.dynamics/load_urdf.cppfor a pure model-and-dynamics entry point.
Connection & State
Example |
Main types |
What it demonstrates |
|---|---|---|
|
|
Connect, start state updates, and inspect live measurements. |
|
|
Alternate state polling and monitoring flow. |
|
|
Read recent logs and stream new log records. |
Motion & Commands
Example |
Main types |
What it demonstrates |
|---|---|---|
|
|
Standard command submission from the high-level client. |
|
|
Stop-command submission through the whole-body builder path. |
|
|
Power control through the robot client. |
|
|
Mobility and planar-base command composition. |
|
|
Odometry reset from the client API. |
Real-Time & Control
Example |
Main types |
What it demonstrates |
|---|---|---|
|
|
Real-time control callback with model-based computation. |
|
|
Optimal-control command and solver usage. |
|
|
Gravity compensation command composition. |
|
robot client, mapping utilities, master-arm flow |
Joint-space teleoperation concepts. |
Dynamics & Math
Example |
Main types |
What it demonstrates |
|---|---|---|
|
|
Load a URDF model and inspect the rigid-body tree. |
|
|
Dynamic-coefficient calculations. |
|
|
Gravity term computation. |
|
|
Inverse-dynamics computation. |
|
|
Mass-matrix computation. |
|
|
Reflective mass analysis. |
|
|
Rotation construction and conversion helpers. |
|
|
Motion-profile generation. |
|
|
Filter-based velocity estimation. |
Diagnostics & Modules
Example |
Main types |
What it demonstrates |
|---|---|---|
|
|
Brake engagement and release flow. |
|
UDP and protocol helpers |
Lower-level RT communication inspection. |
|
robot client and model utilities |
Calibration-oriented workflows. |
|
|
Module-level tests for gripper, torso, head, arms, tool flange, and master arm. |