API referenceQnbot Exo PlusPython

Exoskeleton management

Core interfaces

Current version · 1.4.0

Manage all configured exoskeleton devices, or use device() to work with one device.

Details

Automatic reconnection advances independently of update() and runners. These runtime methods primarily select the application's execution model.

Exo.device()

Select the only device or a device by logical name.

Type

Exo.device(name: str | None = None) -> ExoDevice

Parameters

  • name: logical device name. Omitting it requires exactly one configured device.

Returns

ExoDevice.

Errors

  • InvalidArgumentError for an invalid name.
  • NotFoundSelectionError when no device matches; AmbiguousSelectionError when the selection is not unique.

Exo.start()

Start devices in the domain.

Type

Exo.start() -> None

Returns

None.

See also

Exo.update()

Advance runtime work once.

Type

Exo.update() -> UpdateResult

Returns

UpdateResult.

Example

Obtain exo from sdk.exo() and prepare the device configuration and subscriptions. These methods use the Core runner contract. Call sleep() once per update result, and do not start a background runner at the same time.

from qnbot_sdk import SleepResult
import time

exo.start()
try:
    for _ in range(100):
        update = exo.update()
        if update.sleep() is SleepResult.NO_TASKS:
            time.sleep(0.01)
finally:
    exo.close()

Related Core example (Glove): manual_runtime.py.

See also

Exo.run_forever()

Run on the current thread.

Type

Exo.run_forever() -> None

Returns

None.

Example

Obtain exo from sdk.exo() and prepare the device configuration and subscriptions. These methods use the Core runner contract. This call occupies the current thread. See the complete example for shutdown handling.

exo.start()
try:
    exo.run_forever()
finally:
    exo.close()

Complete example: quick_start.py.

See also

Exo.run_background()

Start background execution.

Type

Exo.run_background() -> None

Returns

None.

Example

Obtain exo from sdk.exo() and prepare the device configuration and subscriptions. These methods use the Core runner contract. The application thread remains available. Request shutdown, join the thread, and then close the scope.

import time

exo.start()
exo.run_background()
try:
    time.sleep(1.0)
finally:
    exo.request_stop()
    exo.join()
    exo.close()

Related Core example (Glove): background_runtime.py.

See also

Exo.request_stop()

Request runner shutdown.

Type

Exo.request_stop() -> None

Returns

None.

See also

Exo.join()

Wait for the background runner.

Type

Exo.join() -> None

Returns

None.

See also

Exo.stop()

Stop devices in the domain.

Type

Exo.stop() -> None

Returns

None.

See also

Exo.health()

Return Core health state.

Type

Exo.health() -> Health

Returns

Health.

See also

Exo.close()

Close the domain and invalidate child objects.

Type

Exo.close() -> None

Returns

None.

See also