Skip to content

Commit

Permalink
fix(avoidance): fix invalid road bound distance calculation (autoware…
Browse files Browse the repository at this point in the history
…foundation#6781)

fix(avoidance): fix invalid road shoulder distance calculation

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota authored and karishma1911 committed Jun 3, 2024
1 parent b2d8422 commit 325b0e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planning/behavior_path_avoidance_module/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,7 @@ double getRoadShoulderDistance(
}

{
const auto p2 =
calcOffsetPose(p_tmp, 0.0, (isOnRight(object) ? -100.0 : 100.0), 0.0).position;
const auto p2 = calcOffsetPose(p_tmp, 0.0, (isOnRight(object) ? -1.0 : 1.0), 0.0).position;
const auto opt_intersect =
tier4_autoware_utils::intersect(p1.second, p2, bound.at(i - 1), bound.at(i));

Expand Down

0 comments on commit 325b0e0

Please sign in to comment.