| 97 | } |
| 98 | |
| 99 | bool SlidingWindowIterator::dataInsideMap() const |
| 100 | { |
| 101 | const Index centerIndex(*(*this)); |
| 102 | const Index windowMargin(Index::Constant(windowMargin_)); |
| 103 | const Index topLeftIndex(centerIndex - windowMargin); |
| 104 | const Index bottomRightIndex(centerIndex + windowMargin); |
| 105 | return checkIfIndexInRange(topLeftIndex, size_) && checkIfIndexInRange(bottomRightIndex, size_); |
| 106 | } |
| 107 | |
| 108 | } /* namespace grid_map */ |
nothing calls this directly
no test coverage detected