Skip to content

Commit

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

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored and takayuki5168 committed Nov 22, 2023
1 parent 1ca01ce commit de311a3
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 de311a3

Please sign in to comment.