Add independent robot connections, per-node device binding and isolated demo state. Improve canvas multi-selection, undo and parameter layouts. Remove remote configuration management and align protos with cmvr-es c8b71b2b. Include Release startup and loopback regression coverage.
59 lines
1.5 KiB
Protocol Buffer
59 lines
1.5 KiB
Protocol Buffer
syntax = "proto3";
|
||
|
||
package cmvr.config;
|
||
|
||
// 原 ESP32 头部的舵机分组配置。
|
||
message BioHeadServoGroupConfig {
|
||
string name = 1;
|
||
int32 address = 2;
|
||
int32 channel_start = 3;
|
||
int32 channel_end = 4;
|
||
repeated double offset = 5;
|
||
repeated double min_angles = 6;
|
||
repeated double max_angles = 7;
|
||
}
|
||
|
||
// USB eRPC 服务 1 的单个舵机关节配置。
|
||
// 所有位置参数的单位均为弧度 rad。
|
||
message UsbHeadJointConfig {
|
||
// 与控制板固件中的舵机 ID 对应。
|
||
string id = 1;
|
||
|
||
// 允许下发的最小位置。
|
||
double min_position_rad = 2;
|
||
|
||
// 允许下发的最大位置。
|
||
double max_position_rad = 3;
|
||
|
||
// 显式调用 home 时使用的目标位置。
|
||
double home_position_rad = 4;
|
||
}
|
||
|
||
// USB eRPC 服务 1 的设备配置。
|
||
message UsbHeadErpcConfig {
|
||
// 应答超时,单位 ms。
|
||
// 后续驱动中:0 表示使用默认 2000 ms,最大允许 30000 ms。
|
||
uint32 response_timeout_ms = 1;
|
||
|
||
// 该设备允许控制的关节及其标定参数。
|
||
repeated UsbHeadJointConfig joints = 2;
|
||
}
|
||
|
||
// 头部设备配置。
|
||
message BioHeadRobotConfig {
|
||
string id = 1;
|
||
string serial_port = 2;
|
||
int32 baud_rate = 3;
|
||
|
||
// 原 ESP32 后端使用的配置,保留原字段编号。
|
||
repeated BioHeadServoGroupConfig servo_groups = 4;
|
||
|
||
// 配置此字段时,选择新增的 USB eRPC 后端。
|
||
// 未配置时,继续使用原 ESP32 后端。
|
||
UsbHeadErpcConfig usb_erpc = 5;
|
||
}
|
||
|
||
// 配置文件的根结构。
|
||
message BioHeadRobotRootConfig {
|
||
BioHeadRobotConfig bio_head = 1;
|
||
} |