8 #include "../iterators/submap_iterator.hpp" 9 #include "../cost_map.hpp" bool operator!=(const LineIterator &other) const
Length mapLength_
Map information needed to get position from iterator.
LineIterator & operator=(const LineIterator &other)
LineIterator & operator++()
Index start_
Starting index of the line.
Index index_
Current index.
bool initialize(const cost_map::CostMap &cost_map, const Index &start, const Index &end)
Index end_
Ending index of the line.
Size increment1_
Helper variables for Bresenham Line Drawing algorithm.
LineIterator(const cost_map::CostMap &gridMap, const Position &start, const Position &end)
bool getIndexLimitedToMapRange(const cost_map::CostMap &cost_map, const Position &start, const Position &end, Index &index)
grid_map::Position Position
unsigned int nCells_
Number of cells in the line.
const Index & operator*() const
unsigned int iCell_
Current cell number.
void initializeIterationParameters()