From 3f7ceaaf077e7a8577742f2a20e2dfeb01080aa8 Mon Sep 17 00:00:00 2001 From: kosuke55 Date: Thu, 26 Oct 2023 14:36:31 +0900 Subject: [PATCH] fix Signed-off-by: kosuke55 --- planning/behavior_path_planner/src/utils/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planning/behavior_path_planner/src/utils/utils.cpp b/planning/behavior_path_planner/src/utils/utils.cpp index 5b57b2a6e4809..9c298b13b3e76 100644 --- a/planning/behavior_path_planner/src/utils/utils.cpp +++ b/planning/behavior_path_planner/src/utils/utils.cpp @@ -2888,7 +2888,7 @@ lanelet::ConstLanelets getCurrentLanesFromPath( auto extended_lanes = current_lanes; while (rclcpp::ok()) { const size_t pre_extension_size = extended_lanes.size(); // Get existing size before extension - extended_lanes = extendPrevLane(route_handler, extended_lanes); + extended_lanes = extendPrevLane(route_handler, extended_lanes, true); if (extended_lanes.size() == pre_extension_size) break; if (have_front_lanes(extended_lanes)) { current_lanes = extended_lanes;