This class is the parameters parser for class FakeBot. More...
#include <fake/fakebot/FakeBot_ParamsParser.h>
Classes | |
struct | parser_version_type |
Public Member Functions | |
FakeBot_ParamsParser () | |
~FakeBot_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. | |
Public Member Functions inherited from yarp::dev::IDeviceDriverParams | |
virtual | ~IDeviceDriverParams () |
Public Attributes | |
const std::string | m_device_classname = {"FakeBot"} |
const std::string | m_device_name = {"fakebot"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
const std::string | m_background_defaultValue = {"textures/back.ppm"} |
const std::string | m_target_defaultValue = {"textures/fore.ppm"} |
const std::string | m_noise_defaultValue = {"0.05"} |
const std::string | m_sx_defaultValue = {"1.0"} |
const std::string | m_sy_defaultValue = {"1.0"} |
const std::string | m_lifetime_defaultValue = {"-1.0"} |
std::string | m_background = {"textures/back.ppm"} |
std::string | m_target = {"textures/fore.ppm"} |
double | m_noise = {0.05} |
double | m_sx = {1.0} |
double | m_sy = {1.0} |
double | m_lifetime = {-1.0} |
This class is the parameters parser for class FakeBot.
These are the used parameters:
Group name | Parameter name | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
- | background | string | - | textures/back.ppm | 0 | background image to use | - |
- | target | string | - | textures/fore.ppm | 0 | target image to use | - |
- | noise | double | - | 0.05 | 0 | pixel noise level | - |
- | sx | double | - | 1.0 | 0 | scaling for x coordinate | - |
- | sy | double | - | 1.0 | 0 | scaling for y coordinate | - |
- | lifetime | double | s | -1.0 | 0 | device should exist for this length of time | - |
The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):
Definition at line 46 of file FakeBot_ParamsParser.h.
FakeBot_ParamsParser::FakeBot_ParamsParser | ( | ) |
Definition at line 23 of file FakeBot_ParamsParser.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Get the name of the DeviceDriver class.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 78 of file FakeBot_ParamsParser.h.
|
inlineoverridevirtual |
Get the name of the device (i.e.
the plugin name).
Implements yarp::dev::IDeviceDriverParams.
Definition at line 79 of file FakeBot_ParamsParser.h.
|
overridevirtual |
Get the documentation of the DeviceDriver's parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 164 of file FakeBot_ParamsParser.cpp.
|
overridevirtual |
Return a list of all params used by the device.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 28 of file FakeBot_ParamsParser.cpp.
|
overridevirtual |
Parse the DeviceDriver parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 41 of file FakeBot_ParamsParser.cpp.
std::string FakeBot_ParamsParser::m_background = {"textures/back.ppm"} |
Definition at line 70 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_background_defaultValue = {"textures/back.ppm"} |
Definition at line 63 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_device_classname = {"FakeBot"} |
Definition at line 53 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_device_name = {"fakebot"} |
Definition at line 54 of file FakeBot_ParamsParser.h.
double FakeBot_ParamsParser::m_lifetime = {-1.0} |
Definition at line 75 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_lifetime_defaultValue = {"-1.0"} |
Definition at line 68 of file FakeBot_ParamsParser.h.
double FakeBot_ParamsParser::m_noise = {0.05} |
Definition at line 72 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_noise_defaultValue = {"0.05"} |
Definition at line 65 of file FakeBot_ParamsParser.h.
bool FakeBot_ParamsParser::m_parser_is_strict = false |
Definition at line 55 of file FakeBot_ParamsParser.h.
const parser_version_type FakeBot_ParamsParser::m_parser_version = {} |
Definition at line 61 of file FakeBot_ParamsParser.h.
double FakeBot_ParamsParser::m_sx = {1.0} |
Definition at line 73 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_sx_defaultValue = {"1.0"} |
Definition at line 66 of file FakeBot_ParamsParser.h.
double FakeBot_ParamsParser::m_sy = {1.0} |
Definition at line 74 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_sy_defaultValue = {"1.0"} |
Definition at line 67 of file FakeBot_ParamsParser.h.
std::string FakeBot_ParamsParser::m_target = {"textures/fore.ppm"} |
Definition at line 71 of file FakeBot_ParamsParser.h.
const std::string FakeBot_ParamsParser::m_target_defaultValue = {"textures/fore.ppm"} |
Definition at line 64 of file FakeBot_ParamsParser.h.