Autoware.Auto
had_map_query.hpp
Go to the documentation of this file.
1 // Copyright 2020 Tier IV, Inc
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef HAD_MAP_UTILS__HAD_MAP_QUERY_HPP_
16 #define HAD_MAP_UTILS__HAD_MAP_QUERY_HPP_
17 
18 
19 #include <lanelet2_core/LaneletMap.h>
20 #include <lanelet2_core/primitives/Point.h>
21 #include <lanelet2_core/primitives/LineString.h>
22 #include <lanelet2_core/primitives/Polygon.h>
23 #include <lanelet2_core/utility/Units.h>
24 
25 #include <cmath>
26 #include <memory>
28 
29 namespace autoware
30 {
31 namespace common
32 {
33 namespace had_map_utils
34 {
35 
36 lanelet::Areas HAD_MAP_UTILS_PUBLIC getAreaLayer(const lanelet::LaneletMapPtr ll_map);
37 
38 lanelet::Areas HAD_MAP_UTILS_PUBLIC subtypeAreas(
39  const lanelet::Areas areas, const char subtype[]);
40 
41 lanelet::Polygons3d HAD_MAP_UTILS_PUBLIC getPolygonLayer(const lanelet::LaneletMapPtr ll_map);
42 
43 lanelet::Polygons3d HAD_MAP_UTILS_PUBLIC subtypePolygons(
44  const lanelet::Polygons3d polygons, const char subtype[]);
45 
46 lanelet::LineStrings3d HAD_MAP_UTILS_PUBLIC getLineStringLayer(const lanelet::LaneletMapPtr ll_map);
47 
48 lanelet::LineStrings3d HAD_MAP_UTILS_PUBLIC subtypeLineStrings(
49  const lanelet::LineStrings3d linestrings, const char subtype[]);
50 
51 lanelet::ConstLanelets HAD_MAP_UTILS_PUBLIC getConstLaneletLayer(
52  const std::shared_ptr<lanelet::LaneletMap> & ll_map);
53 
54 lanelet::Lanelets HAD_MAP_UTILS_PUBLIC getLaneletLayer(
55  const std::shared_ptr<lanelet::LaneletMap> & ll_map);
56 
57 } // namespace had_map_utils
58 } // namespace common
59 } // namespace autoware
60 
61 #endif // HAD_MAP_UTILS__HAD_MAP_QUERY_HPP_
autoware::common::had_map_utils::getLineStringLayer
lanelet::LineStrings3d HAD_MAP_UTILS_PUBLIC getLineStringLayer(const lanelet::LaneletMapPtr ll_map)
Definition: had_map_query.cpp:83
visibility_control.hpp
autoware
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24
autoware::common::had_map_utils::getConstLaneletLayer
lanelet::ConstLanelets HAD_MAP_UTILS_PUBLIC getConstLaneletLayer(const std::shared_ptr< lanelet::LaneletMap > &ll_map)
Definition: had_map_query.cpp:111
autoware::common::had_map_utils::getLaneletLayer
lanelet::Lanelets HAD_MAP_UTILS_PUBLIC getLaneletLayer(const std::shared_ptr< lanelet::LaneletMap > &ll_map)
Definition: had_map_query.cpp:120
autoware::common::had_map_utils::subtypeLineStrings
lanelet::LineStrings3d HAD_MAP_UTILS_PUBLIC subtypeLineStrings(const lanelet::LineStrings3d linestrings, const char subtype[])
Definition: had_map_query.cpp:94
autoware::common::had_map_utils::subtypePolygons
lanelet::Polygons3d HAD_MAP_UTILS_PUBLIC subtypePolygons(const lanelet::Polygons3d polygons, const char subtype[])
Definition: had_map_query.cpp:67
autoware::common::had_map_utils::subtypeAreas
lanelet::Areas HAD_MAP_UTILS_PUBLIC subtypeAreas(const lanelet::Areas areas, const char subtype[])
Definition: had_map_query.cpp:43
autoware::common::had_map_utils::getAreaLayer
lanelet::Areas HAD_MAP_UTILS_PUBLIC getAreaLayer(const lanelet::LaneletMapPtr ll_map)
Definition: had_map_query.cpp:34
autoware::common::had_map_utils::getPolygonLayer
lanelet::Polygons3d HAD_MAP_UTILS_PUBLIC getPolygonLayer(const lanelet::LaneletMapPtr ll_map)
Definition: had_map_query.cpp:58