AURobotServers
4
|
#include <ureactivepath.h>
Public Member Functions | |
void | addLeftLine (ULineSegment *firstSeg, UPolygon *lineHist) |
void | addRightLine (ULineSegment *firstSeg, UPolygon *lineHist) |
void | clear () |
UReacRoadLines () | |
Public Attributes | |
UReacRoadLine | left [MAX_ROAD_SEGS] |
int | leftCnt |
UReacRoadLine | right [MAX_ROAD_SEGS] |
int | rightCnt |
Static Public Attributes | |
static const int | MAX_ROAD_SEGS = 3 |
Class with all relevant road lines
UReacRoadLines::UReacRoadLines | ( | ) |
Constructor
References clear().
void UReacRoadLines::addLeftLine | ( | ULineSegment * | firstSeg, |
UPolygon * | lineHist | ||
) |
Add left line
References left, leftCnt, MAX_ROAD_SEGS, and UReacRoadLine::setLine().
Referenced by UResAvoid::findPathToHere().
void UReacRoadLines::addRightLine | ( | ULineSegment * | firstSeg, |
UPolygon * | lineHist | ||
) |
Add left line
References MAX_ROAD_SEGS, right, rightCnt, and UReacRoadLine::setLine().
Referenced by UResAvoid::findPathToHere().
void UReacRoadLines::clear | ( | void | ) |
Clear the road lines
References leftCnt, and rightCnt.
Referenced by UReactivePath::copy(), UResAvoid::findPathToHere(), UObstInfo::UObstInfo(), UReacObstGrps::UReacObstGrps(), UReacRoadLines(), and UReactivePath::UReactivePath().
UReacRoadLine UReacRoadLines::left[MAX_ROAD_SEGS] |
Left roadside obstacle
Referenced by addLeftLine().
int UReacRoadLines::leftCnt |
Count of used left lines
Referenced by addLeftLine(), and clear().
|
static |
Number of available segments
Referenced by addLeftLine(), and addRightLine().
UReacRoadLine UReacRoadLines::right[MAX_ROAD_SEGS] |
Right roadside obstacle
Referenced by addRightLine().
int UReacRoadLines::rightCnt |
Count of used right lines
Referenced by addRightLine(), and clear().