24 Index submapStartIndex;
25 Size submapBufferSize;
50 return *(*internalIterator_);
55 ++(*internalIterator_);
82 topLeft = topLeft.array().max(vertex.array());
83 bottomRight = bottomRight.array().min(vertex.array());
const Length & getLength() const
grid_map::Polygon polygon_
Polygon to iterate on.
PolygonIterator & operator++()
const Index & getStartIndex() const
bool getPosition(const Index &index, Position &position) const
std::shared_ptr< SubmapIterator > internalIterator_
Grid submap iterator.
bool getIndexFromPosition(Index &index, const Position &position, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
double getResolution() const
PolygonIterator & operator=(const PolygonIterator &other)
Size getSubmapSizeFromCornerIndeces(const Index &topLeftIndex, const Index &bottomRightIndex, const Size &bufferSize, const Index &bufferStartIndex)
bool isInside(const Position &point) const
bool getPositionFromIndex(Position &position, const Index &index, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
const Index & operator*() const
Length mapLength_
Map information needed to get position from iterator.
void boundPositionToRange(Position &position, const Length &mapLength, const Position &mapPosition)
void findSubmapParameters(const grid_map::Polygon &polygon, Index &startIndex, Size &bufferSize) const
const std::vector< Position > & getVertices() const
bool operator!=(const PolygonIterator &other) const
const Size & getSize() const