AURobotServers
4
|
#include <ureslaserifroad.h>
Public Member Functions | |
void | clear () |
virtual const char * | getDataType () |
void | update (const int type, const unsigned long serial, const double lineQ, ULineSegment *seg, unsigned long scan) |
URoadLineData () | |
Public Member Functions inherited from UDataBase | |
bool | isA (const char *typeString) |
virtual bool | isAlsoA (const char *typeString) |
virtual void | snprint (const char *preString, char *buff, const int buffCnt) |
UDataBase () | |
virtual | ~UDataBase () |
Public Attributes | |
int | edge |
UPolygon400 | edgeLine |
ULineSegment | line |
double | lineQuality |
unsigned long | lineSerial |
unsigned long | scanSerial |
int | updateCnt |
Relevant data for a road edge line
URoadLineData::URoadLineData | ( | ) |
void URoadLineData::clear | ( | void | ) |
Clear line as new
References UPolygon::clear(), edge, edgeLine, lineSerial, scanSerial, and updateCnt.
Referenced by getDataType(), UResLaserIfRoad::updateLine(), and URoadLineData().
|
inlinevirtual |
void URoadLineData::update | ( | const int | type, |
const unsigned long | serial, | ||
const double | lineQ, | ||
ULineSegment * | seg, | ||
unsigned long | scan | ||
) |
Update line with these data
References UPolygon::add(), UPosition::dist(), edge, edgeLine, UPolygon::getLastPoint(), UPolygon::getPointsCnt(), UPolygon::getPointsMax(), line, lineQuality, lineSerial, ULine::pos, UPolygon::remove(), scan, scanSerial, UPolygon::setAsPolyline(), ULock::tryLock(), ULock::unlock(), and updateCnt.
Referenced by getDataType().
int URoadLineData::edge |
Edge 0=left 1=center 2=right
Referenced by clear(), UNavPaint::paintRoadLine(), and update().
UPolygon400 URoadLineData::edgeLine |
History positions for this line
Referenced by clear(), UResLaserIfRoad::methodCall(), UNavPaint::paintRoadLine(), and update().
ULineSegment URoadLineData::line |
Estimated road line
Referenced by UResLaserIfRoad::methodCall(), UNavPaint::paintRoadLine(), and update().
double URoadLineData::lineQuality |
newest Line quality
Referenced by UResLaserIfRoad::methodCall(), and update().
unsigned long URoadLineData::lineSerial |
Unique serial number for road - for correlation at client end
Referenced by clear(), UResLaserIfRoad::clear(), UResLaserIfRoad::handleRoad(), and update().
unsigned long URoadLineData::scanSerial |
Is line valie Updated by scan number
Referenced by clear(), UResLaserIfRoad::handleRoad(), UResLaserIfRoad::newDataAvailable(), update(), UResLaserIfRoad::updateLine(), and UResLaserIfRoad::UResLaserIfRoadInit().
int URoadLineData::updateCnt |