Apollo 10.0
自动驾驶开放平台
map_road.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.hdmap;
4
7
8message BoundaryEdge {
9 optional Curve curve = 1;
10 enum Type {
11 UNKNOWN = 0;
12 NORMAL = 1;
13 LEFT_BOUNDARY = 2;
14 RIGHT_BOUNDARY = 3;
15 };
16 optional Type type = 2;
17}
18
20 repeated BoundaryEdge edge = 1;
21}
22
23// boundary with holes
24message RoadBoundary {
25 optional BoundaryPolygon outer_polygon = 1;
26 // if boundary without hole, hole is null
27 repeated BoundaryPolygon hole = 2;
28}
29
31 optional Id id = 1;
32 repeated RoadBoundary road_boundaries = 2;
33}
34
35// road section defines a road cross-section, At least one section must be
36// defined in order to
37// use a road, If multiple road sections are defined, they must be listed in
38// order along the road
39message RoadSection {
40 optional Id id = 1;
41 // lanes contained in this section
42 repeated Id lane_id = 2;
43 // boundary of section
44 optional RoadBoundary boundary = 3;
45}
46
47// The road is a collection of traffic elements, such as lanes, road boundary
48// etc.
49// It provides general information about the road.
50message Road {
51 optional Id id = 1;
52 repeated RoadSection section = 2;
53
54 // if lane road not in the junction, junction id is null.
55 optional Id junction_id = 3;
56
57 enum Type {
58 UNKNOWN = 0;
59 HIGHWAY = 1;
60 CITY_ROAD = 2;
61 PARK = 3;
62 };
63 optional Type type = 4;
64}
syntax
Definition map_road.proto:1