Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Attributes
jafar::lgl::CostManager Class Reference

Cost manager take care of the cost computing between two given ADJACENT positions in a graph and conversion between the cost and the time taken by the robot to travel this edge. More...


Detailed Description

Cost manager take care of the cost computing between two given ADJACENT positions in a graph and conversion between the cost and the time taken by the robot to travel this edge.

Definition at line 32 of file CostManager.hpp.

#include <CostManager.hpp>

List of all members.

Public Types

enum  DIST_TYPE { EUCLIDEAN = 0, MANHATTAN }
 Different distance types.

Public Member Functions

 CostManager (GeoData *_geodata, Quadtree< double, GeoData > *_quadtree, PositionManager *_posManager, DIST_TYPE _distType=EUCLIDEAN)
void setDistType (DIST_TYPE _distType)
 Set the way distances will be calculated.
void setObstacleLimit (double pol)
 Set the obstacle probability limit.
bool weight (RasterCellIndex locClusterRootIndex, const NavLocation &loc1, const NavLocation &loc2, double &weight)
 New navigation cost function.
bool weight (const NavLocation &loc1, const NavLocation &loc2, double &weight)
 Effective Weighting function.
bool weight (const NavLocation &loc1, const NavLocation &loc2, double costAtLoc2, double &weight)
 Weighting function adding the effect of the resulting position.

Protected Attributes

GeoDatageodata
 GeoData with GDAL dataset.
PositionManagerposManager
 Position manager holding navigation location.
Quadtree< double, GeoData > * quadtree
 Quadtree holding the world decomposition structure.
DIST_TYPE distType
 Used distance for weight calculation.
double obstacleLimit
 Obstacle probability limit.

Member Function Documentation

Set the way distances will be calculated.

Parameters:
_distTypeNew distance type to use.

Set the obstacle probability limit.

Above this limit and from it, weights will be considered as maximum (infinity)

Parameters:
polobstacle probability limit
bool jafar::lgl::CostManager::weight ( RasterCellIndex  locClusterRootIndex,
const NavLocation loc1,
const NavLocation loc2,
double &  weight 
)

New navigation cost function.

Parameters:
locClusterRootIndexlocalisation of the edge cluster to be able to get attributes from it (thanks to the positionManager)

Member Data Documentation

Used distance for weight calculation.

See also:
enum DIST_TYPE

Definition at line 85 of file CostManager.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:41 for Jafar by doxygen 1.7.6.1
LAAS-CNRS