avoidance ignores pedestrian if there is a bus behind #2095
Description
Checklist
- I've read the contribution guidelines.
- I've searched other issues and no duplicate issues were found.
- I'm convinced that this is not my fault but a bug.
Description
In behavior_path_planner
module, it is possible to disable avoidance for some obstacles, such as pedestrian.
For example in the following situation, a pedestrian is on the path and the vehicle does not try to avoid it:
However, if there is another obstacle that can be avoided behind the pedestrian, then the vehicle tries to avoid both:
I guess "unavoidable" obstacles have been introduced to avoid risky manoeuver (e.g. the pedestrian will likely not stay on the middle of the road, so it is better to simply wait). In such case, the vehicle should stop in front of the pedestrian like in the first screenshot.
Expected behavior
The vehicle never avoid non-target obstacle.
Actual behavior
non-target obstacle is avoided under some circumstances
Steps to reproduce
see pictures above
Versions
No response
Possible causes
No response
Additional context
No response