AURobotServers  4
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
USFData Class Reference

#include <usfpool.h>

Inheritance diagram for USFData:
Inheritance graph

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 ()
 
ULineSegmentgetSegs ()
 
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
 

Constructor & Destructor Documentation

USFData::USFData ( )

Constructor

References clear().

USFData::~USFData ( )

Destructor

Member Function Documentation

bool USFData::addSegment ( ULineSegment seg,
int  segInt,
const char *  idStr 
)

add segment to segments in this scan

Parameters
segIntis an integer that can be displayed along line.
idStris 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().

const char* USFData::getDataType ( )
inline

Get line data type

References type.

Referenced by UClientFuncLaserGui::paintLineSegments().

UTime USFData::getScanTime ( )
inline

Get segment scan time

References moveLocalToMap(), and scanTime.

Referenced by UClientFuncLaserGui::saveImage().

int* USFData::getSegInt ( )
inline

Get line integer array

References segInteger.

Referenced by UClientFuncLaserGui::paintLineSegments().

ULineSegment* USFData::getSegs ( )
inline

Get line segment

References segs.

Referenced by UClientFuncLaserGui::paintLineSegments().

int USFData::getSegsCnt ( )
inline

Get segment count

References clear(), and segsCnt.

Referenced by UClientFuncLaserGui::paintLineSegments().

int USFData::getSegsMax ( )
inline

Get max number of segments allowed

References MAX_SEGMENTS.

int USFData::getTypeMax ( )
inline

Get max number of characters in type string

References MAX_TYPE_LENGTH.

Referenced by USFPool::addData().

bool USFData::isA ( const char *  key)
inline

Compare this type with a key string. Compare is case sensitive. Returns true if type match.

References type.

Referenced by USFPool::markAsNotNew().

bool USFData::isValid ( )
inline

Is scan data valid

References valid.

void USFData::moveLocalToMap ( UPose  scanPose,
UPosRot  sensorPose 
)

Member Data Documentation

bool USFData::isNewest
const int USFData::MAX_SEG_STR_LENGTH = 16
static

Max length of string value for a segment

Referenced by addSegment(), UClientFuncSF::handleRoad(), and UClientFuncSF::handleSF().

const int USFData::MAX_SEGMENTS = 40
static

Max number of segments

Referenced by addSegment(), and getSegsMax().

const int USFData::MAX_TYPE_LENGTH = 5
static

Maximum string length of segment type

Referenced by getTypeMax(), UClientFuncSF::handlePass(), UClientFuncSF::handleRoad(), and UClientFuncSF::handleSF().

UPose USFData::pose
UTime USFData::scanTime
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]
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().


The documentation for this class was generated from the following files: