Skip to content

Commit

Permalink
fix: indices max
Browse files Browse the repository at this point in the history
Signed-off-by: badai-nguyen <[email protected]>
  • Loading branch information
badai-nguyen committed May 9, 2024
1 parent 5cf469e commit 8b5419e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ void RayGroundFilterComponent::ExtractPointsIndices(
size_t no_ground_count = 0;
std::vector<bool> is_ground_idx(in_cloud_ptr->width, false);
for (const auto & idx : in_indices.indices) {
if(std::size_t(idx) >= is_ground_idx.size())
{
continue;
}
is_ground_idx[idx] = true;
}
for (size_t i = 0; i < is_ground_idx.size(); ++i) {
Expand Down

0 comments on commit 8b5419e

Please sign in to comment.