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

Public Member Functions

UNamedBoxaddBox (const char *name, double x1, double y1, double x2, double y2)
 add or modify a abox More...
 
void createGlobalVariables (UVarPool *vp)
 create global variables More...
 
int doDetect (ULaserData *data, bool noPoly, ULaserDevice *lasDev, int polySys)
 
int findNamedBox (const char *name)
 find named box index More...
 
 UNamedBoxes ()
 constructor More...
 

Public Attributes

UNamedBox boxes [MAX_BOXES]
 the boxes More...
 
int boxesCnt
 number of used boxes More...
 
UVarPoolparentStruct
 pointer to the plugin structure for global variables More...
 
UResPoseHistphMap
 pose history for map coordinates More...
 
UResPoseHistphOdo
 pose history for odometry More...
 
UResPoseHistphUtm
 pose history for GPS (UTM) More...
 
UVariablevarBoxesCnt
 count of detection boxes More...
 
UVariablevarDetectCnt
 count of detection attempts More...
 
UVariablevarDetections
 detections in each box More...
 
UVariablevarDetectTime
 last detection time More...
 

Static Public Attributes

static const int MAX_BOXES = 30
 

Detailed Description

Class with detection boxes

Constructor & Destructor Documentation

UNamedBoxes::UNamedBoxes ( )
inline

constructor

Member Function Documentation

UNamedBox* UNamedBoxes::addBox ( const char *  name,
double  x1,
double  y1,
double  x2,
double  y2 
)
inline
void UNamedBoxes::createGlobalVariables ( UVarPool vp)
inline

create global variables

References UVarPool::addVar().

Referenced by UFuncLaserBox::createResources().

int UNamedBoxes::doDetect ( ULaserData data,
bool  noPoly,
ULaserDevice lasDev,
int  polySys 
)
inline

test if there are detections within boxex for this scan

Parameters
datais structure with laser data
noPolyif true, then no polygons are constructed from detections inside box
lasDevis pointer to source device (with position of laser scanner)
Returns
number of boxes with detections

References UVariable::add(), UPose::asMatrix4x4PtoMPos(), UNamedBox::clearPoly(), UNamedBox::doDetect(), ULaserDevice::getDevicePose(), UVariable::getInt(), UPosRot::getMtoRMatrix(), UResPoseHist::getPoseAtTime(), UPosRot::getRtoMMatrix(), ULaserData::getScanTime(), ULock::lock(), UNamedBox::parentStruct, UVariable::setInt(), UVariable::setTime(), ULock::unlock(), and UNamedBox::varCooSys.

Referenced by UFuncLaserBox::handleCommand().

int UNamedBoxes::findNamedBox ( const char *  name)
inline

find named box index

References UVariable::getString(), and UNamedBox::varName.

Member Data Documentation

UNamedBox UNamedBoxes::boxes[MAX_BOXES]

the boxes

Referenced by UFuncLaserBox::handleCommand().

int UNamedBoxes::boxesCnt

number of used boxes

Referenced by UFuncLaserBox::handleCommand().

const int UNamedBoxes::MAX_BOXES = 30
static
UVarPool* UNamedBoxes::parentStruct

pointer to the plugin structure for global variables

UResPoseHist* UNamedBoxes::phMap

pose history for map coordinates

Referenced by UFuncLaserBox::setResource().

UResPoseHist* UNamedBoxes::phOdo

pose history for odometry

Referenced by UFuncLaserBox::setResource().

UResPoseHist* UNamedBoxes::phUtm

pose history for GPS (UTM)

Referenced by UFuncLaserBox::setResource().

UVariable* UNamedBoxes::varBoxesCnt

count of detection boxes

UVariable* UNamedBoxes::varDetectCnt

count of detection attempts

UVariable* UNamedBoxes::varDetections

detections in each box

UVariable* UNamedBoxes::varDetectTime

last detection time


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