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

Function interpolateInputMap

grid_map_demos/src/InterpolationDemo.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void interpolateInputMap(const grid_map::GridMap &dataMap,
194 grid_map::InterpolationMethods interpolationMethod,
195 grid_map::GridMap *interpolatedMap)
196{
197 for (grid_map::GridMapIterator iterator(*interpolatedMap); !iterator.isPastEnd(); ++iterator) {
198 const grid_map::Index index(*iterator);
199 grid_map::Position pos;
200 interpolatedMap->getPosition(index, pos);
201 const double interpolatedHeight = dataMap.atPosition(demoLayer, pos, interpolationMethod);
202 interpolatedMap->at(demoLayer, index) = interpolatedHeight;
203 }
204}
205
206Error computeInterpolationError(const AnalyticalFunctions &groundTruth,
207 const grid_map::GridMap &map)

Callers 2

runDemoMethod · 0.85

Calls 4

getPositionMethod · 0.80
atPositionMethod · 0.80
atMethod · 0.80
isPastEndMethod · 0.45

Tested by

no test coverage detected