diff --git a/planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp b/planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp index f39d706eb7ceb..ea8b5fd79c5d0 100644 --- a/planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp +++ b/planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp @@ -864,7 +864,7 @@ bool GoalPlannerModule::hasDecidedPath() const // If it is dangerous before approval, do not determine the path. // This eliminates a unsafe path to be approved - if (!isSafePath() && !isActivated()) { + if (parameters_->safety_check_params.enable_safety_check && !isSafePath() && !isActivated()) { return false; }