Skip to content

Commit 783f6e8

Browse files
committed
fix(avoidance): fix invalid road bound distance calculation (autowarefoundation#6781)
fix(avoidance): fix invalid road shoulder distance calculation Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent bd987a3 commit 783f6e8

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
@@ -966,8 +966,7 @@ double getRoadShoulderDistance(
966966
}
967967

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

0 commit comments

Comments
 (0)