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

#include <ufeaturepool.h>

Inheritance diagram for UFeaturePool:
Inheritance graph

Public Member Functions

bool addData (UFeatureData *data)
 
void clear ()
 
UFeatureDatagetScan (int age)
 
int getScansCnt ()
 
int getScansMax ()
 
UPosRot getSensorPose ()
 
bool gotSensorPose ()
 
void markAsNotNew (const char *dataType)
 
void setSensorPose (UPosRot value)
 
 UFeaturePool ()
 
 ~UFeaturePool ()
 
- Public Member Functions inherited from UOnEvent
bool addEventHandler (UCallBack *object, Method methodToCall)
 
bool event (const char *interface, const char *dataType, void *dataPtr)
 
 UOnEvent ()
 
 ~UOnEvent ()
 

Protected Attributes

UPosRot defaultSensorPose
 
bool defaultSensorPoseOK
 
int newest
 
UFeatureData scans [MAX_SEGMENT_SCANS]
 
int scansCnt
 
- Protected Attributes inherited from UOnEvent
Method method [MAX_CALL_BACKS]
 
UCallBackobj [MAX_CALL_BACKS]
 
int objCnt
 

Static Protected Attributes

static const int MAX_SEGMENT_SCANS = 400
 
- Static Protected Attributes inherited from UOnEvent
static const int MAX_CALL_BACKS = 20
 

Additional Inherited Members

- Public Types inherited from UOnEvent
typedef bool(UCallBack::* Method) (const char *interface, const char *dataType, void *data)
 

Detailed Description

Holds history of scanfeatures

    @author Christian Andersen <jca@oersted.dtu.dk>

Constructor & Destructor Documentation

UFeaturePool::UFeaturePool ( )

Constructor

UFeaturePool::~UFeaturePool ( )

Destructor

Member Function Documentation

bool UFeaturePool::addData ( UFeatureData data)
void UFeaturePool::clear ( void  )

Remove all data

References UFeatureData::clear().

Referenced by UResLaserIfSf::clear().

UFeatureData * UFeaturePool::getScan ( int  age)

Get pointer to scan

Referenced by UNavPaint::paintFeatures(), and UNavView::paintFeatures().

int UFeaturePool::getScansCnt ( )
inline
int UFeaturePool::getScansMax ( )
inline

Get max number of scans in pool

UPosRot UFeaturePool::getSensorPose ( )
inline

Get the default sensor pose - used to convert sensor positions to robot coordinates

Referenced by UResLaserIfSf::handlePass(), and UResLaserIfSf::handleSF().

bool UFeaturePool::gotSensorPose ( )
inline

Is default sensor pose set from a laser scanner message

Referenced by UResLaserIfSf::handlePass(), and UResLaserIfSf::handleSF().

void UFeaturePool::markAsNotNew ( const char *  dataType)

Mark all entries of this type as not new, until an enty is found that is not new already.

References UFeatureData::isA(), and UFeatureData::isNewest.

void UFeaturePool::setSensorPose ( UPosRot  value)
inline

Set default sensor pose - used to convert sensor positions to robot coordinates

Referenced by UResLaserIfSf::handlePass(), and UResLaserIfSf::handleSF().

Member Data Documentation

UPosRot UFeaturePool::defaultSensorPose
protected

Default laser scanner posr - if not included in sensor data set

bool UFeaturePool::defaultSensorPoseOK
protected

Is default sensor pose set

const int UFeaturePool::MAX_SEGMENT_SCANS = 400
staticprotected

Max number of segment scans

int UFeaturePool::newest
protected

Newest scan index

UFeatureData UFeaturePool::scans[MAX_SEGMENT_SCANS]
protected

Segments

int UFeaturePool::scansCnt
protected

Number of received scans


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