Public Member Functions | Private Attributes
cost_map::SubmapGeometry Class Reference

#include <submap_geometry.hpp>

List of all members.

Public Member Functions

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

Private Attributes

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

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 18 of file submap_geometry.hpp.


Constructor & Destructor Documentation

cost_map::SubmapGeometry::SubmapGeometry ( const CostMap 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 12 of file submap_geometry.cpp.

Definition at line 22 of file submap_geometry.cpp.


Member Function Documentation

Definition at line 26 of file submap_geometry.cpp.

Definition at line 31 of file submap_geometry.cpp.

Definition at line 36 of file submap_geometry.cpp.

Definition at line 41 of file submap_geometry.cpp.

Definition at line 51 of file submap_geometry.cpp.

Definition at line 46 of file submap_geometry.cpp.

Definition at line 56 of file submap_geometry.cpp.


Member Data Documentation

Parent grid map of the submap.

Definition at line 47 of file submap_geometry.hpp.

Length of the submap.

Definition at line 59 of file submap_geometry.hpp.

Position (center) of the submap.

Definition at line 56 of file submap_geometry.hpp.

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

Definition at line 63 of file submap_geometry.hpp.

Size of the submap.

Definition at line 53 of file submap_geometry.hpp.

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

Definition at line 50 of file submap_geometry.hpp.


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


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