Skip to content

Commit

Permalink
fix(static_obstacle_avoidance): change implementation the logic to re…
Browse files Browse the repository at this point in the history
…move invalid small shift lines (autowarefoundation#8721)

* Revert "fix(static_obstacle_avoidance): remove invalid small shift lines (autowarefoundation#8344)"

This reverts commit 2705a63.

* fix(static_obstacle_avoidance): remove invalid small shift lines

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>

---------

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored Sep 3, 2024
1 parent 602e3d0 commit 74bd8ed
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ AvoidLineArray ShiftLineGenerator::applyFillGapProcess(

// fill gap among shift lines.
for (size_t i = 0; i < sorted.size() - 1; ++i) {
if (sorted.at(i + 1).start_longitudinal < sorted.at(i).end_longitudinal) {
if (sorted.at(i + 1).start_longitudinal < sorted.at(i).end_longitudinal + 1e-3) {
continue;
}

Expand All @@ -827,8 +827,6 @@ AvoidLineArray ShiftLineGenerator::applyFillGapProcess(
utils::static_obstacle_avoidance::fillAdditionalInfoFromLongitudinal(
data, debug.step1_front_shift_line);

applySmallShiftFilter(ret, 1e-3);

return ret;
}

Expand Down

0 comments on commit 74bd8ed

Please sign in to comment.