rpos::core::LaserPoint 类

激光雷达测距的单点数据,包括了距离、角度、是否有效等信息。

头文件

rpos/core/laser_point.h

适用于

  • Slamware
  • Mapper

构造器

/**
* 创建一个新的LaserPoint对象。
*/
LaserPoint();
/**
* 创建一个距离、角度、有效性为指定值的LaserPoint对象。
*/ 
LaserPoint(float distance, float angle, bool valid);  
/**
* 拷贝构造函数。
*/
LaserPoint(const LaserPoint&);  

运算符

/**
* 赋值运算符。
*/
LaserPoint& operator=(const LaserPoint&);  

方法

/**
* 距离数据(单位:米)。
*/
float distance() const;
float& distance();  
/**
* 本次测量的角度(单位:弧度)。
*/
float angle() const;
float& angle();  
/**
* 本次测量是否有效。
*/
bool valid() const;
bool& valid();