| 263 | } |
| 264 | |
| 265 | bool 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 | |
| 277 | bool 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)}; |
no outgoing calls
no test coverage detected