SubmapGeometry.cpp
Go to the documentation of this file.
1 /*
2  * SubmapGeometry.cpp
3  *
4  * Created on: Aug 18, 2015
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
11 
12 namespace grid_map {
13 
14 SubmapGeometry::SubmapGeometry(const GridMap& gridMap, const Position& position,
15  const Length& length, bool& isSuccess)
16  : gridMap_(gridMap)
17 {
19  requestedIndexInSubmap_, position, length, gridMap_.getLength(),
22 }
23 
25 {
26  return gridMap_;
27 }
28 
30 {
31  return length_;
32 }
33 
35 {
36  return position_;
37 }
38 
40 {
42 }
43 
45 {
46  return size_;
47 }
48 
50 {
51  return gridMap_.getResolution();
52 }
53 
55 {
56  return startIndex_;
57 }
58 
59 } /* namespace grid_map */
const Index & getStartIndex() const
Definition: GridMap.cpp:669
const Index & getRequestedIndexInSubmap() const
const Size & getSize() const
Definition: GridMap.cpp:661
Size size_
Size of the submap.
bool getSubmapInformation(Index &submapTopLeftIndex, Size &submapBufferSize, Position &submapPosition, Length &submapLength, Index &requestedIndexInSubmap, const Position &requestedSubmapPosition, const Length &requestedSubmapLength, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
const GridMap & gridMap_
Parent grid map of the submap.
double getResolution() const
Definition: GridMap.cpp:657
Length length_
Length of the submap.
Eigen::Vector2d Position
Definition: TypeDefs.hpp:18
const Size & getSize() const
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
double getResolution() const
const Position & getPosition() const
const Index & getStartIndex() const
Eigen::Array2d Length
Definition: TypeDefs.hpp:24
Index startIndex_
Start index (typically top left) index of the submap.
SubmapGeometry(const GridMap &gridMap, const Position &position, const Length &length, bool &isSuccess)
const GridMap & getGridMap() const
Position position_
Position (center) of the submap.
const Length & getLength() const
bool getPosition(const Index &index, Position &position) const
Definition: GridMap.cpp:232
const Length & getLength() const
Definition: GridMap.cpp:649


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:23:35