Skip to content

Commit 61972c8

Browse files
Merge branch 'fix/visibility_cleanup' into 'master'
[elevation_mapping] Fix ray-tracing in elevation map on the edge of sensor window Closes #UNKNOWN GitOrigin-RevId: 6919a0b4e384d4b90f0fbf65e537869b8d2083f7
1 parent b5d2b93 commit 61972c8

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

grid_map_core/src/GridMap.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -751,23 +751,13 @@ void GridMap::clearAll() {
751751
}
752752

753753
void GridMap::clearRows(unsigned int index, unsigned int nRows) {
754-
std::vector<std::string> layersToClear;
755-
if (basicLayers_.size() > 0)
756-
layersToClear = basicLayers_;
757-
else
758-
layersToClear = layers_;
759-
for (auto& layer : layersToClear) {
754+
for (auto& layer : layers_) {
760755
data_.at(layer).block(index, 0, nRows, getSize()(1)).setConstant(NAN);
761756
}
762757
}
763758

764759
void GridMap::clearCols(unsigned int index, unsigned int nCols) {
765-
std::vector<std::string> layersToClear;
766-
if (basicLayers_.size() > 0)
767-
layersToClear = basicLayers_;
768-
else
769-
layersToClear = layers_;
770-
for (auto& layer : layersToClear) {
760+
for (auto& layer : layers_) {
771761
data_.at(layer).block(0, index, getSize()(0), nCols).setConstant(NAN);
772762
}
773763
}

0 commit comments

Comments
 (0)