Skip to content

Commit

Permalink
fixup! feat(avoidance): suppress unnecessary avoidance path
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi-ota committed Nov 24, 2023
1 parent feafac5 commit cbb0012
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion planning/behavior_path_planner/src/utils/avoidance/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ bool isSatisfiedWithVehicleCondition(
if (on_ego_driving_lane) {
if (isObjectOnRoadShoulder(object, planner_data->route_handler, parameters)) {
return true;
} else {
object.reason = AvoidanceDebugFactor::NOT_PARKING_OBJECT;
return false;
}
}

Expand Down Expand Up @@ -1425,7 +1428,7 @@ void filterTargetObjects(
}

o.to_road_shoulder_distance = getRoadShoulderDistance(o, data, planner_data, parameters);
o.avoid_margin = getAvoidMargin(o, planner_data, parameters);
o.avoid_margin = filtering_utils::getAvoidMargin(o, planner_data, parameters);

if (filtering_utils::isNoNeedAvoidanceBehavior(o, parameters)) {
data.other_objects.push_back(o);
Expand Down

0 comments on commit cbb0012

Please sign in to comment.