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

Function fillGridMap

grid_map_demos/src/InterpolationDemo.cpp:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void fillGridMap(grid_map::GridMap *map, const AnalyticalFunctions &functions)
159{
160 grid_map::Matrix& data = (*map)[demoLayer];
161 for (grid_map::GridMapIterator iterator(*map); !iterator.isPastEnd(); ++iterator) {
162 const grid_map::Index index(*iterator);
163 grid_map::Position pos;
164 map->getPosition(index, pos);
165 data(index(0), index(1)) = functions.f_(pos.x(), pos.y());
166 }
167}
168
169grid_map::GridMap createMap(const grid_map::Length &length, double resolution,
170 const grid_map::Position &pos)

Callers 4

createPolyWorldFunction · 0.70
createSineWorldFunction · 0.70
createTanhWorldFunction · 0.70
createGaussianWorldFunction · 0.70

Calls 2

getPositionMethod · 0.80
isPastEndMethod · 0.45

Tested by

no test coverage detected