Skip to content

Commit

Permalink
fix(behavior_path_planner): consider length for unavoidable objects a…
Browse files Browse the repository at this point in the history
…round the goal (autowarefoundation#2617) (autowarefoundation#237)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored Jan 8, 2023
1 parent 8590737 commit 669c493
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ void AvoidanceModule::fillAvoidanceTargetObjects(
continue;
}

if (object_data.longitudinal + parameters_->object_check_goal_distance > dist_to_goal) {
if (
object_data.longitudinal + object_data.length / 2 + parameters_->object_check_goal_distance >
dist_to_goal) {
avoidance_debug_array_false_and_push_back("TooNearToGoal");
data.other_objects.push_back(object_data);
continue;
Expand Down

0 comments on commit 669c493

Please sign in to comment.