Skip to content

Commit cd1e5db

Browse files
0x126soblin
andauthoredJul 12, 2024
feat(blind_spot): consider road_shoulder if exist (#1411)
PR7925相当の変更 Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp> Co-authored-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent cf4a195 commit cd1e5db

File tree

1 file changed

+7
-0
lines changed
  • planning/behavior_velocity_blind_spot_module/src

1 file changed

+7
-0
lines changed
 

‎planning/behavior_velocity_blind_spot_module/src/scene.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,13 @@ std::optional<BlindSpotPolygons> BlindSpotModule::generateBlindSpotPolygons(
550550
if (adj_lane) {
551551
return *adj_lane;
552552
}
553+
const auto assoc_shoulder =
554+
(turn_direction_ == TurnDirection::LEFT)
555+
? planner_data_->route_handler_->getLeftLanelet(lane, true /* get_shoulder_lane */)
556+
: planner_data_->route_handler_->getRightLanelet(lane, true);
557+
if (assoc_shoulder) {
558+
return assoc_shoulder.value();
559+
}
553560

554561
return std::nullopt;
555562
});

0 commit comments

Comments
 (0)