Skip to content

Commit

Permalink
use autoware namespace for test utils
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Jun 11, 2024
1 parent 8aeb0d7 commit 9792940
Show file tree
Hide file tree
Showing 17 changed files with 86 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {
autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options,
{autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ std::shared_ptr<BehaviorPathPlannerNode> generateNode()
params.emplace_back("launch_modules", module_names);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ std::shared_ptr<BehaviorVelocityPlannerNode> generateNode()
params.emplace_back("is_simulation", false);
node_options.parameter_overrides(params);

test_utils::updateNodeOptions(
autoware::test_utils::updateNodeOptions(
node_options, {autoware_test_utils_dir + "/config/test_common.param.yaml",
autoware_test_utils_dir + "/config/test_nearest_search.param.yaml",
autoware_test_utils_dir + "/config/test_vehicle_info.param.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using RouteSections = std::vector<autoware_planning_msgs::msg::LaneletSegment>;

Pose createPoseFromLaneID(const lanelet::Id & lane_id)
{
auto map_bin_msg = test_utils::makeMapBinMsg();
auto map_bin_msg = autoware::test_utils::makeMapBinMsg();
// create route_handler
auto route_handler = std::make_shared<RouteHandler>();
route_handler->setMap(map_bin_msg);
Expand Down Expand Up @@ -74,7 +74,7 @@ LaneletRoute makeBehaviorRouteFromLaneId(const int & start_lane_id, const int &
route.start_pose = start_pose;
route.goal_pose = goal_pose;

auto map_bin_msg = test_utils::makeMapBinMsg();
auto map_bin_msg = autoware::test_utils::makeMapBinMsg();
// create route_handler
auto route_handler = std::make_shared<RouteHandler>();
route_handler->setMap(map_bin_msg);
Expand All @@ -97,7 +97,7 @@ LaneletRoute makeBehaviorRouteFromLaneId(const int & start_lane_id, const int &
route_handler->setRouteLanelets(path_lanelets);
const auto local_route_sections = route_handler->createMapSegments(path_lanelets);
route_sections =
test_utils::combineConsecutiveRouteSections(route_sections, local_route_sections);
autoware::test_utils::combineConsecutiveRouteSections(route_sections, local_route_sections);
for (const auto & route_section : route_sections) {
for (const auto & primitive : route_section.primitives) {
std::cerr << "primitive: " << primitive.id << std::endl;
Expand Down
Loading

0 comments on commit 9792940

Please sign in to comment.