Files
MoGoEagleEye/libraries/mogo-adas-data/src/main/proto/traffic_light.proto
2022-04-19 19:09:34 +08:00

38 lines
1.0 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto2";
package perception;
import "header.proto";
enum LightType {
TYPE_DEFAULT = 0;
TYPE_VEHICLE = 1;//机动车道
TYPE_BICYLE = 2;//自行车道
TYPE_PEDSTRIAN = 3;//行人道
TYPE_LANE = 5;//车道
}
enum LightState {
STATE_OFF = 0;//没检测到灯
STATE_RED = 1;
STATE_YELLOW = 2;
STATE_GREEN = 3;
STATE_FLASH = 4;//闪烁
}
message TrafficLight {
optional int64 id = 1;
optional LightType type = 2 [default = TYPE_DEFAULT];//灯所处的车道类型
optional LightState state = 3 [default = STATE_OFF];//灯态
optional float duration = 4; // seconds since the last state changed
}
//触发方式120m以内会有信号但远的时候可能不准越近越准
//straight left right u_turn 同一时间只有会有一个触发
message TrafficLights {
optional common.Header header = 1;
optional TrafficLight straight = 2;//直行灯
optional TrafficLight left = 3;//左转灯
optional TrafficLight right = 4;//右转灯
optional TrafficLight u_turn = 5;//掉头灯
}