Skip to content

Commit

Permalink
changed loop to use iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
siferati committed Apr 14, 2021
1 parent 019f1a7 commit cd9c081
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spatio_temporal_voxel_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,10 @@ void SpatioTemporalVoxelLayer::UpdateROSCostmap( \
}
}

for (const auto& cell: cleared_cells)
std::unordered_set<volume_grid::occupany_cell>::iterator cell;
for (cell = cleared_cells.begin(); cell != cleared_cells.end(); ++cell)
{
touch(cell.x, cell.y, min_x, min_y, max_x, max_y);
touch(cell->x, cell->y, min_x, min_y, max_x, max_y);
}
}

Expand Down

0 comments on commit cd9c081

Please sign in to comment.