#include <uv360meas.h>
One sector in the virtual laser scanner
- Author
- Christian Andersen jca@o.nosp@m.erst.nosp@m.ed.dt.nosp@m.u.dk
UV360Sect::~UV360Sect |
( |
| ) |
|
void UV360Sect::addMeas |
( |
double |
range, |
|
|
double |
angle, |
|
|
UTime |
t |
|
) |
| |
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 |
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 |
static const int UV360Sect::getMeasMaxCnt |
( |
| ) |
|
|
inlinestatic |
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 | ) |
|
void UV360Sect::updatePosition |
( |
UPose |
newRelPose | ) |
|
Update position to this new pose.
Measurements positions in this sector.
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: