Example index
Find the runnable Python example for a given goal.
Current version · 1.4.0
Example index
examples/glove/python/src/ provides examples that can be run independently:
| Goal | Example | Main API |
|---|---|---|
| Discover currently connected gloves | discover_gloves.py | discover_gloves(), GloveConfig, SerialConnection |
| Read dynamic OpenXR hand skeleton | skeleton.py | skeleton(), joint_angles(), pose() |
| Read a single glove's pose with no arguments | quick_start.py | GloveConfig, pose(), run_forever() |
| Read IMU raw counts | imu.py | imu(), subscribe(), run_forever() |
| Synchronize with external Unix-millisecond time and resynchronize while running | time_sync.py | sync_time(), run_background() |
| 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(), health() |
| 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() |
| 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(), retry() |
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.