scenario_simulator_v2 C++ API
test_lanelet_wrapper.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
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 TRAFFIC_SIMULATOR__TEST__TEST_LANELET_WRAPPER_HPP_
16 #define TRAFFIC_SIMULATOR__TEST__TEST_LANELET_WRAPPER_HPP_
17 
18 #include <geometry_msgs/msg/point.h>
19 #include <gtest/gtest.h>
20 
21 #include <ament_index_cpp/get_package_share_directory.hpp>
23 #include <string>
31 
32 #include "../expect_eq_macros.hpp"
33 #include "../helper_functions.hpp"
34 
35 class LaneletWrapperTest_StandardMap : public testing::Test
36 {
37 protected:
39 };
40 class LaneletWrapperTest_WithoutLightBulb : public testing::Test
41 {
42 protected:
44 };
45 
46 class LaneletWrapperTest_WithRoadShoulderMap : public testing::Test
47 {
48 protected:
50 };
51 class LaneletWrapperTest_EmptyMap : public testing::Test
52 {
53 protected:
55 };
56 class LaneletWrapperTest_FourTrackHighwayMap : public testing::Test
57 {
58 protected:
60 };
62 {
63 protected:
65  {
66  activateLaneletWrapper("crossroads_with_stoplines");
67  }
68 };
69 class LaneletWrapperTest_KashiwanohaMap : public testing::Test
70 {
71 protected:
73  {
74  const auto lanelet_path =
75  ament_index_cpp::get_package_share_directory("kashiwanoha_map") + "/map/lanelet2_map.osm";
77  }
78 };
79 class LaneletWrapperTest_IntersectionMap : public testing::Test
80 {
81 protected:
83 };
84 
85 #endif // TRAFFIC_SIMULATOR__TEST__TEST_LANELET_WRAPPER_HPP_
Definition: test_lanelet_wrapper.hpp:62
LaneletWrapperTest_CrossroadsWithStoplinesMap()
Definition: test_lanelet_wrapper.hpp:64
Definition: test_lanelet_wrapper.hpp:52
LaneletWrapperTest_EmptyMap()
Definition: test_lanelet_wrapper.hpp:54
Definition: test_lanelet_wrapper.hpp:57
LaneletWrapperTest_FourTrackHighwayMap()
Definition: test_lanelet_wrapper.hpp:59
Definition: test_lanelet_wrapper.hpp:80
LaneletWrapperTest_IntersectionMap()
Definition: test_lanelet_wrapper.hpp:82
Definition: test_lanelet_wrapper.hpp:70
LaneletWrapperTest_KashiwanohaMap()
Definition: test_lanelet_wrapper.hpp:72
Definition: test_lanelet_wrapper.hpp:36
LaneletWrapperTest_StandardMap()
Definition: test_lanelet_wrapper.hpp:38
Definition: test_lanelet_wrapper.hpp:47
LaneletWrapperTest_WithRoadShoulderMap()
Definition: test_lanelet_wrapper.hpp:49
Definition: test_lanelet_wrapper.hpp:41
LaneletWrapperTest_WithoutLightBulb()
Definition: test_lanelet_wrapper.hpp:43
auto activate(Ts &&... xs)
Definition: lanelet_map.hpp:33
auto activateLaneletWrapper(const std::string map_name) -> void
Definition: helper_functions.hpp:89