costmap_iterator.hpp
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <Eigen/Core>
8 #include "../cost_map.hpp"
9 
10 namespace cost_map {
11 
16 {
17 public:
18 
23  CostMapIterator(const cost_map::CostMap &gridMap);
24 
29  CostMapIterator(const CostMapIterator* other);
30 
37 
42  bool operator !=(const CostMapIterator& other) const;
43 
48  const Index& operator *() const;
49 
54  const Index getUnwrappedIndex() const;
55 
61 
66  CostMapIterator end() const;
67 
72  bool isPastEnd() const;
73 
74 private:
75 
78 
81 
84 
87 
89  bool isPastEnd_;
90 };
91 
92 } /* namespace */
Size size_
Size of the buffer.
Index endIndex_
End index of the circular buffer.
grid_map::Size Size
Definition: common.hpp:46
CostMapIterator & operator=(const CostMapIterator &other)
Index startIndex_
Start index of the circular buffer.
CostMapIterator & operator++()
CostMapIterator(const cost_map::CostMap &gridMap)
grid_map::Index Index
Definition: common.hpp:45
CostMapIterator end() const
bool operator!=(const CostMapIterator &other) const
bool isPastEnd_
Is iterator out of scope.
Index index_
Current index.
const Index & operator*() const
const Index getUnwrappedIndex() const


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