35 #ifndef NAV_GRID_ITERATORS_POLYGON_FILL_H 36 #define NAV_GRID_ITERATORS_POLYGON_FILL_H 40 #include <nav_2d_msgs/Polygon2D.h> 91 unsigned int min_x,
unsigned int min_y,
unsigned int width,
unsigned int height,
99 bool isInside(
unsigned int x,
unsigned int y)
const;
108 #endif // NAV_GRID_ITERATORS_POLYGON_FILL_H PolygonFill(const nav_grid::NavGridInfo *info, nav_2d_msgs::Polygon2D polygon)
Public Constructor.
nav_2d_msgs::Polygon2D polygon_
TFSIMD_FORCE_INLINE const tfScalar & y() const
void increment() override
Increase the iterator to the next element.
TFSIMD_FORCE_INLINE const tfScalar & x() const
nav_grid::Index start_index_
PolygonFill end() const override
Helper function for range-style iteration.
bool fieldsEqual(const PolygonFill &other) override
Additional check for whether fields of derived iterators are equal.
Iterates over all of the valid indexes that lie within an arbitrary polygon in row major order...
PolygonFill begin() const override
Helper function for range-style iteration Equivalent to the above constructor.
bool isInside(unsigned int x, unsigned int y) const
Check if given index is inside the polygon.
PolygonFill & operator=(const PolygonFill &other)
Assignment Operator Required to ensure unique_ptr is set properly.
std::unique_ptr< SubGrid > internal_iterator_