Skip to content

Commit 8e209a1

Browse files
authored
fix(goal_planner): fix prevent auto approval for unsafe path #5621 (#5636)
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 88c1e72 commit 8e209a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

planning/behavior_path_planner/src/scene_module/goal_planner/goal_planner_module.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ bool GoalPlannerModule::hasDecidedPath() const
864864

865865
// If it is dangerous before approval, do not determine the path.
866866
// This eliminates a unsafe path to be approved
867-
if (!isSafePath() && !isActivated()) {
867+
if (parameters_->safety_check_params.enable_safety_check && !isSafePath() && !isActivated()) {
868868
return false;
869869
}
870870

0 commit comments

Comments
 (0)