SDKPython SDK

Example index

Find the runnable Python example for a given goal.

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.

GoalExampleMain API
Validate multi-glove name and side selection without hardwaredevice_selection.pydevice(name, side), source_id, AmbiguousSelectionError
Discover currently connected glovesdiscover_gloves.pydiscover_gloves(), transport_type, error
Read dynamic OpenXR hand skeleton joint anglesskeleton.pyskeleton(), joint_angles(), subscribe()
Read a single glove's pose with no argumentsquick_start.pyGloveConfig, pose(), run_forever()
Read IMU raw counts or physical valuesraw_data.pyimu(), subscribe(), start()
Set the initial Unix-millisecond time referencetime_sync.pysync_time(), start()
Read paired raw EMF I/Qemf.pyemf(), subscribe()
Read HMP-MX raw values and kPa estimatespressure.pypressure(), estimated_kpa
Receive external frames in the background and subscribe to output (recommended)external_input_run_background.pyExternalConnection, push_frame(), run_background(), subscribe()
Receive external frames in the host loop (advanced)external_input_manual_update.pyExternalConnection, push_frame(), update()
Record debug logs of input and SDK-processed datadebug_trace.pyDebugConfig, TargetAlgorithm, output(), run_forever()
Embed into an existing main loopmanual_runtime.pyupdate(), UpdateResult.sleep()
Run on the current threadforeground_runtime.pyrun_forever(), close()
Run on a background threadbackground_runtime.pyrun_background(), join()
Read SDK-processed data asynchronously with asyncioasync_runtime.pyawait next(), async for
Control glove fingertip vibrationhaptics.pyhaptics(), set(), clear()
One glove drives multiple targetsmultiple_outputs.pyTargetAlgorithm, output(name), subscribe(), run_forever()
Configure algorithm parameter overrides and bone-file behavioralgorithm_configuration.pyAlgorithmsConfig, CaptureConfig, TargetAlgorithm.algorithm_config_path, use_bone_config
Configure latest-value/FIFO subscription buffering and delivery ratesubscription_config.pySubscriptionConfig.latest(), SubscriptionConfig.fifo(), with_config()
Control one device among multiple gloves individuallydevice_lifecycle.pydevice(name), device(side)
Capture raw frames of the left and right hands and compute calibration using the algorithm package selected this timehost_capture_calibration.pystart_capture(), start_calibration(), confirm(), cancel()
Assess 30-frame hand capture posture quality independently and handle manual retentioncapture_quality.pycreate_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

GoalExampleMain APIs
Subscribe to left- and right-hand retargeting outputs in the shared-port Exo + dual-glove setupglove_retargeting.pyCompositeExoGloveConfig, 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.