SDKPython SDK

Glove + Exo composite solution

Connect two Gloves and an Exo over one shared serial link with one lifecycle.

Current version · 2.0.0

Glove + Exo composite solution

An interrupted shared serial link recovers automatically. After recovery or a successful restart, the SDK refreshes Exo and Glove state and clears stale connection errors; recovery does not require continuous update() calls.

A Qnbot PLUS composite exposes the left Glove, right Glove, and Exo over one shared serial link. Declare the three members with CompositeExoGloveConfig, then manage them through one root Sdk.

Configuration flow

  • Configure the shared serial link once on CompositeExoGloveConfig. Do not assign separate connections to the left Glove, right Glove, or Exo member.
  • Use automatic discovery when no port is pinned. To target one device explicitly, replace the shared connection with SerialConnection(port="/dev/ttyACM0").
  • Put the left Glove, right Glove, and Exo configs in devices, then use sdk.glove() and sdk.exo() to access their capabilities.
  • Call start(), stop(), and close() only on the root Sdk so it owns the shared-link lifecycle.

Optional CompositeExoGloveConfig.name identifies the outer group. Members do not inherit it: give each member its own name before selecting it with glove.device(name) or exo.device(name).

Complete example

from qnbot_sdk import CompositeExoGloveConfig, Sdk, SerialConnection, Side
from qnbot_sdk.exo import ExoConfig
from qnbot_sdk.glove import GloveConfig

composite = CompositeExoGloveConfig(
    name="workstation-a",
    connection=SerialConnection(auto_discover=True),
    # For a fixed deployment use SerialConnection(port="/dev/ttyACM0").
    devices=(
        GloveConfig(name="left-glove", side=Side.LEFT),
        GloveConfig(name="right-glove", side=Side.RIGHT),
        ExoConfig(name="exo"),
    ),
)
sdk = Sdk(devices=(composite,))
glove = sdk.glove()
exo = sdk.exo()
left = glove.device("left-glove")
right = glove.device("right-glove")
exo_device = exo.device("exo")

try:
    left.pose().subscribe(lambda sample: print("left", sample.value))
    right.pose().subscribe(lambda sample: print("right", sample.value))
    exo_device.telemetry().subscribe(lambda sample: print("exo", sample.value))
    sdk.start()
    sdk.run_forever()
finally:
    sdk.close()

Exo haptics are unavailable in composite mode. Glove member GloveHaptics writes and clears are ignored with a composite_glove_haptics_unavailable warning and produce no physical vibration. Exo supplies telemetry and status; check capabilities.imus before using IMU data. Glove supplies pose and status. The current shared CDC path does not expose raw Glove IMU.

Install compatible qnbot-sdk-glove and qnbot-sdk-exo versions. See the Exo composite guide. For a complete left- and right-hand retargeting output example, see glove_retargeting.py.