We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83d3bfe commit d215049Copy full SHA for d215049
grid_map_core/src/iterators/SpiralIterator.cpp
@@ -66,6 +66,9 @@ const Eigen::Array2i & SpiralIterator::operator*() const
66
67
SpiralIterator & SpiralIterator::operator++()
68
{
69
+ if (isPastEnd()) {
70
+ return *this;
71
+ }
72
pointsRing_.pop_back();
73
if (pointsRing_.empty() && !isPastEnd()) {generateRing();}
74
return *this;
0 commit comments