Apollo 10.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 SHARED = 7;
78 };
79 optional LaneType type = 12;
80
81 enum LaneTurn {
82 NO_TURN = 1;
83 LEFT_TURN = 2;
84 RIGHT_TURN = 3;
85 U_TURN = 4;
86 };
87 optional LaneTurn turn = 13;
88
89 repeated Id left_neighbor_reverse_lane_id = 14;
90 repeated Id right_neighbor_reverse_lane_id = 15;
91
92 optional Id junction_id = 16;
93
94 // Association between central point to closest boundary.
95 repeated LaneSampleAssociation left_sample = 17;
96 repeated LaneSampleAssociation right_sample = 18;
97
99 FORWARD = 1;
100 BACKWARD = 2;
101 BIDIRECTION = 3;
102 }
103 optional LaneDirection direction = 19;
104
105 // Association between central point to closest road boundary.
106 repeated LaneSampleAssociation left_road_sample = 20;
107 repeated LaneSampleAssociation right_road_sample = 21;
108
109 repeated Id self_reverse_lane_id = 22;
110}
syntax
Definition map_lane.proto:1