Skip to content

Commit

Permalink
fix(goal_planner): fix prevent auto approval for unsafe path #5621 (#…
Browse files Browse the repository at this point in the history
…5636)

Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Nov 21, 2023
1 parent 88c1e72 commit 8e209a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8e209a1

Please sign in to comment.