Skip to content

Commit

Permalink
feat(intersection): not detect stuck vehicle when turning left (#5268)
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Oct 11, 2023
1 parent dc8cc07 commit 84995ec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,11 @@ IntersectionModule::DecisionResult IntersectionModule::modifyPathVelocityDetail(
bool IntersectionModule::checkStuckVehicle(
const std::shared_ptr<const PlannerData> & planner_data, const util::PathLanelets & path_lanelets)
{
// NOTE: No need to stop for stuck vehicle when the ego will turn left.
if (turn_direction_ == std::string("left")) {
return false;
}

const auto & objects_ptr = planner_data->predicted_objects;

// considering lane change in the intersection, these lanelets are generated from the path
Expand Down

0 comments on commit 84995ec

Please sign in to comment.