AURobotServers
4
|
#include <usfpool.h>
Public Member Functions | |
bool | addSegment (ULineSegment *seg, int segInt, const char *idStr) |
add segment to segments in this scan More... | |
void | clear () |
const char * | getDataType () |
UTime | getScanTime () |
int * | getSegInt () |
ULineSegment * | getSegs () |
int | getSegsCnt () |
int | getSegsMax () |
int | getTypeMax () |
bool | isA (const char *key) |
bool | isValid () |
void | moveLocalToMap (UPose scanPose, UPosRot sensorPose) |
USFData () | |
~USFData () | |
Public Member Functions inherited from ULock | |
bool | lock () |
void | lockInit () |
void | post () |
bool | tryLock () |
bool | tryWait () |
ULock () | |
void | unlock () |
bool | wait () |
~ULock () | |
Public Attributes | |
bool | isNewest |
UPose | pose |
UTime | scanTime |
int | segInteger [MAX_SEGMENTS] |
ULineSegment | segs [MAX_SEGMENTS] |
int | segsCnt |
char | segStr [MAX_SEGMENTS][MAX_SEG_STR_LENGTH] |
char | type [MAX_TYPE_LENGTH] |
bool | valid |
Static Public Attributes | |
static const int | MAX_SEG_STR_LENGTH = 16 |
static const int | MAX_SEGMENTS = 40 |
static const int | MAX_TYPE_LENGTH = 5 |
USFData::USFData | ( | ) |
Constructor
References clear().
USFData::~USFData | ( | ) |
Destructor
bool USFData::addSegment | ( | ULineSegment * | seg, |
int | segInt, | ||
const char * | idStr | ||
) |
add segment to segments in this scan
segInt | is an integer that can be displayed along line. |
idStr | is a string that will be displayed along line on display |
References MAX_SEG_STR_LENGTH, MAX_SEGMENTS, segInteger, segs, segsCnt, and segStr.
Referenced by USFPool::addData(), UClientFuncSF::handlePass(), UClientFuncSF::handleRoad(), and UClientFuncSF::handleSF().
void USFData::clear | ( | void | ) |
Clear segments
References UTime::clear(), scanTime, segsCnt, and valid.
Referenced by USFPool::addData(), USFPool::clear(), getSegsCnt(), and USFData().
|
inline |
|
inline |
Get segment scan time
References moveLocalToMap(), and scanTime.
Referenced by UClientFuncLaserGui::saveImage().
|
inline |
Get line integer array
References segInteger.
Referenced by UClientFuncLaserGui::paintLineSegments().
|
inline |
|
inline |
Get segment count
References clear(), and segsCnt.
Referenced by UClientFuncLaserGui::paintLineSegments().
|
inline |
Get max number of segments allowed
References MAX_SEGMENTS.
|
inline |
Get max number of characters in type string
References MAX_TYPE_LENGTH.
Referenced by USFPool::addData().
|
inline |
Compare this type with a key string. Compare is case sensitive. Returns true if type match.
References type.
Referenced by USFPool::markAsNotNew().
|
inline |
Is scan data valid
References valid.
Move data to pose
References ULineSegment::getOtherEnd(), UPose::getPoseToMap(), UPosRot::getRtoMMatrix(), ULine::pos, pose, segs, segsCnt, and ULineSegment::setFromPoints().
Referenced by getScanTime(), UClientFuncSF::handlePass(), and UClientFuncSF::handleSF().
bool USFData::isNewest |
Is data the newest
Referenced by USFPool::addData(), USFPool::markAsNotNew(), and UClientFuncLaserGui::paintLineSegments().
|
static |
Max length of string value for a segment
Referenced by addSegment(), UClientFuncSF::handleRoad(), and UClientFuncSF::handleSF().
|
static |
Max number of segments
Referenced by addSegment(), and getSegsMax().
|
static |
Maximum string length of segment type
Referenced by getTypeMax(), UClientFuncSF::handlePass(), UClientFuncSF::handleRoad(), and UClientFuncSF::handleSF().
UPose USFData::pose |
Robot pose at scantime
Referenced by USFPool::addData(), UClientFuncSF::handlePass(), UClientFuncSF::handleSF(), moveLocalToMap(), and UClientFuncLaserGui::onEvent().
UTime USFData::scanTime |
Timestamp for scan
Referenced by USFPool::addData(), clear(), getScanTime(), UClientFuncSF::handlePass(), UClientFuncSF::handleRoad(), UClientFuncSF::handleSF(), and UClientFuncLaserGui::onEvent().
int USFData::segInteger[MAX_SEGMENTS] |
Data integer for general use, e.g. for road lines (left=0, center=1 roght=2)
Referenced by USFPool::addData(), addSegment(), and getSegInt().
ULineSegment USFData::segs[MAX_SEGMENTS] |
Segments
Referenced by USFPool::addData(), addSegment(), getSegs(), and moveLocalToMap().
int USFData::segsCnt |
Number of segments in array
Referenced by USFPool::addData(), addSegment(), clear(), getSegsCnt(), and moveLocalToMap().
char USFData::segStr[MAX_SEGMENTS][MAX_SEG_STR_LENGTH] |
Data string for general use, e.g. name of segment
Referenced by USFPool::addData(), addSegment(), and UClientFuncLaserGui::paintLineSegments().
char USFData::type[MAX_TYPE_LENGTH] |
Segment type (c-string) typically holding the XML tag name
Referenced by USFPool::addData(), getDataType(), UClientFuncSF::handlePass(), UClientFuncSF::handleRoad(), UClientFuncSF::handleSF(), and isA().
bool USFData::valid |
Is the dataset valid
Referenced by USFPool::addData(), clear(), and isValid().