|
16 | 16 |
|
17 | 17 | // Assuming the parseRouteFile function is in 'RouteHandler.h'
|
18 | 18 | #include "ament_index_cpp/get_package_share_directory.hpp"
|
19 |
| -#include "route_parser.hpp" |
| 19 | +#include "planning_test_utils/route_parser.hpp" |
20 | 20 |
|
21 |
| -namespace route_handler::test |
| 21 | +namespace test_utils |
22 | 22 | {
|
23 | 23 | // Example YAML structure as a string for testing
|
24 | 24 | const char g_complete_yaml[] = R"(
|
@@ -94,8 +94,9 @@ TEST(ParseFunctions, CompleteYAMLTest)
|
94 | 94 | TEST(ParseFunction, CompleteFromFilename)
|
95 | 95 | {
|
96 | 96 | const auto planning_test_utils_dir =
|
97 |
| - ament_index_cpp::get_package_share_directory("route_handler"); |
98 |
| - const auto parser_test_route = planning_test_utils_dir + "/test_route/parser_test.route"; |
| 97 | + ament_index_cpp::get_package_share_directory("planning_test_utils"); |
| 98 | + const auto parser_test_route = |
| 99 | + planning_test_utils_dir + "/test_data/lanelet_route_parser_test.yaml"; |
99 | 100 |
|
100 | 101 | const auto lanelet_route = parse_route_file(parser_test_route);
|
101 | 102 | EXPECT_DOUBLE_EQ(lanelet_route.start_pose.position.x, 1.0);
|
@@ -130,4 +131,4 @@ TEST(ParseFunction, CompleteFromFilename)
|
130 | 131 | EXPECT_EQ(segment1.primitives[3].id, 88);
|
131 | 132 | EXPECT_EQ(segment1.primitives[3].primitive_type, "lane");
|
132 | 133 | }
|
133 |
| -} // namespace route_handler::test |
| 134 | +} // namespace test_utils |
0 commit comments