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

Method GridMap

grid_map_core/src/GridMap.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace grid_map {
28
29GridMap::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
43GridMap::GridMap() : GridMap(std::vector<std::string>()) {}
44

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected