Apollo 10.0
自动驾驶开放平台
common_define.h
浏览该文件的文档.
1/* Copyright 2017 The Apollo Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14=========================================================================*/
15#pragma once
16
17#include <string>
18#include <unordered_set>
19#include <vector>
20
21#include "cyber/common/log.h"
22#include "modules/common_msgs/map_msgs/map.pb.h"
23
24namespace apollo {
25namespace hdmap {
26namespace adapter {
27
41using PbObjectOverlapInfo = apollo::hdmap::ObjectOverlapInfo;
42using PbOverlap = apollo::hdmap::Overlap;
48using PbLaneType = apollo::hdmap::Lane_LaneType;
49using PbTurnType = apollo::hdmap::Lane_LaneTurn;
52using PbLaneBoundaryTypeType = apollo::hdmap::LaneBoundaryType_Type;
56using PbRegionOverlap = apollo::hdmap::RegionOverlapInfo;
58
59using PbLaneDirection = apollo::hdmap::Lane_LaneDirection;
60using PbSignalType = apollo::hdmap::Signal_Type;
61using PbSubSignalType = apollo::hdmap::Subsignal_Type;
62using PbStopSignType = apollo::hdmap::StopSign_StopType;
63using PbBoundaryEdgeType = apollo::hdmap::BoundaryEdge_Type;
64using PbRoadType = apollo::hdmap::Road_Type;
66using PbPassageType = apollo::hdmap::Passage_Type;
68
70 std::string id;
72};
73
75 std::string id;
77 std::unordered_set<std::string> stop_line_ids;
78};
79
81 std::string id;
83 std::unordered_set<std::string> stop_line_ids;
84};
85
87 std::string id;
89 std::unordered_set<std::string> stop_line_ids;
90};
91
93 std::string object_id;
94 double start_s;
95 double end_s;
97
98 std::string region_overlap_id;
99 std::vector<PbRegionOverlap> region_overlaps;
100};
101
103 std::string object_id;
104};
105
108 std::vector<OverlapWithLane> overlap_signals;
109 std::vector<OverlapWithLane> overlap_objects;
110 std::vector<OverlapWithLane> overlap_junctions;
111 std::vector<OverlapWithLane> overlap_lanes;
112};
113
116 std::unordered_set<std::string> road_ids;
117 std::vector<OverlapWithJunction> overlap_with_junctions;
118};
119
121 std::string id;
123 std::vector<LaneInternal> lanes;
124};
125
127 std::string id;
129
131 std::string junction_id;
132
133 std::string type;
134
135 std::vector<RoadSectionInternal> sections;
136
137 std::vector<TrafficLightInternal> traffic_lights;
138 // std::vector<RSUInternal> rsus;
139 std::vector<StopSignInternal> stop_signs;
140 std::vector<YieldSignInternal> yield_signs;
141 std::vector<PbCrosswalk> crosswalks;
142 std::vector<PbClearArea> clear_areas;
143 std::vector<PbSpeedBump> speed_bumps;
144 std::vector<StopLineInternal> stop_lines;
145 std::vector<PbParkingSpace> parking_spaces;
146 std::vector<PbPNCJunction> pnc_junctions;
147
149};
150
152 std::string id;
154};
155
157 std::vector<RSUInternal> rsus;
158};
159
160} // namespace adapter
161} // namespace hdmap
162} // namespace apollo
apollo::hdmap::BoundaryEdge_Type PbBoundaryEdgeType
apollo::hdmap::Overlap PbOverlap
apollo::hdmap::Lane_LaneType PbLaneType
apollo::hdmap::Subsignal_Type PbSubSignalType
apollo::hdmap::RegionOverlapInfo PbRegionOverlap
apollo::hdmap::Lane_LaneDirection PbLaneDirection
apollo::hdmap::Road_Type PbRoadType
apollo::hdmap::StopSign_StopType PbStopSignType
apollo::hdmap::Signal_Type PbSignalType
apollo::hdmap::ObjectOverlapInfo PbObjectOverlapInfo
apollo::hdmap::LaneBoundaryType_Type PbLaneBoundaryTypeType
apollo::hdmap::Lane_LaneTurn PbTurnType
apollo::hdmap::Passage_Type PbPassageType
class register implement
Definition arena_queue.h:37
std::unordered_set< std::string > road_ids
std::vector< OverlapWithJunction > overlap_with_junctions
std::vector< OverlapWithLane > overlap_lanes
std::vector< OverlapWithLane > overlap_signals
std::vector< OverlapWithLane > overlap_junctions
std::vector< OverlapWithLane > overlap_objects
std::vector< RSUInternal > rsus
std::vector< PbRegionOverlap > region_overlaps
std::vector< StopSignInternal > stop_signs
std::vector< PbPNCJunction > pnc_junctions
std::vector< PbClearArea > clear_areas
std::vector< TrafficLightInternal > traffic_lights
std::vector< RoadSectionInternal > sections
std::vector< YieldSignInternal > yield_signs
std::vector< PbSpeedBump > speed_bumps
std::vector< PbParkingSpace > parking_spaces
std::vector< StopLineInternal > stop_lines
std::vector< PbCrosswalk > crosswalks
std::unordered_set< std::string > stop_line_ids
std::unordered_set< std::string > stop_line_ids
std::unordered_set< std::string > stop_line_ids