From f9859d4be7697e8966b45ff3e6542209f1c4182c Mon Sep 17 00:00:00 2001 From: Zulfaqar Azmi Date: Tue, 5 Nov 2024 20:43:25 +0900 Subject: [PATCH] fix logic Signed-off-by: Zulfaqar Azmi --- planning/behavior_path_lane_change_module/src/utils/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/behavior_path_lane_change_module/src/utils/utils.cpp b/planning/behavior_path_lane_change_module/src/utils/utils.cpp index 7dab57bf1e8eb..04e2c98815eba 100644 --- a/planning/behavior_path_lane_change_module/src/utils/utils.cpp +++ b/planning/behavior_path_lane_change_module/src/utils/utils.cpp @@ -1342,8 +1342,8 @@ bool has_overtaking_turn_lane_object( const ExtendedPredictedObjects & trailing_objects) { // Note: This situation is only applicable if the ego is in a turn lane. - if (!has_passed_intersection_turn_direction(lc_param, status)) { - return true; + if (has_passed_intersection_turn_direction(lc_param, status)) { + return false; } const auto & target_lanes = status.target_lanes;