# control

对于控制数据的消息格式,需遵循一定规范,其中部分字段为必选,其他请根据实际需要自由选取。

表 1 control字段必选项

字段

说明

timestamp

时间戳

front_wheel_angle

方向盘转角

acceleration

加速度值

/***********************************
    content: Octopus 输入数据格式
    version: 1.0
************************************/
syntax = "proto3";
package octopusdata;
message CommandFrame {
    uint64 stamp_secs = 1;
    uint64 stamp_nsecs = 2;
    uint64 timestamp = 3;                        #必选,时间戳
    float acceleration=4;                        #必选,加速度值
    float front_wheel_angle=5;                   #必选,方向盘转角
    int32 gear=6;
}
message ControlCommand {
     repeated CommandFrame command_frame = 1;
}
上次更新: 4/21/2021, 6:14:46 PM