File tree 1 file changed +5
-2
lines changed
planning/behavior_path_planner/src/scene_module/goal_planner
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -669,7 +669,9 @@ void GoalPlannerModule::setOutput(BehaviorModuleOutput & output)
669
669
if (!status_.is_safe_static_objects ) {
670
670
// situation : not safe against static objects use stop_path
671
671
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 ()) {
673
675
// situation : not safe against dynamic objects after approval
674
676
// insert stop point in current path if ego is able to stop with acceleration and jerk
675
677
// constraints
@@ -701,7 +703,8 @@ void GoalPlannerModule::setOutput(BehaviorModuleOutput & output)
701
703
// for the next loop setOutput().
702
704
// this is used to determine whether to generate a new stop path or keep the current stop path.
703
705
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 ;
705
708
}
706
709
707
710
void GoalPlannerModule::setStopPath (BehaviorModuleOutput & output)
You can’t perform that action at this time.
0 commit comments