| 167 | } |
| 168 | |
| 169 | void 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 | |
| 180 | grid_map::GridMap createMap(const grid_map::Length &length, double resolution, |
| 181 | const grid_map::Position &pos) |
no test coverage detected