This class is the parameters parser for class MultipleAnalogSensorsClient. More...
#include <networkWrappers/multipleanalogsensorsclient/MultipleAnalogSensorsClient_ParamsParser.h>
Classes | |
struct | parser_version_type |
Public Member Functions | |
MultipleAnalogSensorsClient_ParamsParser () | |
~MultipleAnalogSensorsClient_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 () |
Public Attributes | |
const std::string | m_device_classname = {"MultipleAnalogSensorsClient"} |
const std::string | m_device_name = {"multipleanalogsensorsclient"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_remote_defaultValue = {""} |
const std::string | m_local_defaultValue = {""} |
const std::string | m_timeout_defaultValue = {"0.02"} |
const std::string | m_externalConnection_defaultValue = {"false"} |
const std::string | m_carrier_defaultValue = {"tcp"} |
std::string | m_remote = {} |
std::string | m_local = {} |
double | m_timeout = {0.02} |
bool | m_externalConnection = {false} |
std::string | m_carrier = {"tcp"} |
This class is the parameters parser for class MultipleAnalogSensorsClient.
These are the used parameters:
Group name | Parameter name | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
- | remote | string | - | - | 1 | Prefix of the ports to which to connect, opened by MultipleAnalogSensorsServer device. | - |
- | local | string | - | - | 1 | Port prefix of the ports opened by this device. | - |
- | timeout | double | s | 0.02 | 0 | Timeout after which the device reports an error if no measurement was received. | - |
- | externalConnection | bool | - | false | 0 | If set to true, the connection to the rpc port of the MAS server is skipped and it is possible to connect to the data source externally after being opened | Use case: e.g yarpdataplayer source. Note that with this configuration some information like sensor name, frame name and sensor number will be not available. |
- | carrier | string | - | tcp | 0 | The carier used for the connection with the server. | - |
The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):
Definition at line 45 of file MultipleAnalogSensorsClient_ParamsParser.h.
MultipleAnalogSensorsClient_ParamsParser::MultipleAnalogSensorsClient_ParamsParser | ( | ) |
Definition at line 23 of file MultipleAnalogSensorsClient_ParamsParser.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Get the name of the DeviceDriver class.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 75 of file MultipleAnalogSensorsClient_ParamsParser.h.
|
inlineoverridevirtual |
Get the name of the device (i.e.
the plugin name).
Implements yarp::dev::IDeviceDriverParams.
Definition at line 76 of file MultipleAnalogSensorsClient_ParamsParser.h.
|
overridevirtual |
Get the documentation of the DeviceDriver's parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 153 of file MultipleAnalogSensorsClient_ParamsParser.cpp.
|
overridevirtual |
Return a list of all params used by the device.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 28 of file MultipleAnalogSensorsClient_ParamsParser.cpp.
|
overridevirtual |
Parse the DeviceDriver parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 40 of file MultipleAnalogSensorsClient_ParamsParser.cpp.
std::string MultipleAnalogSensorsClient_ParamsParser::m_carrier = {"tcp"} |
Definition at line 72 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_carrier_defaultValue = {"tcp"} |
Definition at line 66 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_device_classname = {"MultipleAnalogSensorsClient"} |
Definition at line 52 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_device_name = {"multipleanalogsensorsclient"} |
Definition at line 53 of file MultipleAnalogSensorsClient_ParamsParser.h.
bool MultipleAnalogSensorsClient_ParamsParser::m_externalConnection = {false} |
Definition at line 71 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_externalConnection_defaultValue = {"false"} |
Definition at line 65 of file MultipleAnalogSensorsClient_ParamsParser.h.
std::string MultipleAnalogSensorsClient_ParamsParser::m_local = {} |
Definition at line 69 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_local_defaultValue = {""} |
Definition at line 63 of file MultipleAnalogSensorsClient_ParamsParser.h.
bool MultipleAnalogSensorsClient_ParamsParser::m_parser_is_strict = false |
Definition at line 54 of file MultipleAnalogSensorsClient_ParamsParser.h.
const parser_version_type MultipleAnalogSensorsClient_ParamsParser::m_parser_version = {} |
Definition at line 60 of file MultipleAnalogSensorsClient_ParamsParser.h.
std::string MultipleAnalogSensorsClient_ParamsParser::m_remote = {} |
Definition at line 68 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_remote_defaultValue = {""} |
Definition at line 62 of file MultipleAnalogSensorsClient_ParamsParser.h.
double MultipleAnalogSensorsClient_ParamsParser::m_timeout = {0.02} |
Definition at line 70 of file MultipleAnalogSensorsClient_ParamsParser.h.
const std::string MultipleAnalogSensorsClient_ParamsParser::m_timeout_defaultValue = {"0.02"} |
Definition at line 64 of file MultipleAnalogSensorsClient_ParamsParser.h.