Skip to content

Commit

Permalink
Merge pull request #1800 from tier4/sync-awf-latest
Browse files Browse the repository at this point in the history
chore: sync awf-latest
  • Loading branch information
tier4-autoware-public-bot[bot] authored Feb 11, 2025
2 parents 19e0875 + d962acb commit 2bee1e0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -662,20 +662,15 @@ std::optional<size_t> getOverlappedLaneletId(const std::vector<DrivableLanes> &
return {};
}

size_t overlapped_idx = lanes.size();
for (size_t i = 0; i < lanes.size() - 2; ++i) {
for (size_t j = i + 2; j < lanes.size(); ++j) {
if (overlaps(lanes.at(i), lanes.at(j))) {
overlapped_idx = std::min(overlapped_idx, j);
return j;
}
}
}

if (overlapped_idx == lanes.size()) {
return {};
}

return overlapped_idx;
return {};
}

std::vector<DrivableLanes> cutOverlappedLanes(
Expand Down

0 comments on commit 2bee1e0

Please sign in to comment.