BufferRegion.cpp
Go to the documentation of this file.
1 /*
2  * BufferRegion.cpp
3  *
4  * Created on: Aug 19, 2015
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
9 
10 namespace grid_map {
11 
13  staretIndex_(Index::Zero()),
14  size_(Size::Zero()),
15  quadrant_(BufferRegion::Quadrant::Undefined)
16 {
17 }
18 
19 BufferRegion::BufferRegion(const Index& index, const Size& size, const BufferRegion::Quadrant& quadrant) :
20  staretIndex_(index),
21  size_(size),
22  quadrant_(quadrant)
23 {
24 }
25 
27 {
28 }
29 
31 {
32  return staretIndex_;
33 }
34 
35 void BufferRegion::setStartIndex(const Index& staretIndex)
36 {
37  staretIndex_ = staretIndex;
38 }
39 
41 {
42  return size_;
43 }
44 
45 void BufferRegion::setSize(const Size& size)
46 {
47  size_ = size;
48 }
49 
51 {
52  return quadrant_;
53 }
54 
56 {
57  quadrant_ = type;
58 }
59 
60 } /* namespace grid_map */
61 
62 
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
const Index & getStartIndex() const
Index staretIndex_
Start index (typically top-left) of the buffer region.
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