AURobotServers
4
|
#include <ulaserdataset.h>
Public Member Functions | |
void | clear () |
void | clear () |
ULaserDataSet * | getNewest () |
ULaserDataSet * | getNewest () |
ULaserDataSet * | getNewScan () |
ULaserDataSet * | getNewScan () |
ULaserDataSet * | getScan (int histNum) |
ULaserDataSet * | getScan (int histNum) |
int | getScansCnt () |
int | getScansCnt () |
void | newBufferValid () |
ULaserDataHistory () | |
ULaserDataHistory () | |
~ULaserDataHistory () | |
~ULaserDataHistory () | |
Private Attributes | |
int | newBuffer |
int | newest |
ULaserDataSet * | scans [MAX_STORED_LASER_SCANS] |
int | scansCnt |
History of laser scans
ULaserDataHistory::ULaserDataHistory | ( | ) |
ULaserDataHistory::~ULaserDataHistory | ( | ) |
ULaserDataHistory::ULaserDataHistory | ( | ) |
Constructor
ULaserDataHistory::~ULaserDataHistory | ( | ) |
Destructor
void ULaserDataHistory::clear | ( | ) |
Clear all history scans
void ULaserDataHistory::clear | ( | void | ) |
Clear all history scans
Referenced by UClientFuncLaserGui::clear(), UFunctionLaserIfScan::handleLaserIf(), and ULaserDataSet::print().
ULaserDataSet* ULaserDataHistory::getNewest | ( | ) |
Get pointer to newest data
ULaserDataSet * ULaserDataHistory::getNewest | ( | ) |
Get pointer to newest data
Referenced by UClientFuncLaserGui::doImage(), newBufferValid(), UNavPaint::paint(), UClientFuncLaserGui::paintNewestScan(), and UResLaserIfScan::snprint().
ULaserDataSet* ULaserDataHistory::getNewScan | ( | ) |
Get space for new scan
ULaserDataSet * ULaserDataHistory::getNewScan | ( | ) |
Get space for new scan
References MAX_STORED_LASER_SCANS.
Referenced by UResLaserIfScan::handleLaserScan(), UClientFuncLaser::handleLaserScan(), and ULaserDataSet::print().
ULaserDataSet* ULaserDataHistory::getScan | ( | int | histNum | ) |
Get a laser scan indexed after its age in the history buffer (up to MAX_STORED_LASER_SCANS - 1)
ULaserDataSet * ULaserDataHistory::getScan | ( | int | histNum | ) |
Get a laser scan indexed after its age in the history buffer (up to MAX_STORED_LASER_SCANS - 1)
References MAX_STORED_LASER_SCANS.
Referenced by UClientFuncLaserGui::doRepaint(), UClientFuncLaser::getLaserTime(), newBufferValid(), UNavPaint::paint(), UClientFuncLaserGui::paintOdoData(), and UClientFuncLaserGui::saveImage().
|
inline |
Get number of saved scans
References MAX_STORED_LASER_SCANS.
|
inline |
Get number of saved scans
Referenced by UClientFuncLaserGui::doRepaint(), UNavPaint::paint(), UClientFuncLaserGui::paintNewestScan(), and UResLaserIfScan::snprint().
void ULaserDataHistory::newBufferValid | ( | ) |
Flag that the new buffer is filled, and now is the newest
References getNewest(), getScan(), and MAX_STORED_LASER_SCANS.
Referenced by UResLaserIfScan::handleLaserScan().
|
private |
|
private |
Newest available scan
|
private |
Storage of scans
|
private |
Number of used scan positions