Skip to content

Commit

Permalink
fix(behavior_path_planner): fix lane change path validation logic (#2873
Browse files Browse the repository at this point in the history
)

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
  • Loading branch information
rej55 committed Feb 13, 2023
1 parent b850b25 commit 58ee5e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ bool hasEnoughDistance(
return true;
}

if (lane_change_total_distance > util::getDistanceToEndOfLane(current_pose, target_lanes)) {
if (
lane_change_total_distance + lane_change_required_distance >
util::getDistanceToEndOfLane(current_pose, target_lanes)) {
return false;
}

Expand Down

0 comments on commit 58ee5e4

Please sign in to comment.