MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / hasSameLayers

Method hasSameLayers

grid_map_core/src/GridMap.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool GridMap::hasSameLayers(const GridMap& other) const {
81 for (const auto& layer : layers_) {
82 if (!other.exists(layer)) {
83 return false;
84 }
85 }
86 return true;
87}
88
89void GridMap::add(const std::string& layer, const double value) {
90 add(layer, Matrix::Constant(size_(0), size_(1), value));

Callers

nothing calls this directly

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected