SDKC++ SDK

Example index

Look up the published C++ example for a given task.

Current version · 2.0.0

Example index

External-input examples default to --capture-interaction auto_terminal for SDK terminal guidance. Pass --capture-interaction external for application-owned prompts and confirmations. Keep submitting input frames during calibration. Read the output when new samples arrive. See Calibration and frame input.

The device-selection example configures three external gloves (primary left/right and backup left), prints selected source IDs, and confirms expected ambiguity for name-only or side-only selection. Obtain the matching product examples and dependencies through Installation & requirements.

FileContentRequires hardware by default
device_selection.cppValidate name-and-side selection, source ID reads, and expected ambiguityNo
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
main.cppZero-argument auto-discovery of a single glove and subscribe to posesYes
main.cppRead IMU raw counts or physical valuesYes
main.cppSet the initial Unix-millisecond time referenceYes
emf.cppRead paired raw EMF I/QYes
pressure.cppRead HMP-MX raw values and kPa estimatesYes
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
main.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
capture_quality.cppAssess 30-frame hand capture posture quality independently and demonstrate skip_stage() manual retentionYes

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.

Configuration examples

The matching examples include subscription_config.cpp and algorithm_configuration.cpp. The subscription example requires one glove; the algorithm example also requires a compatible installed target-hand package and, when selected, current-operator bone configuration. APIs and configuration fields appear in the table above. Execution details: matching example README and Quick start.

Wireless Receiver examples

Connect each hand with the shared Receiver port. Use the existing discovery, pose, and Skeleton examples with that connection.

Wireless IMU sample

Use matching combined-output firmware and follow Wireless IMU to connect the Receiver. Run the local example in Reading raw data to read each sensor’s validity and raw counts or mdps/mg physical values. For two hands, select each device and subscribe to its imu() in the same SDK instance.

Tactile ENF Positioning Glove (VetraGlove HMP-MX) pressure example: connect the glove and read raw pressure on its own.