A generic interface for planar laser range finders. More...
#include <yarp/dev/IRangefinder2D.h>
Inheritance diagram for yarp::dev::IRangefinder2D:Public Types | |
| enum | Device_status { DEVICE_OK_STANDBY = 0 , DEVICE_OK_IN_USE = 1 , DEVICE_GENERAL_ERROR = 2 , DEVICE_TIMEOUT = 3 } |
Public Member Functions | |
| virtual | ~IRangefinder2D () |
| virtual ReturnValue | getLaserMeasurement (std::vector< yarp::sig::LaserMeasurementData > &data, double *timestamp=nullptr)=0 |
| Get the device measurements. | |
| virtual ReturnValue | getRawData (yarp::sig::Vector &data, double *timestamp=nullptr)=0 |
| Get the device measurements. | |
| virtual ReturnValue | getDeviceStatus (Device_status &status)=0 |
| get the device status | |
| virtual ReturnValue | getDistanceRange (double &min, double &max)=0 |
| get the device detection range | |
| virtual ReturnValue | setDistanceRange (double min, double max)=0 |
| set the device detection range. | |
| virtual ReturnValue | getScanLimits (double &min, double &max)=0 |
| get the scan angular range. | |
| virtual ReturnValue | setScanLimits (double min, double max)=0 |
| set the scan angular range. | |
| virtual ReturnValue | getHorizontalResolution (double &step)=0 |
| get the angular step between two measurements. | |
| virtual ReturnValue | setHorizontalResolution (double step)=0 |
| get the angular step between two measurements (if available) | |
| virtual ReturnValue | getScanRate (double &rate)=0 |
| get the scan rate (scans per seconds) | |
| virtual ReturnValue | setScanRate (double rate)=0 |
| set the scan rate (scans per seconds) | |
| virtual ReturnValue | getDeviceInfo (std::string &device_info)=0 |
| get the device hardware characteristics | |
A generic interface for planar laser range finders.
Definition at line 33 of file IRangefinder2D.h.
| Enumerator | |
|---|---|
| DEVICE_OK_STANDBY | |
| DEVICE_OK_IN_USE | |
| DEVICE_GENERAL_ERROR | |
| DEVICE_TIMEOUT | |
Definition at line 36 of file IRangefinder2D.h.
|
virtualdefault |
|
pure virtual |
get the device hardware characteristics
| device_info | string containing the device infos |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
get the device status
| status | the device status |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
get the device detection range
| min | the minimum detection distance |
| max | the maximum detection distance |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
get the angular step between two measurements.
| step | the angular step between two measurements |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
Get the device measurements.
| data | a vector containing the measurement data, expressed in Cartesian/polar format |
| timestamp | the timestamp of the retrieved data. |
Implemented in RpLidar, laserHokuyo, Rangefinder2D_nwc_ros2, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
Get the device measurements.
| ranges | the vector containing the raw measurement data, as acquired by the device. |
| timestamp | the timestamp of the retrieved data. |
Implemented in RpLidar, laserHokuyo, Rangefinder2D_nwc_ros2, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
get the scan angular range.
| min | start angle of the scan |
| max | end angle of the scan |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
get the scan rate (scans per seconds)
| rate | the scan rate |
Implemented in RpLidar, Rangefinder2D_nwc_ros2, laserHokuyo, Rangefinder2D_nwc_yarp, Rangefinder2DTransformer, and yarp::dev::Lidar2DDeviceBase.
|
pure virtual |
set the device detection range.
Invalid setting will be discarded.
| min | the minimum detection distance |
| max | the maximum detection distance |
Implemented in RpLidar, RpLidar2, RpLidar3, RpLidar4, Rangefinder2D_nwc_ros2, FakeLaser, FakeLaserWithMotor, LaserFromDepth, LaserFromExternalPort, LaserFromPointCloud, laserHokuyo, Rangefinder2D_nwc_yarp, and Rangefinder2DTransformer.
|
pure virtual |
get the angular step between two measurements (if available)
| step | the angular step between two measurements |
Implemented in RpLidar, RpLidar2, RpLidar3, RpLidar4, Rangefinder2D_nwc_ros2, FakeLaser, FakeLaserWithMotor, LaserFromDepth, LaserFromExternalPort, LaserFromPointCloud, laserHokuyo, Rangefinder2D_nwc_yarp, and Rangefinder2DTransformer.
|
pure virtual |
set the scan angular range.
| min | start angle of the scan |
| max | end angle of the scan |
Implemented in RpLidar, RpLidar2, RpLidar3, RpLidar4, Rangefinder2D_nwc_ros2, FakeLaser, FakeLaserWithMotor, LaserFromDepth, LaserFromExternalPort, LaserFromPointCloud, laserHokuyo, Rangefinder2D_nwc_yarp, and Rangefinder2DTransformer.
|
pure virtual |
set the scan rate (scans per seconds)
| rate | the scan rate |
Implemented in RpLidar, RpLidar2, RpLidar3, RpLidar4, Rangefinder2D_nwc_ros2, FakeLaser, FakeLaserWithMotor, LaserFromDepth, LaserFromExternalPort, LaserFromPointCloud, laserHokuyo, Rangefinder2D_nwc_yarp, and Rangefinder2DTransformer.