Skip to content

Commit

Permalink
fix(behavior_path_planner): make use of the avoid_linestring.distance…
Browse files Browse the repository at this point in the history
… parameter (autowarefoundation#4198)

Signed-off-by: Maxime CLEMENT <[email protected]>
  • Loading branch information
maxime-clem authored and t4-x2 committed Aug 29, 2023
1 parent 13d599c commit 5cceb0e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ multi_polygon_t createExpansionPolygons(
: footprint_dist;
auto expansion_polygon = createExpansionPolygon(base_ls, expansion_dist, is_left);
auto limited_dist = expansion_dist;
const auto uncrossable_dist_limit =
calculateDistanceLimit(base_ls, expansion_polygon, uncrossable_lines);
const auto uncrossable_dist_limit = std::max(
0.0, calculateDistanceLimit(base_ls, expansion_polygon, uncrossable_lines) -
params.avoid_linestring_dist);
if (uncrossable_dist_limit < limited_dist) {
limited_dist = uncrossable_dist_limit;
if (params.compensate_uncrossable_lines) {
Expand Down

0 comments on commit 5cceb0e

Please sign in to comment.