API 参考Qnbot Exo PlusPython

外骨骼设备接口

基础接口

当前版本 · 1.4.0

以下属性和方法作用于当前选定的外骨骼设备。

ExoDevice.name

配置的逻辑名称。

类型

ExoDevice.name -> str | None

返回值

str | None。

ExoDevice.source_id

SDK 内部稳定数据源标识。

类型

ExoDevice.source_id -> str

返回值

str。

ExoDevice.start()

启动当前设备。

类型

ExoDevice.start() -> None

返回值

None。

参考

ExoDevice.stop()

停止当前设备。

类型

ExoDevice.stop() -> None

返回值

None。

参考

ExoDevice.health()

当前设备健康状态。

类型

ExoDevice.health() -> Health

返回值

Health。

参考

ExoDevice.get_device_info()

设备身份、能力和组件数量。

类型

ExoDevice.get_device_info() -> ExoDeviceInfo

返回值

ExoDeviceInfo。

ExoDevice.telemetry()

遥测数据通道。

类型

ExoDevice.telemetry() -> ReadChannel[ExoTelemetry]

返回值

ReadChannel[ExoTelemetry]。 参见 ExoTelemetry。

ExoDevice.status()

连接与运行状态通道。

类型

ExoDevice.status() -> ReadChannel[ExoStatus]

返回值

ReadChannel[ExoStatus]。 参见 ExoStatus。

ExoDevice.haptics()

可读写的左右震动状态。

类型

ExoDevice.haptics() -> HapticsState

返回值

HapticsState。

参考

ExoDevice.close()

关闭设备句柄。

类型

ExoDevice.close() -> None

返回值

None。

参考