submap_geometry.cpp
Go to the documentation of this file.
00001 
00005 #include <grid_map_core/GridMapMath.hpp>
00006 #include "../../include/cost_map_core/submap_geometry.hpp"
00007 #include "../../include/cost_map_core/cost_map.hpp"
00008 
00009 
00010 namespace cost_map {
00011 
00012 SubmapGeometry::SubmapGeometry(const CostMap& gridMap, const Position& position,
00013                                      const Length& length, bool& isSuccess)
00014     : gridMap_(gridMap)
00015 {
00016   isSuccess = grid_map::getSubmapInformation(startIndex_, size_, position_, length_,
00017                                    requestedIndexInSubmap_, position, length, gridMap_.getLength(),
00018                                    gridMap_.getPosition(), gridMap_.getResolution(),
00019                                    gridMap_.getSize(), gridMap_.getStartIndex());
00020 }
00021 
00022 SubmapGeometry::~SubmapGeometry()
00023 {
00024 }
00025 
00026 const CostMap& SubmapGeometry::getGridMap() const
00027 {
00028   return gridMap_;
00029 }
00030 
00031 const Length& SubmapGeometry::getLength() const
00032 {
00033   return length_;
00034 }
00035 
00036 const Position& SubmapGeometry::getPosition() const
00037 {
00038   return position_;
00039 }
00040 
00041 const Index& SubmapGeometry::getRequestedIndexInSubmap() const
00042 {
00043   return requestedIndexInSubmap_;
00044 }
00045 
00046 const Size& SubmapGeometry::getSize() const
00047 {
00048   return size_;
00049 }
00050 
00051 double SubmapGeometry::getResolution() const
00052 {
00053   return gridMap_.getResolution();
00054 }
00055 
00056 const Index& SubmapGeometry::getStartIndex() const
00057 {
00058   return startIndex_;
00059 }
00060 
00061 } /* namespace cost_map */


cost_map_core
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 20:27:46