自动驾驶云服务 OCTOPUS-消息topic格式规范:Traffic_light_info

时间:2024-04-10 17:33:36

Traffic_light_info

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

表10 traffic_light_info消息格式规范

格式名称

说明

TrafficLightInfo

交通灯

/***********************************
    content: Octopus 输入数据格式
    version: 1.0
************************************/
syntax = "proto3"。

package Octopusdata。

message Light {
	uint64 id = 1。
	uint64 color = 2。
	uint64 state = 3。
	uint64 type = 4。
    float location_x = 5。
    float location_y = 6。
    float location_z = 7。
}

message Lights {
    uint64 timestamp = 1。
    uint64 stamp_secs = 2。
	uint64 stamp_nsecs = 3。
    repeated Light lights = 4。
}

message TrafficLightInfo {
    repeated Lights trafficlight_info = 1。
}
support.huaweicloud.com/octopus_faq/octopus-09-0009.html