Skip to content

Commit

Permalink
feat(blind_spot): consider road_shoulder if exist (#1411)
Browse files Browse the repository at this point in the history
PR7925相当の変更

Signed-off-by: Mamoru Sobue <[email protected]>
Co-authored-by: Mamoru Sobue <[email protected]>
  • Loading branch information
0x126 and soblin authored Jul 12, 2024
1 parent cf4a195 commit cd1e5db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions planning/behavior_velocity_blind_spot_module/src/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,13 @@ std::optional<BlindSpotPolygons> 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;
});
Expand Down

0 comments on commit cd1e5db

Please sign in to comment.