Skip to content

Commit 06bb9bd

Browse files
authored
fix(avoidance): fix invalid road bound distance calculation (#6781)
fix(avoidance): fix invalid road shoulder distance calculation Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 5807f7a commit 06bb9bd

File tree

1 file changed

+1
-2
lines changed
  • planning/behavior_path_avoidance_module/src

1 file changed

+1
-2
lines changed

planning/behavior_path_avoidance_module/src/utils.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,7 @@ double getRoadShoulderDistance(
874874
}
875875

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

0 commit comments

Comments
 (0)