From 71eb19d11e515ce3f1304acba2d3061d7d902865 Mon Sep 17 00:00:00 2001 From: Mamoru Sobue Date: Wed, 10 Jul 2024 09:59:01 +0900 Subject: [PATCH] =?UTF-8?q?PR7925=E7=9B=B8=E5=BD=93=E3=81=AE=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mamoru Sobue --- planning/behavior_velocity_blind_spot_module/src/scene.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/planning/behavior_velocity_blind_spot_module/src/scene.cpp b/planning/behavior_velocity_blind_spot_module/src/scene.cpp index 62a5e06674d4e..8a1526f471775 100644 --- a/planning/behavior_velocity_blind_spot_module/src/scene.cpp +++ b/planning/behavior_velocity_blind_spot_module/src/scene.cpp @@ -550,6 +550,13 @@ std::optional BlindSpotModule::generateBlindSpotPolygons( if (adj_lane) { return *adj_lane; } + const auto assoc_shoulder = + (turn_direction_ == TurnDirection::LEFT) + ? planner_data_->route_handler_->getLeftLanelet(lane, true /* get_shoulder_lane */) + : planner_data_->route_handler_->getRightLanelet(lane, true); + if (assoc_shoulder) { + return assoc_shoulder.value(); + } return std::nullopt; });