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

#include <uv360meas.h>

Public Member Functions

void addMeas (double range, double angle, UTime t)
 
bool addMeas (UPosition pos, double range, double angle, UTime t)
 
void clear ()
 
UV360MeasgetMeas (int n)
 
int getMeasCnt ()
 
double getRange (int set=0)
 
void updatePosition (UPose newRelPose)
 
 UV360Sect ()
 
 ~UV360Sect ()
 

Static Public Member Functions

static const int getMeasMaxCnt ()
 

Protected Member Functions

UV360MeasgetMeasSlot (double rng, UTime t)
 

Protected Attributes

UV360Meas meas [measMaxCnt]
 
int measCnt
 

Static Protected Attributes

static const int measMaxCnt = 6
 

Detailed Description

One sector in the virtual laser scanner

Author
Christian Andersen jca@o.nosp@m.erst.nosp@m.ed.dt.nosp@m.u.dk

Constructor & Destructor Documentation

UV360Sect::UV360Sect ( )

Constructor.

UV360Sect::~UV360Sect ( )

Destructor.

Member Function Documentation

void UV360Sect::addMeas ( double  range,
double  angle,
UTime  t 
)

Add this measurement to the sector.

References UV360Meas::set().

Referenced by UV360Scan::update().

bool UV360Sect::addMeas ( UPosition  pos,
double  range,
double  angle,
UTime  t 
)

Add this measurement to the sector. Returns false if no space to add measurement. (too old or too far away).

References UV360Meas::set().

void UV360Sect::clear ( void  )
inline

Clear all measurements in this sector

References UV360Meas::angle, and UV360Meas::range.

Referenced by UV360Scan::update().

UV360Meas* UV360Sect::getMeas ( int  n)
inline

Get measurements in sector. NB! no range check for n. n must be in range [0,measMaxCnt[

Referenced by UV360Scan::update().

int UV360Sect::getMeasCnt ( )
inline

Get number of measurements in sector

Referenced by UV360Scan::getMeasurementCnt(), UV360Scan::getScan(), and UV360Scan::update().

static const int UV360Sect::getMeasMaxCnt ( )
inlinestatic

Get number of measurements slots in sector

References UV360Meas::getRange().

UV360Meas * UV360Sect::getMeasSlot ( double  rng,
UTime  t 
)
protected

Find the measurement slot to add this measurement based on time and range. Returns an empty slot for the new measurement. Returns NULL if too old or too far out.

References UV360Meas::getRange(), and UV360Meas::getT().

double UV360Sect::getRange ( int  set = 0)

Get range for this sector

Referenced by UV360Scan::getScan().

void UV360Sect::updatePosition ( UPose  newRelPose)

Update position to this new pose.

Member Data Documentation

UV360Meas UV360Sect::meas[measMaxCnt]
protected

Measurements positions in this sector.

int UV360Sect::measCnt
protected

Valid measurements in this sector.

const int UV360Sect::measMaxCnt = 6
staticprotected

Max stored measurements in this sector.


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