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