ViSP  2.8.0
vpLaserScan Class Reference

#include <vpLaserScan.h>

Public Member Functions

 vpLaserScan ()
 
 vpLaserScan (const vpLaserScan &scan)
 
virtual ~vpLaserScan ()
 
void addPoint (const vpScanPoint &p)
 
void clear ()
 
std::vector< vpScanPointgetScanPoints ()
 
void setMeasurementId (const unsigned short &measurementId)
 
void setStartTimestamp (const double &startTimestamp)
 
void setEndTimestamp (const double &endTimestamp)
 
void setNumSteps (const unsigned short &numSteps)
 
void setStartAngle (const short &startAngle)
 
void setStopAngle (const short &stopAngle)
 
void setNumPoints (const unsigned short &numPoints)
 
double getStartTimestamp ()
 
double getEndTimestamp ()
 

Detailed Description

Implements a laser scan data structure that contains especially the list of scanned points that have been recorded for this laser scan.

Other data as the start/stop angle, the start/end timestamp are also considered.

Examples:
SickLDMRS-Acq.cpp, and SickLDMRS-Process.cpp.

Definition at line 66 of file vpLaserScan.h.

Constructor & Destructor Documentation

vpLaserScan::vpLaserScan ( )
inline

Default constructor that initialize all the internal variable to zero.

Definition at line 70 of file vpLaserScan.h.

vpLaserScan::vpLaserScan ( const vpLaserScan scan)
inline

Copy constructor.

Definition at line 80 of file vpLaserScan.h.

virtual vpLaserScan::~vpLaserScan ( )
inlinevirtual

Default destructor that does nothing.

Definition at line 91 of file vpLaserScan.h.

Member Function Documentation

void vpLaserScan::addPoint ( const vpScanPoint p)
inline

Add the scan point at the end of the list.

Definition at line 93 of file vpLaserScan.h.

void vpLaserScan::clear ( )
inline

Drop the list of points.

Definition at line 97 of file vpLaserScan.h.

double vpLaserScan::getEndTimestamp ( )
inline

Return the measurement end time.

Examples:
SickLDMRS-Process.cpp.

Definition at line 138 of file vpLaserScan.h.

std::vector<vpScanPoint> vpLaserScan::getScanPoints ( )
inline

Get the list of points.

Examples:
SickLDMRS-Process.cpp.

Definition at line 101 of file vpLaserScan.h.

double vpLaserScan::getStartTimestamp ( )
inline

Return the measurement start time.

Examples:
SickLDMRS-Process.cpp.

Definition at line 134 of file vpLaserScan.h.

void vpLaserScan::setEndTimestamp ( const double &  endTimestamp)
inline

End time of measurement.

Definition at line 114 of file vpLaserScan.h.

void vpLaserScan::setMeasurementId ( const unsigned short &  measurementId)
inline

Specifies the id of former measurements and increases with every measurement.

Definition at line 106 of file vpLaserScan.h.

void vpLaserScan::setNumPoints ( const unsigned short &  numPoints)
inline

Number of measured points of the measurement.

Definition at line 130 of file vpLaserScan.h.

void vpLaserScan::setNumSteps ( const unsigned short &  numSteps)
inline

Angular steps per scanner rotation.

Definition at line 118 of file vpLaserScan.h.

void vpLaserScan::setStartAngle ( const short &  startAngle)
inline

Start angle of the measurement in angular steps.

Definition at line 122 of file vpLaserScan.h.

void vpLaserScan::setStartTimestamp ( const double &  startTimestamp)
inline

Start time of measurement.

Definition at line 110 of file vpLaserScan.h.

void vpLaserScan::setStopAngle ( const short &  stopAngle)
inline

Stop angle of the measurement in angular steps.

Definition at line 126 of file vpLaserScan.h.