Example index
Look up the published C++ example for a given task.
Current version · 1.4.0
Example index
The public examples are in examples/glove/cpp:
| File | Content | Requires hardware by default |
|---|---|---|
discover_gloves.cpp | Discover currently connected supported gloves and handle per-device errors | Yes |
skeleton.cpp | Read the joint angles and poses of the dynamic OpenXR hand skeleton | Yes |
quick_start.cpp | Zero-argument auto-discovery of a single glove and subscribe to poses | Yes |
imu.cpp | Read IMU raw counts | Yes |
time_sync.cpp | Synchronize with external Unix-millisecond time and resynchronize while running | Yes |
external_input_run_background.cpp | Receive external frames in the background and subscribe to retargeting output (recommended) | No |
external_input_manual_update.cpp | Receive external frames in the host scheduling loop (advanced) | No |
async_runtime.cpp | C++20 real glove retargeting, co_await, executor, stop token | Yes |
foreground_runtime.cpp | Run continuously on the current thread | Yes |
background_runtime.cpp | background, request_stop, join | Yes |
manual_runtime.cpp | application-owned update loop | Yes |
haptics.cpp | haptics set/latest/clear | Yes |
debug_trace.cpp | Record Debug logs and observe pose and output at the same time | Yes |
multiple_outputs.cpp | One glove drives two named dexterous hand outputs | Yes |
device_lifecycle.cpp | Control the left and right gloves independently | Yes |
host_capture_calibration.cpp | Capture the left and right hands in sequence according to the selected algorithm package, then compute, save, and apply the calibration result for the selected configured target | Yes |
All examples are built with find_package(qnbot_glove CONFIG REQUIRED) and link qnbot::glove; coroutine examples additionally link qnbot::core_coro. To work through a scenario step by step, see Quick start.