外骨骼设备接口
基础接口
当前版本 · 1.4.0
以下属性和方法作用于当前选定的外骨骼设备。
ExoDevice::name()
配置的逻辑名称。
类型
std::optional<std::string> ExoDevice::name() const;返回值
std::optional<std::string>。
参考
ExoDevice::source_id()
SDK 内部稳定数据源标识。
类型
const std::string& ExoDevice::source_id() const;返回值
const std::string&。
参考
ExoDevice::start()
启动当前设备。
类型
void ExoDevice::start() const;返回值
void。
参考
ExoDevice::stop()
停止当前设备。
类型
void ExoDevice::stop() const;返回值
void。
参考
ExoDevice::health()
当前设备健康状态。
类型
Health ExoDevice::health() const;返回值
Health。
参考
ExoDevice::get_device_info()
设备身份、能力和组件数量。
类型
ExoDeviceInfo ExoDevice::get_device_info() const;返回值
参考
ExoDevice::telemetry()
遥测数据通道。
类型
ReadChannel<ExoTelemetry> ExoDevice::telemetry() const;返回值
ReadChannel<ExoTelemetry>。 参见 ExoTelemetry。
参考
ExoDevice::status()
连接与运行状态通道。
类型
ReadChannel<ExoStatus> ExoDevice::status() const;返回值
ReadChannel<ExoStatus>。 参见 ExoStatus。
参考
ExoDevice::haptics()
可读写的左右震动状态。
类型
HapticsState ExoDevice::haptics() const;返回值
HapticsState。
参考
ExoDevice::close()
关闭设备句柄。
类型
void ExoDevice::close() const;返回值
void。
参考