Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Jan 10, 2024
1 parent 370dadc commit 239496b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions planning/behavior_path_lane_change_module/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ bool LaneChangeInterface::canTransitFailureState()
return false;
}

log_debug_throttled("It's unsafe and ego is in prepare phase. Cancel lane change.");
return true;
if (module_type_->isAbleToReturnCurrentLane()) {
log_debug_throttled("It's unsafe and ego is in prepare phase. Cancel lane change.");
return true;
}
}

if (post_process_safety_status_.is_safe) {
Expand Down

0 comments on commit 239496b

Please sign in to comment.