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

Function fillGridMap

grid_map_core/test/test_helpers.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void fillGridMap(grid_map::GridMap *map, const AnalyticalFunctions &functions)
170{
171 grid_map::Matrix& data = (*map)[testLayer];
172 for (grid_map::GridMapIterator iterator(*map); !iterator.isPastEnd(); ++iterator) {
173 const grid_map::Index index(*iterator);
174 grid_map::Position pos;
175 map->getPosition(index, pos);
176 data(index(0), index(1)) = functions.f_(pos.x(), pos.y());
177 }
178}
179
180grid_map::GridMap createMap(const grid_map::Length &length, double resolution,
181 const grid_map::Position &pos)

Callers 7

createFlatWorldFunction · 0.70
createSaddleWorldFunction · 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