AURobotServers  4
Public Member Functions | Public Attributes | List of all members
UAvoidVertexCosts Class Reference

#include <uavoidcellgraph.h>

Public Member Functions

double getExtraCost (U2Dpos position, bool isLeft)
 
void list ()
 
void resize (int newCnt)
 resize array to this number of entries More...
 
void setExtraCost (UPosition position, bool isLeft, double extraCost)
 
 UAvoidVertexCosts ()
 make default number of entries More...
 
 ~UAvoidVertexCosts ()
 destructor More...
 

Public Attributes

UAvoidVertexCostcosts
 additional costs entries More...
 
int costsCnt
 number of used values More...
 
int costsCntMax
 max number of entries in array More...
 
double PosLimit
 position tolerance limit when comparing cost positions More...
 

Detailed Description

Class to hold positions experienced to result in bad or impossible manoeuvres.

Constructor & Destructor Documentation

UAvoidVertexCosts::UAvoidVertexCosts ( )
inline

make default number of entries

UAvoidVertexCosts::~UAvoidVertexCosts ( )
inline

destructor

Member Function Documentation

double UAvoidVertexCosts::getExtraCost ( U2Dpos  position,
bool  isLeft 
)
inline

get cost of this position

Parameters
positionto test
isLeftis the side to pass point.
Returns
additional cost value

References UAvoidVertexCost::avoidLeft, UAvoidVertexCost::cost, U2Dpos::dist(), and UAvoidVertexCost::pos.

Referenced by UAvoidCellGraph::findCellPath().

void UAvoidVertexCosts::list ( )
inline
void UAvoidVertexCosts::resize ( int  newCnt)
inline

resize array to this number of entries

void UAvoidVertexCosts::setExtraCost ( UPosition  position,
bool  isLeft,
double  extraCost 
)
inline

set cost of this position

Parameters
positionto test
isLeftis the side to pass point.
extraCostis the extra cost to put on this point.

References UAvoidVertexCost::avoidLeft, UAvoidVertexCost::cost, U2Dpos::dist(), UAvoidVertexCost::pos, and UAvoidVertexCost::print().

Referenced by UAvoidPath2::convertToManSeq(), and UAvoidCellGraph::findBestCellPath().

Member Data Documentation

UAvoidVertexCost* UAvoidVertexCosts::costs

additional costs entries

Referenced by UAvoidPath2::findObstAvoidRoute().

int UAvoidVertexCosts::costsCnt

number of used values

Referenced by UAvoidPath2::findObstAvoidRoute().

int UAvoidVertexCosts::costsCntMax

max number of entries in array

double UAvoidVertexCosts::PosLimit

position tolerance limit when comparing cost positions


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