Apollo
10.0
自动驾驶开放平台
map_road.proto
浏览该文件的文档.
1
syntax
=
"proto2"
;
2
3
package
apollo.hdmap;
4
5
import
"
modules/common_msgs/map_msgs/map_geometry.proto
";
6
import
"
modules/common_msgs/map_msgs/map_id.proto
";
7
8
message
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
19
message
BoundaryPolygon
{
20
repeated
BoundaryEdge
edge = 1;
21
}
22
23
// boundary with holes
24
message
RoadBoundary
{
25
optional
BoundaryPolygon
outer_polygon = 1;
26
// if boundary without hole, hole is null
27
repeated
BoundaryPolygon
hole = 2;
28
}
29
30
message
RoadROIBoundary
{
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
39
message
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.
50
message
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
}
map_geometry.proto
map_id.proto
syntax
syntax
Definition
map_road.proto:1
apollo::hdmap::BoundaryEdge
Definition
map_road.proto:8
apollo::hdmap::BoundaryEdge::Type
Type
Definition
map_road.proto:10
apollo::hdmap::BoundaryPolygon
Definition
map_road.proto:19
apollo::hdmap::Curve
Definition
map_geometry.proto:29
apollo::hdmap::Id
Definition
map_id.proto:6
apollo::hdmap::RoadBoundary
Definition
map_road.proto:24
apollo::hdmap::RoadROIBoundary
Definition
map_road.proto:30
apollo::hdmap::RoadSection
Definition
map_road.proto:39
apollo::hdmap::Road
Definition
map_road.proto:50
apollo::hdmap::Road::Type
Type
Definition
map_road.proto:57
modules
common_msgs
map_msgs
map_road.proto