#include <spiral_iterator.hpp>
Iterator class to iterate through a circular area of the map with a spiral.
Definition at line 20 of file spiral_iterator.hpp.
cost_map::SpiralIterator::SpiralIterator |
( |
const cost_map::CostMap & |
gridMap, |
|
|
const Eigen::Vector2d & |
center, |
|
|
const double |
radius |
|
) |
| |
Constructor.
- Parameters
-
gridMap | the grid map to iterate on. |
center | the position of the circle center. |
radius | the radius of the circle. |
Definition at line 17 of file spiral_iterator.cpp.
void cost_map::SpiralIterator::generateRing |
( |
| ) |
|
|
private |
Uses the current distance to get the points of a ring around the center.
Definition at line 80 of file spiral_iterator.cpp.
double cost_map::SpiralIterator::getCurrentRadius |
( |
| ) |
const |
Gets the radius of current ring that is iterated through.
- Returns
- radius of the current ring that is used for iteration.
Definition at line 112 of file spiral_iterator.cpp.
bool cost_map::SpiralIterator::isInside |
( |
const Index |
index | ) |
const |
|
private |
Check if index is inside the circle.
- Returns
- true if inside, false otherwise.
Definition at line 72 of file spiral_iterator.cpp.
bool cost_map::SpiralIterator::isPastEnd |
( |
| ) |
const |
Indicates if iterator is past end.
- Returns
- true if iterator is out of scope, false if end has not been reached.
Definition at line 67 of file spiral_iterator.cpp.
bool cost_map::SpiralIterator::operator!= |
( |
const SpiralIterator & |
other | ) |
const |
Compare to another iterator.
- Returns
- whether the current iterator points to a different address than the other one.
Definition at line 50 of file spiral_iterator.cpp.
const Eigen::Array2i & cost_map::SpiralIterator::operator* |
( |
| ) |
const |
Dereference the iterator with const.
- Returns
- the value to which the iterator is pointing.
Definition at line 55 of file spiral_iterator.cpp.
Increase the iterator to the next element.
- Returns
- a reference to the updated iterator.
Definition at line 60 of file spiral_iterator.cpp.
Assignment operator.
- Parameters
-
iterator | the iterator to copy data from. |
- Returns
- a reference to *this.
Definition at line 34 of file spiral_iterator.cpp.
int cost_map::SpiralIterator::signum |
( |
const int |
val | ) |
|
|
inlineprivate |
Size cost_map::SpiralIterator::bufferSize_ |
|
private |
Position cost_map::SpiralIterator::center_ |
|
private |
unsigned int cost_map::SpiralIterator::distance_ |
|
private |
Index cost_map::SpiralIterator::indexCenter_ |
|
private |
Length cost_map::SpiralIterator::mapLength_ |
|
private |
Position cost_map::SpiralIterator::mapPosition_ |
|
private |
unsigned int cost_map::SpiralIterator::nRings_ |
|
private |
std::vector<Index> cost_map::SpiralIterator::pointsRing_ |
|
private |
double cost_map::SpiralIterator::radius_ |
|
private |
double cost_map::SpiralIterator::radiusSquare_ |
|
private |
double cost_map::SpiralIterator::resolution_ |
|
private |
The documentation for this class was generated from the following files: