submap_iterator.hpp
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include "../common.hpp"
8 #include "../cost_map.hpp"
9 #include "../submap_geometry.hpp"
10 
11 namespace cost_map {
12 
19 {
20 public:
21 
27 
32  SubmapIterator(const cost_map::CostMap& gridMap, const cost_map::BufferRegion& bufferRegion);
33 
40  SubmapIterator(const cost_map::CostMap& gridMap, const Index& submapStartIndex,
41  const Size& submapSize);
42 
47  SubmapIterator(const SubmapIterator* other);
48 
55 
60  bool operator !=(const SubmapIterator& other) const;
61 
66  const Index& operator *() const;
67 
72  const Index& getSubmapIndex() const;
73 
79 
84  bool isPastEnd() const;
85 
86 private:
87 
90 
93 
96 
99 
102 
105 
108 };
109 
110 } /* namespace */
SubmapIterator & operator=(const SubmapIterator &other)
bool operator!=(const SubmapIterator &other) const
Index submapIndex_
Current index in the submap.
Size submapSize_
Submap buffer size.
grid_map::Size Size
Definition: common.hpp:46
SubmapIterator(const cost_map::SubmapGeometry &submap)
bool isPastEnd_
Is iterator out of scope.
Index startIndex_
Start index of the circular buffer.
Index submapStartIndex_
Top left index of the submap.
Size size_
Size of the buffer.
grid_map::Index Index
Definition: common.hpp:45
Index index_
Current index.


cost_map_core
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:03:41