diff --git a/planning/behavior_path_planner/src/utils/lane_change/utils.cpp b/planning/behavior_path_planner/src/utils/lane_change/utils.cpp index 70cd9195248ec..6d8f8ba532b80 100644 --- a/planning/behavior_path_planner/src/utils/lane_change/utils.cpp +++ b/planning/behavior_path_planner/src/utils/lane_change/utils.cpp @@ -408,8 +408,8 @@ std::vector generateDrivableLanes( drivable_lanes.at(i).left_lane = current_lane; drivable_lanes.at(i).right_lane = current_lane; - const auto left_lane = route_handler.getLeftLanelet(current_lane); - const auto right_lane = route_handler.getRightLanelet(current_lane); + const auto left_lane = route_handler.getLeftLanelet(current_lane, false, false); + const auto right_lane = route_handler.getRightLanelet(current_lane, false, false); if (!left_lane && !right_lane) { continue; } diff --git a/planning/route_handler/include/route_handler/route_handler.hpp b/planning/route_handler/include/route_handler/route_handler.hpp index 9c36c8bec30e7..ed697a2f79624 100644 --- a/planning/route_handler/include/route_handler/route_handler.hpp +++ b/planning/route_handler/include/route_handler/route_handler.hpp @@ -123,7 +123,7 @@ class RouteHandler */ boost::optional getRightLanelet( const lanelet::ConstLanelet & lanelet, const bool enable_same_root = false, - const bool get_shoulder_lane = false) const; + const bool get_shoulder_lane = true) const; /** * @brief Check if same-direction lane is available at the left side of the lanelet @@ -134,7 +134,7 @@ class RouteHandler */ boost::optional getLeftLanelet( const lanelet::ConstLanelet & lanelet, const bool enable_same_root = false, - const bool get_shoulder_lane = false) const; + const bool get_shoulder_lane = true) const; lanelet::ConstLanelets getNextLanelets(const lanelet::ConstLanelet & lanelet) const; lanelet::ConstLanelets getPreviousLanelets(const lanelet::ConstLanelet & lanelet) const;