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

Method initialize

grid_map_core/src/iterators/LineIterator.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool LineIterator::initialize(const grid_map::GridMap& gridMap, const Index& start, const Index& end)
84{
85 start_ = start;
86 end_ = end;
87 mapLength_ = gridMap.getLength();
88 mapPosition_ = gridMap.getPosition();
89 resolution_ = gridMap.getResolution();
90 bufferSize_ = gridMap.getSize();
91 bufferStartIndex_ = gridMap.getStartIndex();
92 initializeIterationParameters();
93 return true;
94}
95
96bool LineIterator::getIndexLimitedToMapRange(const grid_map::GridMap& gridMap,
97 const Position& start, const Position& end,

Callers

nothing calls this directly

Calls 2

getPositionMethod · 0.80
getResolutionMethod · 0.45

Tested by

no test coverage detected