Skip to content

Commit c263222

Browse files
fix comparison sign
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
1 parent 846e412 commit c263222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/motion_utils/include/motion_utils/trajectory/trajectory.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ double calcLateralOffset(
608608
}
609609

610610
const auto p_indices = overlap_removed_points.size() - 2;
611-
const auto p_front_idx = (p_indices < seg_idx) ? seg_idx : p_indices;
611+
const auto p_front_idx = (p_indices > seg_idx) ? seg_idx : p_indices;
612612
const auto p_back_idx = p_front_idx + 1;
613613

614614
const auto p_front = tier4_autoware_utils::getPoint(overlap_removed_points.at(p_front_idx));

0 commit comments

Comments
 (0)