Example index
Find the runnable Python example for a given goal.
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.
| Goal | Example | Main API |
|---|---|---|
| Validate multi-glove name and side selection without hardware | device_selection.py | device(name, side), source_id, AmbiguousSelectionError |
| Discover currently connected gloves | discover_gloves.py | discover_gloves(), transport_type, error |
| Read dynamic OpenXR hand skeleton joint angles | skeleton.py | skeleton(), joint_angles(), subscribe() |
| Read a single glove's pose with no arguments | quick_start.py | GloveConfig, pose(), run_forever() |
| Read IMU raw counts or physical values | raw_data.py | imu(), subscribe(), start() |
| Set the initial Unix-millisecond time reference | time_sync.py | sync_time(), start() |
| Read paired raw EMF I/Q | emf.py | emf(), subscribe() |
| Read HMP-MX raw values and kPa estimates | pressure.py | pressure(), estimated_kpa |
| Receive external frames in the background and subscribe to output (recommended) | external_input_run_background.py | ExternalConnection, push_frame(), run_background(), subscribe() |
| Receive external frames in the host loop (advanced) | external_input_manual_update.py | ExternalConnection, push_frame(), update() |
| Record debug logs of input and SDK-processed data | debug_trace.py | DebugConfig, TargetAlgorithm, output(), run_forever() |
| Embed into an existing main loop | manual_runtime.py | update(), UpdateResult.sleep() |
| Run on the current thread | foreground_runtime.py | run_forever(), close() |
| Run on a background thread | background_runtime.py | run_background(), join() |
| Read SDK-processed data asynchronously with asyncio | async_runtime.py | await next(), async for |
| Control glove fingertip vibration | haptics.py | haptics(), set(), clear() |
| One glove drives multiple targets | multiple_outputs.py | TargetAlgorithm, output(name), subscribe(), run_forever() |
| Configure algorithm parameter overrides and bone-file behavior | algorithm_configuration.py | AlgorithmsConfig, CaptureConfig, TargetAlgorithm.algorithm_config_path, use_bone_config |
| Configure latest-value/FIFO subscription buffering and delivery rate | subscription_config.py | SubscriptionConfig.latest(), SubscriptionConfig.fifo(), with_config() |
| Control one device among multiple gloves individually | device_lifecycle.py | device(name), device(side) |
| Capture raw frames of the left and right hands and compute calibration using the algorithm package selected this time | host_capture_calibration.py | start_capture(), start_calibration(), confirm(), cancel() |
| Assess 30-frame hand capture posture quality independently and handle manual retention | capture_quality.py | create_capture_quality_session(), assess_stage(), skip_stage() |
Every Python file in the examples directory is an independent example and does not depend on a shared _common.py. To work through a scenario step by step, see Quick start.
Configuration examples
The matching examples include subscription_config.py and algorithm_configuration.py. 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.
Composite-device example
| Goal | Example | Main APIs |
|---|---|---|
| Subscribe to left- and right-hand retargeting outputs in the shared-port Exo + dual-glove setup | glove_retargeting.py | CompositeExoGloveConfig, TargetConfig, left.output(), right.output() |
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.