Skip to content

Commit

Permalink
fix(lane_change): fix terminal path not working in some case
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Apr 1, 2024
1 parent b5c29fc commit 28c3c34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,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 28c3c34

Please sign in to comment.