Skip to content

Commit

Permalink
fix(lane_change): fix terminal path not working in some case (#6722)
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 authored Apr 3, 2024
1 parent 5ff3b17 commit 31b5a4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ PathWithLaneId getReferencePathFromTargetLane(
.get_child("getReferencePathFromTargetLane"),
"start: %f, end: %f", s_start, s_end);

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

Expand Down

0 comments on commit 31b5a4c

Please sign in to comment.