Apollo 9.0
自动驾驶开放平台
map_lane.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.hdmap;
4
7
9 enum Type {
10 UNKNOWN = 0;
11 DOTTED_YELLOW = 1;
12 DOTTED_WHITE = 2;
13 SOLID_YELLOW = 3;
14 SOLID_WHITE = 4;
15 DOUBLE_YELLOW = 5;
16 CURB = 6;
17 };
18 // Offset relative to the starting point of boundary
19 optional double s = 1;
20 // support multiple types
21 repeated Type types = 2;
22}
23
24message LaneBoundary {
25 optional Curve curve = 1;
26
27 optional double length = 2;
28 // indicate whether the lane boundary exists in real world
29 optional bool virtual = 3;
30 // in ascending order of s
31 repeated LaneBoundaryType boundary_type = 4;
32}
33
34// Association between central point to closest boundary.
36 optional double s = 1;
37 optional double width = 2;
38}
39
40// A lane is part of a roadway, that is designated for use by a single line of
41// vehicles.
42// Most public roads (include highways) have more than two lanes.
43message Lane {
44 optional Id id = 1;
45
46 // Central lane as reference trajectory, not necessary to be the geometry
47 // central.
48 optional Curve central_curve = 2;
49
50 // Lane boundary curve.
51 optional LaneBoundary left_boundary = 3;
52 optional LaneBoundary right_boundary = 4;
53
54 // in meters.
55 optional double length = 5;
56
57 // Speed limit of the lane, in meters per second.
58 optional double speed_limit = 6;
59
60 repeated Id overlap_id = 7;
61
62 // All lanes can be driving into (or from).
63 repeated Id predecessor_id = 8;
64 repeated Id successor_id = 9;
65
66 // Neighbor lanes on the same direction.
67 repeated Id left_neighbor_forward_lane_id = 10;
68 repeated Id right_neighbor_forward_lane_id = 11;
69
70 enum LaneType {
71 NONE = 1;
72 CITY_DRIVING = 2;
73 BIKING = 3;
74 SIDEWALK = 4;
75 PARKING = 5;
76 SHOULDER = 6;
77 };
78 optional LaneType type = 12;
79
80 enum LaneTurn {
81 NO_TURN = 1;
82 LEFT_TURN = 2;
83 RIGHT_TURN = 3;
84 U_TURN = 4;
85 };
86 optional LaneTurn turn = 13;
87
88 repeated Id left_neighbor_reverse_lane_id = 14;
89 repeated Id right_neighbor_reverse_lane_id = 15;
90
91 optional Id junction_id = 16;
92
93 // Association between central point to closest boundary.
94 repeated LaneSampleAssociation left_sample = 17;
95 repeated LaneSampleAssociation right_sample = 18;
96
98 FORWARD = 1;
99 BACKWARD = 2;
100 BIDIRECTION = 3;
101 }
102 optional LaneDirection direction = 19;
103
104 // Association between central point to closest road boundary.
105 repeated LaneSampleAssociation left_road_sample = 20;
106 repeated LaneSampleAssociation right_road_sample = 21;
107
108 repeated Id self_reverse_lane_id = 22;
109}
syntax
Definition map_lane.proto:1