Skip to content

Commit

Permalink
fix(behavior_path_planner): fix goal planner backward parking (#3601)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed May 2, 2023
1 parent 66a01ff commit 8b2da4b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ bool GoalPlannerModule::isExecutionRequested() const
route_handler->isAllowedGoalModification() || checkOriginalGoalIsInShoulder();
const double request_length =
allow_goal_modification ? calcModuleRequestLength() : parameters_->minimum_request_length;
if (self_to_goal_arc_length < 0.0 || self_to_goal_arc_length > request_length) {
const double backward_goal_search_length =
allow_goal_modification ? parameters_->backward_goal_search_length : 0.0;
if (
self_to_goal_arc_length < -backward_goal_search_length ||
self_to_goal_arc_length > request_length) {
return false;
}

Expand Down

0 comments on commit 8b2da4b

Please sign in to comment.