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) {