Apollo 10.0
自动驾驶开放平台
v2x_traffic_light_policy.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.v2x;
4
5message Position2D {
6 optional double x = 1;
7 optional double y = 2;
8}
9
10message Connection {
11 enum Type {
12 STRAIGHT = 0;
13 LEFT = 1;
14 RIGHT = 2;
15 U_TURN = 3;
16 };
17 optional Type allow_driving_behavior = 1;
18 optional int32 phase_id = 2;
19}
20
21message Lane {
22 optional int32 lane_id = 1;
23 repeated Position2D position_offset = 2;
24 repeated Connection connections = 3;
25}
26
27message Road {
28 optional int32 upstream_node_id = 1;
29 optional Position2D points = 2;
30 repeated Lane lanes = 3;
31}
32
33message Intersection {
34 optional int32 id = 1;
35 optional Position2D position = 2;
36 repeated Road roads = 3;
37}
38
39message Map {
40 optional double time_stamp = 1;
41 optional int32 msg_cnt = 2;
42 repeated Intersection intersections = 3;
43}
44
45message Phase {
46 enum Color {
47 UNKNOWN = 0;
48 RED = 1;
49 YELLOW = 2;
50 GREEN = 3;
51 BLACK = 4;
52 FLASH_GREEN = 5;
53 };
54 optional int32 id = 1;
55 optional Color color = 2;
56 optional int32 color_remaining_time_s = 3;
57}
58
60 optional int32 intersection_id = 1;
61 repeated Phase Phases = 2;
62 optional int32 moy = 3;
63 optional int32 time_stamp_dsecond = 4;
64}
65
66message Spat {
67 optional double time_stamp = 1;
68 optional int32 msg_cnt = 2;
69 repeated IntersectionState intersections = 3;
70}
71
72message PolicyData {
73 optional Map map = 1;
74 optional Spat spat = 2;
75}