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

Method getVector

grid_map_core/src/GridMap.cpp:277–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)};
279 if (!isValid(temp[0]) || !isValid(temp[1]) || !isValid(temp[2])) {
280 return false;
281 } else {
282 vector = temp;
283 return true;
284 }
285}
286
287GridMap GridMap::getSubmap(const Position& position, const Length& length, bool& isSuccess) const {
288 Index index;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected