rpos::core::LaserPoint Class
Represents each measurement sample (point) of a LIDAR scan.
Header File
rpos/core/laser_point.h
Applies to
- Slamware
- Mapper
Constructors
/**
* Default.
*/
LaserPoint();
/**
* Create the object using specified distance, angle and valid info.
*/
LaserPoint(float distance, float angle, bool valid);
/**
* Copy constructor;
*/
LaserPoint(const LaserPoint&);
Operators
/**
* Assignment operator;
*/
LaserPoint& operator=(const LaserPoint&);
Method
/**
* The distance from the scan centor to the target. Measured in meter unit.
*/
float distance() const;
float& distance();
/**
* The angle (heading) of the current measurement in radius unit with right-hand axis.
*/
float angle() const;
float& angle();
/**
* Specifies whether the current point measurement is valid.
*/
bool valid() const;
bool& valid();