AURobotServers
4
|
Public Member Functions | |
void | extent4thPnt (U2Dpos pos) |
UAvoidObst * | getOther (UAvoidObst *notThis) |
int | getPktType () |
int | getPktType1 () |
int | getPktType2 () |
UAvoidObst * | getUpper () |
void | set (UAvoidObst *ob1, UAvoidObst *ob2, int idx, UPosition pkt, int vType) |
void | set (UAvoidObst *ob1, UAvoidObst *ob2, int idx, UPosition pkt) |
Public Attributes | |
UAvoidObst * | obst |
obstacle More... | |
UAvoidObst * | obst2 |
other obstacle if this is an intersection More... | |
int | oIdx |
index into obstacle (negative if an intersection) More... | |
U2Dpos | pos |
point position for the cell generation More... | |
int | type |
Copyright (C) 2010 by DTU (Christian Andersen) jca@e lekt ro.dt u.dk
|
inline |
Extend one of the obstacles with a third point with another x-value, to avoid x-clashes.
References UPolygon::add(), UPolygon::copyTo(), U2Dpos::dist(), UPolygon::extractConvexTo(), UPolygon::getPoint(), UPolygon::getPoints(), UPolygon::getPointsCnt(), UObstacle::getSerial(), UAvoidObst::obst, U2Dpos::x, UPosition::x, and U2Dpos::y.
Referenced by UAvoidCellGraph::fillVerticeList().
|
inline |
Get upper obstacle to the right of junction Get upper obstacle to the right of junction
Referenced by UAvoidCellGraph::makeCells().
|
inline |
Get point type -1 : undetermined, but one of 4..7 0 : left extreme (minimum x) 1 : right extreme (max x) 2 : upper point 3 : lower point. 4 : intersection close 5 : intersection open 6 : intersection upper 7 : intersection lower
References getPktType1(), and getPktType2().
Referenced by UAvoidCellGraph::makeCells(), and UAvoidCellGraph::printVetrexList().
|
inline |
Get type if obstacle vertex.
References UPolygon::getPoint(), UPolygon::getPointsCnt(), UAvoidObst::obst, type, U2Dpos::x, and UPosition::x.
Referenced by getPktType(), and set().
|
inline |
get type, if point is an intersection
References UPolygon::getDistance(), UPolygon::getSegment(), UAvoidObst::obst, pos, type, ULine::vec, U2Dpos::x, UPosition::x, U2Dpos::y, and UPosition::y.
Referenced by getPktType().
|
inline |
Get upper obstacle to the right of an opening junction, with increasing x
References UPolygon::getDistance(), UPolygon::getSegment(), obst, UAvoidObst::obst, obst2, ULine::vec, U2Dpos::x, UPosition::x, and U2Dpos::y.
Referenced by UAvoidCellGraph::makeCells().
|
inline |
Set all values in vertex point
Referenced by UAvoidCellGraph::fillVerticeList().
|
inline |
Set all values in vertex point
References getPktType1().
UAvoidObst* UAvoidVertexIdx::obst |
UAvoidObst* UAvoidVertexIdx::obst2 |
other obstacle if this is an intersection
Referenced by UAvoidCellGraph::fillVerticeList(), getOther(), getUpper(), UAvoidCellGraph::makeCells(), and UAvoidCellGraph::printVetrexList().
int UAvoidVertexIdx::oIdx |
index into obstacle (negative if an intersection)
Referenced by UAvoidCellGraph::fillVerticeList(), and UAvoidCellGraph::printVetrexList().
U2Dpos UAvoidVertexIdx::pos |
point position for the cell generation
no-visibility line index (as registred in obst) when >= 0 then obst is the source object and obst2 is the obst with the cross-point
Referenced by UAvoidCellGraph::fillVerticeList(), UAvoidCellGraph::findBestCellPath(), getPktType2(), UAvoidCellGraph::makeCells(), UAvoidCellGraph::printObstacleList(), and UAvoidCellGraph::printVetrexList().
int UAvoidVertexIdx::type |
vertex type 0 : left extreme (minimum x) 1 : right extreme (max x) 2 : upper point 3 : lower point. 4 : intersection close 5 : intersection open 6 : intersection upper 7 : intersection lower 8 : error
Referenced by UAvoidCellGraph::fillVerticeList(), getPktType1(), getPktType2(), UAvoidCellGraph::makeCells(), and UAvoidCellGraph::printVetrexList().