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... | |
Public Member Functions inherited from yarp::dev::DeviceDriver | |
~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... | |
Public Member Functions inherited from yarp::os::IConfig | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
Public Member Functions inherited from yarp::dev::IPreciselyTimed | |
virtual | ~IPreciselyTimed () |
Public Member Functions inherited from yarp::dev::IRangefinder2D | |
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 | |
Public Types inherited from yarp::dev::IRangefinder2D | |
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 82 of file Rangefinder2DClient.h.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 295 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the device hardware charactestics
device_info | string containing the device infos |
Implements yarp::dev::IRangefinder2D.
Definition at line 448 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the device status
status | the device status |
Implements yarp::dev::IRangefinder2D.
Definition at line 442 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 329 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 390 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 308 of file Rangefinder2DClient.cpp.
|
overridevirtual |
Get the time stamp for the last read data.
Implements yarp::dev::IPreciselyTimed.
Definition at line 463 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 302 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 362 of file Rangefinder2DClient.cpp.
|
overridevirtual |
get the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 416 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 173 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 345 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 405 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 378 of file Rangefinder2DClient.cpp.
|
overridevirtual |
set the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 431 of file Rangefinder2DClient.cpp.
|
protected |
Definition at line 99 of file Rangefinder2DClient.h.
|
protected |
Definition at line 97 of file Rangefinder2DClient.h.
|
protected |
Definition at line 98 of file Rangefinder2DClient.h.
|
protected |
Definition at line 93 of file Rangefinder2DClient.h.
|
protected |
Definition at line 88 of file Rangefinder2DClient.h.
|
protected |
Definition at line 100 of file Rangefinder2DClient.h.
|
protected |
Definition at line 92 of file Rangefinder2DClient.h.
|
protected |
Definition at line 90 of file Rangefinder2DClient.h.
|
protected |
Definition at line 91 of file Rangefinder2DClient.h.
|
protected |
Definition at line 101 of file Rangefinder2DClient.h.
|
protected |
Definition at line 89 of file Rangefinder2DClient.h.
|
protected |
Definition at line 96 of file Rangefinder2DClient.h.
|
protected |
Definition at line 95 of file Rangefinder2DClient.h.