BufferRegion.hpp
Go to the documentation of this file.
1 /*
2  * BufferRegion.hpp
3  *
4  * Created on: Aug 19, 2015
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
12 
13 namespace grid_map {
14 
20 {
21  public:
22 
26  enum class Quadrant
27  {
28  Undefined,
29  TopLeft,
30  TopRight,
31  BottomLeft,
33  };
34 
35  constexpr static unsigned int nQuadrants = 4;
36 
37  BufferRegion();
38  BufferRegion(const Index& startIndex, const Size& size, const BufferRegion::Quadrant& quadrant);
39  virtual ~BufferRegion();
40 
41  const Index& getStartIndex() const;
42  void setStartIndex(const Index& startIndex);
43  const Size& getSize() const;
44  void setSize(const Size& size);
47 
48  private:
49 
52 
55 
58 
59  public:
60  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
61 };
62 
63 } /* namespace grid_map */
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
const Index & getStartIndex() const
Index staretIndex_
Start index (typically top-left) of the buffer region.
static constexpr unsigned int nQuadrants
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
BufferRegion::Quadrant getQuadrant() const
void setQuadrant(BufferRegion::Quadrant type)
const Size & getSize() const
Quadrant quadrant_
Quadrant type of the buffer region.
void setSize(const Size &size)
Size size_
Size of the buffer region.
void setStartIndex(const Index &startIndex)


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Tue Jun 1 2021 02:13:27