AURobotServers
4
|
#include <ulaserdataset.h>
Public Member Functions | |
void | addPassableInterval (UClientLaserPi *passableInterval) |
void | addPassableInterval (ULaserPi *passableInterval) |
void | addPiSeg (ULineSegment *seg, double centerPos) |
void | clear () |
void | clear () |
int | getCount () |
int | getCount () |
UClientLaserData * | getData () |
ULaserData * | getData () |
double | getLaserTilt () |
double | getLaserTilt () |
double | getMaxValidRange () |
UClientLaserPi * | getPis () |
ULaserPi * | getPis () |
int | getPisCnt () |
int | getPisCnt () |
UPose | getPose () |
UPose | getPose () |
UTime | getScanTime () |
UTime | getScanTime () |
UPosRot * | getSensorPose () |
UPosRot * | getSensorPose () |
unsigned int | getSerial () |
unsigned int | getSerial () |
UTime | getTime () |
UTime | getTime () |
bool | isStatValid () |
bool | isStatValid () |
void | print (char *preString, bool verbose) |
void | print (const char *preString, bool verbose) |
void | setData (unsigned int serial, int firstVal, int dataInterval, int dataCount, UTime time, double measurementUnit, bool statDataValid, double statWindowWidth, double laserTilt, double validRange) |
void | setData (unsigned int serial, int firstVal, int dataInterval, int dataCount, UTime time, double measurementUnit, bool statDataValid, double statWindowWidth, double laserTilt) |
void | setPose (UPose pose) |
void | setPose (UPose pose) |
ULaserDataSet () | |
ULaserDataSet () | |
~ULaserDataSet () | |
~ULaserDataSet () | |
Private Attributes | |
int | count |
UClientLaserData | data [MAX_DATA_COUNT] |
ULaserData | data [MAX_DATA_COUNT] |
UTime | dataTime |
int | first |
int | interval |
double | laserTilt |
double | maxValidRange |
UPose | odoPose |
bool | odoValid |
UClientLaserPi | pis [MAX_PIS_COUNT] |
ULaserPi | pis [MAX_PIS_COUNT] |
int | pisCnt |
unsigned long | scanSerial |
UPosRot | sensorPose |
bool | statValid |
double | statWidth |
double | unit |
Static Private Attributes | |
static const int | MAX_PISEG_COUNT = 15 |
Holds a set of laser data
ULaserDataSet::ULaserDataSet | ( | ) |
ULaserDataSet::~ULaserDataSet | ( | ) |
' Destructor
Referenced by UClientLaserPi::setFromTag().
ULaserDataSet::ULaserDataSet | ( | ) |
Construcor
ULaserDataSet::~ULaserDataSet | ( | ) |
' Destructor
void ULaserDataSet::addPassableInterval | ( | UClientLaserPi * | passableInterval | ) |
Add a determined passable control interval - used by MMRD only (deprecated)
References MAX_PIS_COUNT.
void ULaserDataSet::addPassableInterval | ( | ULaserPi * | passableInterval | ) |
Add a determined passable control interval
References MAX_PIS_COUNT.
Referenced by UResLaserIfScan::handleLaserScan(), and UClientFuncLaser::handleLaserScan().
void ULaserDataSet::addPiSeg | ( | ULineSegment * | seg, |
double | centerPos | ||
) |
Add a detected passable interval in this laserscan - including center position as a number of meter from start of segment
void ULaserDataSet::clear | ( | ) |
Clear laserscan
void ULaserDataSet::clear | ( | void | ) |
Clear laserscan
Referenced by UResLaserIfScan::handleLaserScan(), UClientFuncLaser::handleLaserScan(), and UClientLaserPi::setFromTag().
|
inline |
Get count of measurements
|
inline |
Get count of measurements
Referenced by UClientFuncLaserGui::doImage(), UClientFuncLaserGui::doRepaint(), UPaintLaserScan::makeScanCloud(), UNavPaint::paintHistScan(), UClientFuncLaserGui::paintHistScan(), UNavPaint::paintScanNewest(), UNavPaint::paintScanStatData(), and UClientFuncLaserGui::paintScanStatData().
|
inline |
Get pointer to first data value
References data.
|
inline |
Get pointer to first data value
References data.
Referenced by UClientFuncLaserGui::doImage(), UClientFuncLaserGui::doRepaint(), UResLaserIfScan::handleLaserScan(), UClientFuncLaser::handleLaserScan(), UPaintLaserScan::makeScanCloud(), UNavPaint::paintHistScan(), UClientFuncLaserGui::paintHistScan(), UNavPaint::paintScanNewest(), UNavPaint::paintScanStatData(), and UClientFuncLaserGui::paintScanStatData().
|
inline |
References UClientLaserData::print().
|
inline |
References ULaserData::print().
Referenced by UNavPaint::paintScanStatData(), and UClientFuncLaserGui::paintScanStatData().
|
inline |
Get max valid range
Referenced by UPaintLaserScan::makeScanCloud(), UNavPaint::paintHistScan(), and UNavPaint::paintScanNewest().
|
inline |
Get pointer to first passable interval
|
inline |
Get pointer to first passable interval
Referenced by UNavPaint::paintPis(), UClientFuncLaserGui::paintPis(), and UNavView::paintPis().
|
inline |
Get number of available passable intervals
|
inline |
Get number of available passable intervals
Referenced by UClientFuncLaserGui::doRepaint(), UNavPaint::paint(), UNavView::paint(), UNavPaint::paintPis(), UClientFuncLaserGui::paintPis(), and UNavView::paintPis().
|
inline |
Get pose of robot, when this scan were recorded
|
inline |
Get pose of robot, when this scan were recorded
Referenced by UClientFuncLaserGui::doRepaint(), UNavPaint::paintHistScan(), UClientFuncLaserGui::paintHistScan(), UClientFuncLaserGui::paintOdoData(), UClientFuncLaserGui::paintPostHistLine(), and UNavView::paintScansNewest().
|
inline |
Get scantime
|
inline |
Get scantime
Referenced by UClientFuncLaserGui::doRepaint(), UNavPaint::paint(), UNavPaint::paintHistScan(), and UNavView::paintScansNewest().
|
inline |
Get reference to sensor pose
|
inline |
Get reference to sensor pose
Referenced by UClientFuncLaserGui::doRepaint(), UResLaserIfScan::handleLaserScan(), UClientFuncLaser::handleLaserScan(), UPaintLaserScan::makeScanCloud(), UNavPaint::paint(), UNavView::paint(), UNavPaint::paintHistScan(), UClientFuncLaserGui::paintHistScan(), and UNavPaint::paintScanNewest().
|
inline |
Get scan serial number
|
inline |
Get scan serial number
Referenced by UClientFuncLaserGui::doImage(), UClientFuncLaserGui::doRepaint(), UResLaserIfScan::gotNewData(), UPaintLaserScan::makeScanCloud(), UNavPaint::paint(), UNavView::paint(), UNavView::paintScansNewest(), and UClientFuncLaserGui::saveImage().
|
inline |
Get dataset time
|
inline |
Get dataset time
Referenced by UClientFuncLaser::getLaserTime(), and UClientFuncLaserGui::saveImage().
|
inline |
Is statistics data valid for the scan
|
inline |
Is statistics data valid for the scan
Referenced by UClientFuncLaserGui::doRepaint(), UNavPaint::paint(), and UNavView::paint().
void ULaserDataSet::print | ( | char * | preString, |
bool | verbose | ||
) |
Print dataset if verbose, then also data values
References ULaserDataHistory::clear(), data, UClientLaserData::getAngle(), ULaserDataHistory::getNewScan(), MAX_STORED_LASER_SCANS, UClientLaserData::print(), ULaserDataHistory::ULaserDataHistory(), and ULaserDataHistory::~ULaserDataHistory().
void ULaserDataSet::print | ( | const char * | preString, |
bool | verbose | ||
) |
Print dataset if verbose, then also data values
References data, ULaserData::getAngle(), ULaserData::print(), and ULaserData::unit.
Referenced by UClientFuncLaser::gotNewData().
void ULaserDataSet::setData | ( | unsigned int | serial, |
int | firstVal, | ||
int | dataInterval, | ||
int | dataCount, | ||
UTime | time, | ||
double | measurementUnit, | ||
bool | statDataValid, | ||
double | statWindowWidth, | ||
double | laserTilt, | ||
double | validRange | ||
) |
Set static data
References setPose().
void ULaserDataSet::setData | ( | unsigned int | serial, |
int | firstVal, | ||
int | dataInterval, | ||
int | dataCount, | ||
UTime | time, | ||
double | measurementUnit, | ||
bool | statDataValid, | ||
double | statWindowWidth, | ||
double | laserTilt | ||
) |
Set static data
References ULaserData::serial, and ULaserData::unit.
Referenced by UResLaserIfScan::handleLaserScan(), and UClientFuncLaser::handleLaserScan().
void ULaserDataSet::setPose | ( | UPose | pose | ) |
Set odometry pose for this scan
void ULaserDataSet::setPose | ( | UPose | pose | ) |
Set odometry pose for this scan
Referenced by UResLaserIfScan::handleLaserScan(), UClientFuncLaser::handleLaserScan(), and setData().
|
private |
Number of valid data values
|
private |
Data measurements
|
private |
Data measurements
|
private |
Dataset time (at recetion from serial port
|
private |
First data value in original dataset
|
private |
Interval valid measurements from original dataset
|
private |
Laser tilt value in degrees (phi)
|
staticprivate |
Max number of passable line segments for any scan
|
private |
Maximum valid range
|
private |
Pose at time of scan
|
private |
Is odometry position valid
|
private |
Passabel intervals in scan
|
private |
Passabel intervals in scan
|
private |
Number of used PIs
|
private |
Scan serial number
|
private |
Laser sensor pose (3D)
|
private |
Is laserscan statistics valid
|
private |
Width of statistics window
|
private |
Original data unit value (in meter)