| 27 | namespace grid_map { |
| 28 | |
| 29 | GridMap::GridMap(const std::vector<std::string>& layers) { |
| 30 | position_.setZero(); |
| 31 | length_.setZero(); |
| 32 | resolution_ = 0.0; |
| 33 | size_.setZero(); |
| 34 | startIndex_.setZero(); |
| 35 | timestamp_ = 0; |
| 36 | layers_ = layers; |
| 37 | |
| 38 | for (auto& layer : layers_) { |
| 39 | data_.insert(std::pair<std::string, Matrix>(layer, Matrix())); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | GridMap::GridMap() : GridMap(std::vector<std::string>()) {} |
| 44 |
nothing calls this directly
no outgoing calls
no test coverage detected