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

Method at

grid_map_core/src/GridMap.cpp:221–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221float 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
229bool GridMap::getIndex(const Position& position, Index& index) const {
230 return getIndexFromPosition(index, position, length_, position_, resolution_, size_, startIndex_);

Callers 15

updateMethod · 0.80
updateMethod · 0.80
mainFunction · 0.80
createGaussianWorldFunction · 0.80
interpolateInputMapFunction · 0.80
runDemoMethod · 0.80
printStatisticsMethod · 0.80

Calls

no outgoing calls

Tested by 9

getNonNanElevationValuesFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
createGaussianWorldFunction · 0.64