Skip to content

Commit 2f233b4

Browse files
fix(lane_change): check able to return to original lane in abort (autowarefoundation#6034)
* fix(lane_change): check able to return to original lane in abort Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix cancel state Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * revert changes Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
1 parent 89139f3 commit 2f233b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

planning/behavior_path_lane_change_module/src/interface.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ bool LaneChangeInterface::canTransitFailureState()
276276
return false;
277277
}
278278

279+
if (!module_type_->isAbleToReturnCurrentLane()) {
280+
log_debug_throttled("It's is not possible to return to original lane. Continue lane change.");
281+
return false;
282+
}
283+
279284
const auto found_abort_path = module_type_->calcAbortPath();
280285
if (!found_abort_path) {
281286
log_debug_throttled(

0 commit comments

Comments
 (0)