Rangefinder2DClient
: The client side of any ILaserRangefinder2D capable device.
More...
#include <Rangefinder2DClient/Rangefinder2DClient.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
yarp::os::Stamp | getLastInputStamp () override |
Get the time stamp for the last read data. More... | |
bool | getLaserMeasurement (std::vector< yarp::dev::LaserMeasurementData > &data) override |
Get the device measurements. More... | |
bool | getRawData (yarp::sig::Vector &data) override |
Get the device measurements. More... | |
bool | getDeviceStatus (Device_status &status) override |
get the device status More... | |
bool | getDistanceRange (double &min, double &max) override |
get the device detection range More... | |
bool | setDistanceRange (double min, double max) override |
set the device detection range. More... | |
bool | getScanLimits (double &min, double &max) override |
get the scan angular range. More... | |
bool | setScanLimits (double min, double max) override |
set the scan angular range. More... | |
bool | getHorizontalResolution (double &step) override |
get the angular step between two measurments. More... | |
bool | setHorizontalResolution (double step) override |
get the angular step between two measurments (if available) More... | |
bool | getScanRate (double &rate) override |
get the scan rate (scans per seconds) More... | |
bool | setScanRate (double rate) override |
set the scan rate (scans per seconds) More... | |
bool | getDeviceInfo (std::string &device_info) override |
get the device hardware charactestics More... | |
![]() | |
~DeviceDriver () override=default | |
Destructor. More... | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. More... | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. More... | |
![]() | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
![]() | |
virtual | ~IPreciselyTimed () |
![]() | |
virtual | ~IRangefinder2D () |
Protected Attributes | |
Rangefinder2DInputPortProcessor | inputPort |
yarp::os::Port | rpcPort |
std::string | local |
std::string | remote |
yarp::os::Stamp | lastTs |
std::string | deviceId |
double | scan_angle_min |
double | scan_angle_max |
double | device_position_x |
double | device_position_y |
double | device_position_theta |
std::string | laser_frame_name |
std::string | robot_frame_name |
Additional Inherited Members | |
![]() | |
enum | Device_status { DEVICE_OK_STANBY = 0 , DEVICE_OK_IN_USE = 1 , DEVICE_GENERAL_ERROR = 2 , DEVICE_TIMEOUT = 3 } |
Rangefinder2DClient
: The client side of any ILaserRangefinder2D capable device.
Still single thread! concurrent access is unsafe.
Definition at line 69 of file Rangefinder2DClient.h.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 284 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the device hardware charactestics
device_info | string containing the device infos |
Implements yarp::dev::IRangefinder2D.
Definition at line 437 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the device status
status | the device status |
Implements yarp::dev::IRangefinder2D.
Definition at line 431 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the device detection range
min | the minimum detection distance |
max | the maximum detection distance |
Implements yarp::dev::IRangefinder2D.
Definition at line 318 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the angular step between two measurments.
step | the angular step between two measurments |
Implements yarp::dev::IRangefinder2D.
Definition at line 379 of file Rangefinder2DClient.cpp.
|
overridevirtual |
Get the device measurements.
data | a vector containing the measurement data, expressed in cartesian/polar format |
Implements yarp::dev::IRangefinder2D.
Definition at line 297 of file Rangefinder2DClient.cpp.
|
overridevirtual |
Get the time stamp for the last read data.
Implements yarp::dev::IPreciselyTimed.
Definition at line 452 of file Rangefinder2DClient.cpp.
|
overridevirtual |
Get the device measurements.
ranges | the vector containing the raw measurement data, as acquired by the device. |
Implements yarp::dev::IRangefinder2D.
Definition at line 291 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the scan angular range.
min | start angle of the scan |
max | end angle of the scan |
Implements yarp::dev::IRangefinder2D.
Definition at line 351 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 405 of file Rangefinder2DClient.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 162 of file Rangefinder2DClient.cpp.
|
overridevirtual |
set the device detection range.
Invalid setting will be discarded.
min | the minimum detection distance |
max | the maximum detection distance |
Implements yarp::dev::IRangefinder2D.
Definition at line 334 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the angular step between two measurments (if available)
step | the angular step between two measurments |
Implements yarp::dev::IRangefinder2D.
Definition at line 394 of file Rangefinder2DClient.cpp.
|
overridevirtual |
set the scan angular range.
min | start angle of the scan |
max | end angle of the scan |
Implements yarp::dev::IRangefinder2D.
Definition at line 367 of file Rangefinder2DClient.cpp.
|
overridevirtual |
set the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 420 of file Rangefinder2DClient.cpp.
|
protected |
Definition at line 86 of file Rangefinder2DClient.h.
|
protected |
Definition at line 84 of file Rangefinder2DClient.h.
|
protected |
Definition at line 85 of file Rangefinder2DClient.h.
|
protected |
Definition at line 80 of file Rangefinder2DClient.h.
|
protected |
Definition at line 75 of file Rangefinder2DClient.h.
|
protected |
Definition at line 87 of file Rangefinder2DClient.h.
|
protected |
Definition at line 79 of file Rangefinder2DClient.h.
|
protected |
Definition at line 77 of file Rangefinder2DClient.h.
|
protected |
Definition at line 78 of file Rangefinder2DClient.h.
|
protected |
Definition at line 88 of file Rangefinder2DClient.h.
|
protected |
Definition at line 76 of file Rangefinder2DClient.h.
|
protected |
Definition at line 83 of file Rangefinder2DClient.h.
|
protected |
Definition at line 82 of file Rangefinder2DClient.h.