AURobotServers
4
|
#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 | |
UAvoidVertexCost * | costs |
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... | |
Class to hold positions experienced to result in bad or impossible manoeuvres.
|
inline |
make default number of entries
|
inline |
destructor
|
inline |
get cost of this position
position | to test |
isLeft | is the side to pass point. |
References UAvoidVertexCost::avoidLeft, UAvoidVertexCost::cost, U2Dpos::dist(), and UAvoidVertexCost::pos.
Referenced by UAvoidCellGraph::findCellPath().
|
inline |
References UAvoidVertexCost::avoidLeft, bool2str(), UAvoidVertexCost::cost, UAvoidVertexCost::pos, and U2Dpos::x.
|
inline |
resize array to this number of entries
|
inline |
set cost of this position
position | to test |
isLeft | is the side to pass point. |
extraCost | is 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().
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