Exoskeleton management
Core interfaces
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) -> ExoDeviceParameters
name: logical device name. Omitting it requires exactly one configured device.
Returns
Errors
InvalidArgumentErrorfor an invalid name.NotFoundSelectionErrorwhen no device matches;AmbiguousSelectionErrorwhen the selection is not unique.
See also
Exo.start()
Start devices in the domain.
Type
Exo.start() -> NoneReturns
None.
See also
Exo.update()
Advance runtime work once.
Type
Exo.update() -> UpdateResultReturns
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() -> NoneReturns
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() -> NoneReturns
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() -> NoneReturns
None.
See also
Exo.join()
Wait for the background runner.
Type
Exo.join() -> NoneReturns
None.
See also
Exo.stop()
Stop devices in the domain.
Type
Exo.stop() -> NoneReturns
None.
See also
Exo.health()
Return Core health state.
Type
Exo.health() -> HealthReturns
Health.
See also
Exo.close()
Close the domain and invalidate child objects.
Type
Exo.close() -> NoneReturns
None.
See also