Skip to content

Commit

Permalink
cherry-pick(lane_change): check able to return to original lane
Browse files Browse the repository at this point in the history
* fix(lane_change): check able to return to original lane in abort

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* fix cancel state

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* revert changes

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Jan 11, 2024
1 parent 86e32ba commit 47e905c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions planning/behavior_path_lane_change_module/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ bool LaneChangeInterface::canTransitFailureState()
return false;
}

if (!module_type_->isAbleToReturnCurrentLane()) {
log_debug_throttled("It's is not possible to return to original lane. Continue lane change.");
return false;
}

const auto found_abort_path = module_type_->calcAbortPath();
if (!found_abort_path) {
log_debug_throttled(
Expand Down

0 comments on commit 47e905c

Please sign in to comment.