| 78 | } |
| 79 | |
| 80 | bool 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 | |
| 89 | void GridMap::add(const std::string& layer, const double value) { |
| 90 | add(layer, Matrix::Constant(size_(0), size_(1), value)); |