Skip to content

Commit

Permalink
Merge pull request #1389 from tier4/1377/isInLanelet
Browse files Browse the repository at this point in the history
Change comparison oparator in isInLanelet
  • Loading branch information
hakuturu583 authored Oct 2, 2024
2 parents a8bbce3 + 16056d3 commit 78a44f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulation/traffic_simulator/src/utils/pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ auto isInLanelet(
start_lanelet_pose, canonicalized_lanelet_pose, include_adjacent_lanelet,
include_opposite_direction, allow_lane_change, hdmap_utils_ptr);
distance_to_start_lanelet_pose and
std::abs(distance_to_start_lanelet_pose.value()) < tolerance) {
std::abs(distance_to_start_lanelet_pose.value()) <= tolerance) {
return true;
}

Expand All @@ -252,7 +252,7 @@ auto isInLanelet(
canonicalized_lanelet_pose, end_lanelet_pose, include_adjacent_lanelet,
include_opposite_direction, allow_lane_change, hdmap_utils_ptr);
distance_to_end_lanelet_pose and
std::abs(distance_to_end_lanelet_pose.value()) < tolerance) {
std::abs(distance_to_end_lanelet_pose.value()) <= tolerance) {
return true;
}
}
Expand Down

0 comments on commit 78a44f7

Please sign in to comment.