44 lines
1.4 KiB
Protocol Buffer
44 lines
1.4 KiB
Protocol Buffer
|
|
// biohead.proto
|
|||
|
|
syntax = "proto3";
|
|||
|
|
|
|||
|
|
package cmvr.config;
|
|||
|
|
|
|||
|
|
// 眉毛配置
|
|||
|
|
message EyeBrowConfig {
|
|||
|
|
string serial = 1; // 如 "64:0~3"
|
|||
|
|
string offest = 2; // 偏移量,如 "90 90 90 90"
|
|||
|
|
string jLmtUp = 3; // 上限,如 "90 170 155 110"
|
|||
|
|
string jLmtLow = 4; // 下限,如 "20 77 90 20"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 眼睛配置
|
|||
|
|
message EyeConfig {
|
|||
|
|
string serial = 1; // 如 "64:4~9"
|
|||
|
|
string offest = 2; // 偏移量,如 "90 90 90 90 90 90"
|
|||
|
|
string jLmtUp = 3; // 上限,如 "90 150 165 90 120 115"
|
|||
|
|
string jLmtLow = 4; // 下限,如 "20 90 90 25 70 75"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 嘴巴配置
|
|||
|
|
message MouthConfig {
|
|||
|
|
string serial = 1; // 如 "65:0~9"
|
|||
|
|
string offest = 2; // 偏移量,如 "90 90 90 90 90 90 90 90 90 90"
|
|||
|
|
string jLmtUp = 3; // 上限,如 "150 110 130 140 100 105 110 125 90 95"
|
|||
|
|
string jLmtLow = 4; // 下限,如 "70 30 80 80 65 55 45 80 85 90"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// BioHead配置
|
|||
|
|
message BioHeadConfig {
|
|||
|
|
string id = 1; // 设备ID,如 "bio_head"
|
|||
|
|
string serial = 2; // 串口路径,如 "/dev/ttyUSB0"
|
|||
|
|
int32 ctrlFreq = 3; // 控制频率,如 50
|
|||
|
|
|
|||
|
|
EyeBrowConfig eyebrow = 4; // 眉毛配置
|
|||
|
|
EyeConfig eye = 5; // 眼睛配置
|
|||
|
|
MouthConfig mouth = 6; // 嘴巴配置
|
|||
|
|
bool enable = 7; // 是否启用
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
message HeadConfig {
|
|||
|
|
repeated BioHeadConfig bioheads = 3;
|
|||
|
|
}
|