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

Method getPosition3

grid_map_core/src/GridMap.cpp:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool GridMap::getPosition3(const std::string& layer, const Index& index, Position3& position) const {
266 const auto value = at(layer, index);
267 if (!isValid(value)) {
268 return false;
269 }
270 Position position2d;
271 getPosition(index, position2d);
272 position.head(2) = position2d;
273 position.z() = value;
274 return true;
275}
276
277bool GridMap::getVector(const std::string& layerPrefix, const Index& index, Eigen::Vector3d& vector) const {
278 Eigen::Vector3d temp{at(layerPrefix + "x", index), at(layerPrefix + "y", index), at(layerPrefix + "z", index)};

Callers 3

toPointCloudMethod · 0.80
visualizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected