Skip to content

Commit

Permalink
fix(avoidance): fix invalid road shoulder distance calculation
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed Apr 9, 2024
1 parent f5c30eb commit 0f4cb74
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 @@ -872,8 +872,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 0f4cb74

Please sign in to comment.