Skip to content

Commit 43e9246

Browse files
authored
Merge branch 'autowarefoundation:main' into main
2 parents 7122ba0 + ee7a97e commit 43e9246

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,9 @@ void GoalPlannerModule::setOutput(BehaviorModuleOutput & output)
669669
if (!status_.is_safe_static_objects) {
670670
// situation : not safe against static objects use stop_path
671671
setStopPath(output);
672-
} else if (!isSafePath() && status_.has_decided_path && isActivated()) {
672+
} else if (
673+
parameters_->safety_check_params.enable_safety_check && !isSafePath() &&
674+
status_.has_decided_path && isActivated()) {
673675
// situation : not safe against dynamic objects after approval
674676
// insert stop point in current path if ego is able to stop with acceleration and jerk
675677
// constraints
@@ -701,7 +703,8 @@ void GoalPlannerModule::setOutput(BehaviorModuleOutput & output)
701703
// for the next loop setOutput().
702704
// this is used to determine whether to generate a new stop path or keep the current stop path.
703705
status_.prev_is_safe = status_.is_safe_static_objects;
704-
status_.prev_is_safe_dynamic_objects = isSafePath();
706+
status_.prev_is_safe_dynamic_objects =
707+
parameters_->safety_check_params.enable_safety_check ? isSafePath() : true;
705708
}
706709

707710
void GoalPlannerModule::setStopPath(BehaviorModuleOutput & output)

0 commit comments

Comments
 (0)