Skip to content

Commit

Permalink
CanonicalizedLaneletPose unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmajrobotec committed Aug 16, 2024
1 parent 714dd8e commit d308b70
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ class BehaviorPluginBase
virtual void update(double current_time, double step_time) = 0;
virtual const std::string & getCurrentAction() const = 0;

#define DEFINE_GETTER_SETTER(NAME, KEY, TYPE) \
virtual TYPE get##NAME() = 0; \
virtual void set##NAME(const TYPE & value) = 0; \
auto get##NAME##Key() const->const std::string & \
{ \
static const std::string key = KEY; \
return key; \
#define DEFINE_GETTER_SETTER(NAME, KEY, TYPE) \
virtual TYPE get##NAME() = 0; \
virtual void set##NAME(const TYPE & value) = 0; \
auto get##NAME##Key() const -> const std::string & \
{ \
static const std::string key = KEY; \
return key; \
}

// clang-format off
Expand Down
1 change: 1 addition & 0 deletions simulation/traffic_simulator/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ add_subdirectory(src/behavior)
add_subdirectory(src/job)
add_subdirectory(src/simulation_clock)
add_subdirectory(src/hdmap_utils)
add_subdirectory(src/data_type)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ament_add_gtest(test_lanelet_pose test_lanelet_pose.cpp)
target_link_libraries(test_lanelet_pose traffic_simulator)

Loading

0 comments on commit d308b70

Please sign in to comment.