| 219 | } |
| 220 | |
| 221 | float GridMap::at(const std::string& layer, const Index& index) const { |
| 222 | try { |
| 223 | return data_.at(layer)(index(0), index(1)); |
| 224 | } catch (const std::out_of_range& exception) { |
| 225 | throw std::out_of_range("GridMap::at(...) : No map layer '" + layer + "' available."); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | bool GridMap::getIndex(const Position& position, Index& index) const { |
| 230 | return getIndexFromPosition(index, position, length_, position_, resolution_, size_, startIndex_); |
no outgoing calls