From 50bbff85089fd8d78580a123d7f687d430f49607 Mon Sep 17 00:00:00 2001 From: Kyoichi Sugahara Date: Tue, 30 Jan 2024 10:21:07 +0900 Subject: [PATCH] Update planning/behavior_path_start_planner_module/src/start_planner_module.cpp Co-authored-by: Kosuke Takeuchi --- .../src/start_planner_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/behavior_path_start_planner_module/src/start_planner_module.cpp b/planning/behavior_path_start_planner_module/src/start_planner_module.cpp index 9d4c5e61029fc..5dd6b61da7899 100644 --- a/planning/behavior_path_start_planner_module/src/start_planner_module.cpp +++ b/planning/behavior_path_start_planner_module/src/start_planner_module.cpp @@ -675,13 +675,13 @@ bool StartPlannerModule::findPullOutPath( PathWithLaneId StartPlannerModule::extractCollisionCheckSection( const PullOutPath & path, const behavior_path_planner::PlannerType & planner_type) { - std::map collision_check_distances = { + const std::map collision_check_distances = { {behavior_path_planner::PlannerType::SHIFT, parameters_->shift_collision_check_distance_from_end}, {behavior_path_planner::PlannerType::GEOMETRIC, parameters_->geometric_collision_check_distance_from_end}}; - double collision_check_distance_from_end = collision_check_distances[planner_type]; + const double collision_check_distance_from_end = collision_check_distances[planner_type]; PathWithLaneId combined_path; for (const auto & partial_path : path.partial_paths) {