Public Member Functions | Private Attributes | List of all members
grid_map::SubmapGeometry Class Reference

#include <SubmapGeometry.hpp>

Public Member Functions

const GridMapgetGridMap () const
 
const LengthgetLength () const
 
const PositiongetPosition () const
 
const IndexgetRequestedIndexInSubmap () const
 
double getResolution () const
 
const SizegetSize () const
 
const IndexgetStartIndex () const
 
 SubmapGeometry (const GridMap &gridMap, const Position &position, const Length &length, bool &isSuccess)
 
virtual ~SubmapGeometry ()
 

Private Attributes

const GridMapgridMap_
 Parent grid map of the submap. More...
 
Length length_
 Length of the submap. More...
 
Position position_
 Position (center) of the submap. More...
 
Index requestedIndexInSubmap_
 
Size size_
 Size of the submap. More...
 
Index startIndex_
 Start index (typically top left) index of the submap. More...
 

Detailed Description

This class holds information about the geometry of submap region of a grid map. Note that, this class does NOT hold the any data of the grid map.

Definition at line 22 of file SubmapGeometry.hpp.

Constructor & Destructor Documentation

grid_map::SubmapGeometry::SubmapGeometry ( const GridMap gridMap,
const Position position,
const Length length,
bool &  isSuccess 
)

Constructor. Note that the requested position and length of the submap is adapted to fit the geometry of the parent grid map.

Parameters
[in]gridMapthe parent grid map containing the submap.
[in]positionthe requested submap position (center).
[in]lengththe requested submap length.
[out]isSuccesstrue if successful, false otherwise.

Definition at line 14 of file SubmapGeometry.cpp.

grid_map::SubmapGeometry::~SubmapGeometry ( )
virtual

Definition at line 24 of file SubmapGeometry.cpp.

Member Function Documentation

const GridMap & grid_map::SubmapGeometry::getGridMap ( ) const

Definition at line 28 of file SubmapGeometry.cpp.

const Length & grid_map::SubmapGeometry::getLength ( ) const

Definition at line 33 of file SubmapGeometry.cpp.

const Position & grid_map::SubmapGeometry::getPosition ( ) const

Definition at line 38 of file SubmapGeometry.cpp.

const Index & grid_map::SubmapGeometry::getRequestedIndexInSubmap ( ) const

Definition at line 43 of file SubmapGeometry.cpp.

double grid_map::SubmapGeometry::getResolution ( ) const

Definition at line 53 of file SubmapGeometry.cpp.

const Size & grid_map::SubmapGeometry::getSize ( ) const

Definition at line 48 of file SubmapGeometry.cpp.

const Index & grid_map::SubmapGeometry::getStartIndex ( ) const

Definition at line 58 of file SubmapGeometry.cpp.

Member Data Documentation

const GridMap& grid_map::SubmapGeometry::gridMap_
private

Parent grid map of the submap.

Definition at line 51 of file SubmapGeometry.hpp.

Length grid_map::SubmapGeometry::length_
private

Length of the submap.

Definition at line 63 of file SubmapGeometry.hpp.

Position grid_map::SubmapGeometry::position_
private

Position (center) of the submap.

Definition at line 60 of file SubmapGeometry.hpp.

Index grid_map::SubmapGeometry::requestedIndexInSubmap_
private

Index in the submap that corresponds to the requested position of the submap.

Definition at line 67 of file SubmapGeometry.hpp.

Size grid_map::SubmapGeometry::size_
private

Size of the submap.

Definition at line 57 of file SubmapGeometry.hpp.

Index grid_map::SubmapGeometry::startIndex_
private

Start index (typically top left) index of the submap.

Definition at line 54 of file SubmapGeometry.hpp.


The documentation for this class was generated from the following files:


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