submap_geometry.cpp
Go to the documentation of this file.
1 
6 #include "../../include/cost_map_core/submap_geometry.hpp"
7 #include "../../include/cost_map_core/cost_map.hpp"
8 
9 
10 namespace cost_map {
11 
12 SubmapGeometry::SubmapGeometry(const CostMap& gridMap, const Position& position,
13  const Length& length, bool& isSuccess)
14  : gridMap_(gridMap)
15 {
17  requestedIndexInSubmap_, position, length, gridMap_.getLength(),
20 }
21 
23 {
24 }
25 
27 {
28  return gridMap_;
29 }
30 
32 {
33  return length_;
34 }
35 
37 {
38  return position_;
39 }
40 
42 {
44 }
45 
47 {
48  return size_;
49 }
50 
52 {
53  return gridMap_.getResolution();
54 }
55 
57 {
58  return startIndex_;
59 }
60 
61 } /* namespace cost_map */
Size size_
Size of the submap.
const Length & getLength() const
const Position & getPosition() const
double getResolution() const
const Index & getStartIndex() const
Index startIndex_
Start index (typically top left) index of the submap.
const Size & getSize() const
double getResolution() const
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())
Length length_
Length of the submap.
grid_map::Size Size
Definition: common.hpp:46
const Length & getLength() const
bool getPosition(const Index &index, Position &position) const
grid_map::Index Index
Definition: common.hpp:45
SubmapGeometry(const CostMap &gridMap, const Position &position, const Length &length, bool &isSuccess)
grid_map::Position Position
Definition: common.hpp:41
const CostMap & gridMap_
Parent grid map of the submap.
Position position_
Position (center) of the submap.
const Size & getSize() const
const Index & getRequestedIndexInSubmap() const
const CostMap & getGridMap() const
const Index & getStartIndex() const
grid_map::Length Length
Definition: common.hpp:47


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