Rangefinder2D_nwc_yarp
: The client side of any ILaserRangefinder2D capable device.
More...
#include <networkWrappers/Rangefinder2D_nwc_yarp/Rangefinder2D_nwc_yarp.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
yarp::dev::ReturnValue | getLaserMeasurement (std::vector< yarp::sig::LaserMeasurementData > &data, double *timestamp=nullptr) override |
Get the device measurements. | |
yarp::dev::ReturnValue | getRawData (yarp::sig::Vector &data, double *timestamp=nullptr) override |
Get the device measurements. | |
yarp::dev::ReturnValue | getDeviceStatus (Device_status &status) override |
get the device status | |
yarp::dev::ReturnValue | getDistanceRange (double &min, double &max) override |
get the device detection range | |
yarp::dev::ReturnValue | setDistanceRange (double min, double max) override |
set the device detection range. | |
yarp::dev::ReturnValue | getScanLimits (double &min, double &max) override |
get the scan angular range. | |
yarp::dev::ReturnValue | setScanLimits (double min, double max) override |
set the scan angular range. | |
yarp::dev::ReturnValue | getHorizontalResolution (double &step) override |
get the angular step between two measurements. | |
yarp::dev::ReturnValue | setHorizontalResolution (double step) override |
get the angular step between two measurements (if available) | |
yarp::dev::ReturnValue | getScanRate (double &rate) override |
get the scan rate (scans per seconds) | |
yarp::dev::ReturnValue | setScanRate (double rate) override |
set the scan rate (scans per seconds) | |
yarp::dev::ReturnValue | getDeviceInfo (std::string &device_info) override |
get the device hardware characteristics | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~IRangefinder2D () |
![]() | |
Rangefinder2D_nwc_yarp_ParamsParser () | |
~Rangefinder2D_nwc_yarp_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Protected Attributes | |
Rangefinder2D_InputPortProcessor | m_inputPort |
IRangefinder2DMsgs | m_RPC |
std::mutex | m_mutex |
yarp::os::Port | m_rpcPort |
yarp::os::Stamp | m_lastTs |
std::string | m_deviceId |
double | m_scan_angle_min = std::nan("1") |
double | m_scan_angle_max = std::nan("1") |
std::string | m_laser_frame_name |
std::string | m_robot_frame_name |
Additional Inherited Members | |
![]() | |
enum | Device_status { DEVICE_OK_STANDBY = 0 , DEVICE_OK_IN_USE = 1 , DEVICE_GENERAL_ERROR = 2 , DEVICE_TIMEOUT = 3 } |
![]() | |
const std::string | m_device_classname = {"Rangefinder2D_nwc_yarp"} |
const std::string | m_device_name = {"rangefinder2D_nwc_yarp"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_local_defaultValue = {""} |
const std::string | m_remote_defaultValue = {""} |
const std::string | m_carrier_defaultValue = {"tcp"} |
std::string | m_local = {} |
std::string | m_remote = {} |
std::string | m_carrier = {"tcp"} |
Rangefinder2D_nwc_yarp
: The client side of any ILaserRangefinder2D capable device.
Parameters required by this device are shown in class: Rangefinder2D_nwc_yarp_ParamsParser
Definition at line 69 of file Rangefinder2D_nwc_yarp.h.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 205 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the device hardware characteristics
device_info | string containing the device infos |
Implements yarp::dev::IRangefinder2D.
Definition at line 357 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the device status
status | the device status |
Implements yarp::dev::IRangefinder2D.
Definition at line 350 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the device detection range
min | the minimum detection distance |
max | the maximum detection distance |
Implements yarp::dev::IRangefinder2D.
Definition at line 255 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the angular step between two measurements.
step | the angular step between two measurements |
Implements yarp::dev::IRangefinder2D.
Definition at line 304 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
Get the device measurements.
data | a vector containing the measurement data, expressed in Cartesian/polar format |
timestamp | the timestamp of the retrieved data. |
Implements yarp::dev::IRangefinder2D.
Definition at line 228 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
Get the device measurements.
ranges | the vector containing the raw measurement data, as acquired by the device. |
timestamp | the timestamp of the retrieved data. |
Implements yarp::dev::IRangefinder2D.
Definition at line 213 of file Rangefinder2D_nwc_yarp.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 280 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 327 of file Rangefinder2D_nwc_yarp.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 155 of file Rangefinder2D_nwc_yarp.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 268 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
get the angular step between two measurements (if available)
step | the angular step between two measurements |
Implements yarp::dev::IRangefinder2D.
Definition at line 316 of file Rangefinder2D_nwc_yarp.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 293 of file Rangefinder2D_nwc_yarp.cpp.
|
overridevirtual |
set the scan rate (scans per seconds)
rate | the scan rate |
Implements yarp::dev::IRangefinder2D.
Definition at line 339 of file Rangefinder2D_nwc_yarp.cpp.
|
protected |
Definition at line 81 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 75 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 85 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 80 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 77 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 86 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 76 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 79 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 84 of file Rangefinder2D_nwc_yarp.h.
|
protected |
Definition at line 83 of file Rangefinder2D_nwc_yarp.h.