Skip to content

Commit 90ff601

Browse files
fix(lane_change): fix terminal path not working in some case (autowarefoundation#6722)
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
1 parent ec50b71 commit 90ff601

File tree

1 file changed

+2
-1
lines changed
  • planning/behavior_path_lane_change_module/src/utils

1 file changed

+2
-1
lines changed

planning/behavior_path_lane_change_module/src/utils/utils.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ PathWithLaneId getReferencePathFromTargetLane(
439439
.get_child("getReferencePathFromTargetLane"),
440440
"start: %f, end: %f", s_start, s_end);
441441

442-
if (s_end - s_start < lane_changing_length) {
442+
constexpr double epsilon = 1e-4;
443+
if (s_end - s_start + epsilon < lane_changing_length) {
443444
return PathWithLaneId();
444445
}
445446

0 commit comments

Comments
 (0)