SDKC++ SDK

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:

FileContentRequires hardware by default
discover_gloves.cppDiscover currently connected supported gloves and handle per-device errorsYes
skeleton.cppRead the joint angles and poses of the dynamic OpenXR hand skeletonYes
quick_start.cppZero-argument auto-discovery of a single glove and subscribe to posesYes
imu.cppRead IMU raw countsYes
time_sync.cppSynchronize with external Unix-millisecond time and resynchronize while runningYes
external_input_run_background.cppReceive external frames in the background and subscribe to retargeting output (recommended)No
external_input_manual_update.cppReceive external frames in the host scheduling loop (advanced)No
async_runtime.cppC++20 real glove retargeting, co_await, executor, stop tokenYes
foreground_runtime.cppRun continuously on the current threadYes
background_runtime.cppbackground, request_stop, joinYes
manual_runtime.cppapplication-owned update loopYes
haptics.cpphaptics set/latest/clearYes
debug_trace.cppRecord Debug logs and observe pose and output at the same timeYes
multiple_outputs.cppOne glove drives two named dexterous hand outputsYes
device_lifecycle.cppControl the left and right gloves independentlyYes
host_capture_calibration.cppCapture 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 targetYes

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.