9 #include "../../../include/cost_map_core/iterators/submap_iterator.hpp" 17 :
SubmapIterator(submap.getGridMap(), submap.getStartIndex(), submap.getSize())
23 :
SubmapIterator(gridMap, bufferRegion.getStartIndex(), bufferRegion.getSize())
29 const Size& submapSize)
SubmapIterator & operator=(const SubmapIterator &other)
bool incrementIndexForSubmap(Index &submapIndex, Index &index, const Index &submapTopLeftIndex, const Size &submapBufferSize, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
bool operator!=(const SubmapIterator &other) const
const Size & getSize() const
Index submapIndex_
Current index in the submap.
Size submapSize_
Submap buffer size.
SubmapIterator & operator++()
SubmapIterator(const cost_map::SubmapGeometry &submap)
bool isPastEnd_
Is iterator out of scope.
Index startIndex_
Start index of the circular buffer.
Index submapStartIndex_
Top left index of the submap.
Size size_
Size of the buffer.
Index index_
Current index.
const Index & operator*() const
const Index & getStartIndex() const
const Index & getSubmapIndex() const