Apollo  v5.5.0
Open source self driving car software
hdmap_struct.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 #pragma once
17 
18 #include <memory>
19 #include <vector>
20 
22 
23 namespace apollo {
24 namespace perception {
25 namespace base {
26 
27 struct alignas(16) RoadBoundary {
30 };
31 
32 struct alignas(16) LaneBoundary {
35 };
36 
37 struct alignas(16) HdmapStruct {
38  std::vector<RoadBoundary> road_boundary;
39  std::vector<PointCloud<PointD>> road_polygons;
40  std::vector<PointCloud<PointD>> hole_polygons;
41  std::vector<PointCloud<PointD>> junction_polygons;
42 };
43 
44 using HdmapStructPtr = std::shared_ptr<HdmapStruct>;
45 using HdmapStructConstPtr = std::shared_ptr<const HdmapStruct>;
46 
47 } // namespace base
48 } // namespace perception
49 } // namespace apollo
Definition: hdmap_struct.h:37
PointCloud< PointD > right_boundary
Definition: hdmap_struct.h:34
std::vector< PointCloud< PointD > > hole_polygons
Definition: hdmap_struct.h:40
Definition: blob.h:72
std::vector< PointCloud< PointD > > junction_polygons
Definition: hdmap_struct.h:41
Definition: hdmap_struct.h:32
std::shared_ptr< const HdmapStruct > HdmapStructConstPtr
Definition: hdmap_struct.h:45
Definition: point_cloud.h:33
PointCloud< PointD > left_boundary
Definition: hdmap_struct.h:28
Definition: hdmap_struct.h:27
std::vector< PointCloud< PointD > > road_polygons
Definition: hdmap_struct.h:39
std::shared_ptr< HdmapStruct > HdmapStructPtr
Definition: hdmap_struct.h:44
std::vector< RoadBoundary > road_boundary
Definition: hdmap_struct.h:38
PointCloud< PointD > left_boundary
Definition: hdmap_struct.h:33
PointCloud< PointD > right_boundary
Definition: hdmap_struct.h:29