Commit e1eea17 1 parent 787fbbd commit e1eea17 Copy full SHA for e1eea17
File tree 1 file changed +12
-6
lines changed
planning/behavior_path_planner/src/utils/avoidance
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -890,12 +890,6 @@ void filterTargetObjects(
890
890
}
891
891
}
892
892
893
- if (!isVehicleTypeObject (o) && isWithinCrosswalk (o, rh->getOverallGraphPtr ())) {
894
- o.reason = " CrosswalkUser" ;
895
- data.other_objects .push_back (o);
896
- continue ;
897
- }
898
-
899
893
// calculate avoid_margin dynamically
900
894
// NOTE: This calculation must be after calculating to_road_shoulder_distance.
901
895
const double max_avoid_margin = object_parameter.safety_buffer_lateral * o.distance_factor +
@@ -927,6 +921,18 @@ void filterTargetObjects(
927
921
}
928
922
}
929
923
924
+ if (!isVehicleTypeObject (o)) {
925
+ if (isWithinCrosswalk (o, rh->getOverallGraphPtr ())) {
926
+ o.reason = " CrosswalkUser" ;
927
+ data.other_objects .push_back (o);
928
+ } else {
929
+ o.last_seen = now;
930
+ o.avoid_margin = avoid_margin;
931
+ data.target_objects .push_back (o);
932
+ }
933
+ continue ;
934
+ }
935
+
930
936
const auto stop_time_longer_than_threshold =
931
937
o.stop_time > parameters->threshold_time_force_avoidance_for_stopped_vehicle ;
932
938
You can’t perform that action at this time.
0 commit comments