Config / Calibration / Maintenance
读取与设置配置、执行标定,以及管理重启和固件升级。
适用于受支持的 21 DOF 产品,具体操作受硬件能力和固件限制;升级目标须匹配实际设备。
以下片段在已连接的 hand 上执行。Python 位于 async 函数内;C++ 需包含 revo3/revo3.hpp、iostream、vector、chrono 和 stdexcept,并在应用边界处理 SdkError。
config = await hand.config.snapshot()print(config.slave_id)runtime = hand.config.runtime_optionsprint(runtime.servo_command_timeout_ms)const auto config = hand.config().snapshot();const auto runtime = hand.config().runtime_options();std::cout << static_cast<int>(config.slave_id) << " " << runtime.servo_command_timeout.count() << "\n";参数与返回值
Section titled “参数与返回值”| 操作 | 参数 | 返回值 |
|---|---|---|
| Config.snapshot() | — | DeviceConfig |
| Maintenance.update_firmware(file_path, target, wait_secs) | 固件路径;可选升级目标;等待参数(秒) | OperationHandle |
按操作查阅完整签名、默认值、单位与 Python / C++ 差异:
- 4.6 Config 配置 API
- 4.7 Calibration 标定 API
- 4.8 Maintenance 维护 API
- 5.6 Touch、Config、Calibration 与 Maintenance
- 7. 等待、取消和运动冲突
设备配置由固件持久化;RuntimeOptions 仅影响当前进程。标定前必须保持 Motion 空闲,响应丢失时不能自动重发;写响应不证明设备内部标定已完成。