This class is the parameters parser for class FakeDepthCameraDriver. More...
#include <fake/fakeDepthCamera/FakeDepthCameraDriver_ParamsParser.h>
Classes | |
struct | parser_version_type |
Public Member Functions | |
FakeDepthCameraDriver_ParamsParser () | |
~FakeDepthCameraDriver_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. | |
bool | getParamValue (const std::string ¶mName, std::string ¶mValue) const override |
Return the value (represented as a string) of the requested parameter. | |
std::string | getConfiguration () const override |
Return the configuration of the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Public Attributes | |
const std::string | m_device_classname = {"FakeDepthCameraDriver"} |
const std::string | m_device_name = {"fakeDepthCamera"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
std::string | m_provided_configuration |
const std::string | m_rgb_h_defaultValue = {"480.0"} |
const std::string | m_rgb_w_defaultValue = {"640.0"} |
const std::string | m_dep_h_defaultValue = {"480.0"} |
const std::string | m_dep_w_defaultValue = {"640.0"} |
const std::string | m_accuracy_defaultValue = {"0.001"} |
const std::string | m_rgb_Vfov_defaultValue = {"50.0"} |
const std::string | m_rgb_Hfov_defaultValue = {"36.0"} |
const std::string | m_dep_Vfov_defaultValue = {"50.0"} |
const std::string | m_dep_Hfov_defaultValue = {"36.0"} |
const std::string | m_dep_near_defaultValue = {"0.2"} |
const std::string | m_dep_far_defaultValue = {"6.0"} |
double | m_rgb_h = {480.0} |
double | m_rgb_w = {640.0} |
double | m_dep_h = {480.0} |
double | m_dep_w = {640.0} |
double | m_accuracy = {0.001} |
double | m_rgb_Vfov = {50.0} |
double | m_rgb_Hfov = {36.0} |
double | m_dep_Vfov = {50.0} |
double | m_dep_Hfov = {36.0} |
double | m_dep_near = {0.2} |
double | m_dep_far = {6.0} |
This class is the parameters parser for class FakeDepthCameraDriver.
These are the used parameters:
Group name | Parameter name | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
- | rgb_h | double | - | 480.0 | 0 | rgb_h | - |
- | rgb_w | double | - | 640.0 | 0 | rgb_w | - |
- | dep_h | double | - | 480.0 | 0 | dep_h | probably it should be identical to rgb_h |
- | dep_w | double | - | 640.0 | 0 | dep_w | probably it should be identical to rgb_w |
- | accuracy | double | - | 0.001 | 0 | accuracy | - |
- | rgb_Vfov | double | - | 50.0 | 0 | rgb_Vfov | - |
- | rgb_Hfov | double | - | 36.0 | 0 | rgb_Hfov | - |
- | dep_Vfov | double | - | 50.0 | 0 | dep_Vfov | - |
- | dep_Hfov | double | - | 36.0 | 0 | dep_Hfov | - |
- | dep_near | double | - | 0.2 | 0 | dep_near | - |
- | dep_far | double | - | 6.0 | 0 | dep_far | - |
The device can be launched by yarpdev using one of the following examples (with and without all optional parameters):
Definition at line 51 of file FakeDepthCameraDriver_ParamsParser.h.
FakeDepthCameraDriver_ParamsParser::FakeDepthCameraDriver_ParamsParser | ( | ) |
Definition at line 23 of file FakeDepthCameraDriver_ParamsParser.cpp.
|
overridedefault |
|
overridevirtual |
Return the configuration of the device.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 110 of file FakeDepthCameraDriver_ParamsParser.cpp.
|
inlineoverridevirtual |
Get the name of the DeviceDriver class.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 95 of file FakeDepthCameraDriver_ParamsParser.h.
|
inlineoverridevirtual |
Get the name of the device (i.e.
the plugin name).
Implements yarp::dev::IDeviceDriverParams.
Definition at line 96 of file FakeDepthCameraDriver_ParamsParser.h.
|
overridevirtual |
Get the documentation of the DeviceDriver's parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 313 of file FakeDepthCameraDriver_ParamsParser.cpp.
|
overridevirtual |
Return a list of all params used by the device.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 28 of file FakeDepthCameraDriver_ParamsParser.cpp.
|
overridevirtual |
Return the value (represented as a string) of the requested parameter.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 46 of file FakeDepthCameraDriver_ParamsParser.cpp.
|
overridevirtual |
Parse the DeviceDriver parameters.
Implements yarp::dev::IDeviceDriverParams.
Definition at line 120 of file FakeDepthCameraDriver_ParamsParser.cpp.
double FakeDepthCameraDriver_ParamsParser::m_accuracy = {0.001} |
Definition at line 86 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_accuracy_defaultValue = {"0.001"} |
Definition at line 74 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_far = {6.0} |
Definition at line 92 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_far_defaultValue = {"6.0"} |
Definition at line 80 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_h = {480.0} |
Definition at line 84 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_h_defaultValue = {"480.0"} |
Definition at line 72 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_Hfov = {36.0} |
Definition at line 90 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_Hfov_defaultValue = {"36.0"} |
Definition at line 78 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_near = {0.2} |
Definition at line 91 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_near_defaultValue = {"0.2"} |
Definition at line 79 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_Vfov = {50.0} |
Definition at line 89 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_Vfov_defaultValue = {"50.0"} |
Definition at line 77 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_dep_w = {640.0} |
Definition at line 85 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_dep_w_defaultValue = {"640.0"} |
Definition at line 73 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_device_classname = {"FakeDepthCameraDriver"} |
Definition at line 58 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_device_name = {"fakeDepthCamera"} |
Definition at line 59 of file FakeDepthCameraDriver_ParamsParser.h.
bool FakeDepthCameraDriver_ParamsParser::m_parser_is_strict = false |
Definition at line 60 of file FakeDepthCameraDriver_ParamsParser.h.
const parser_version_type FakeDepthCameraDriver_ParamsParser::m_parser_version = {} |
Definition at line 66 of file FakeDepthCameraDriver_ParamsParser.h.
std::string FakeDepthCameraDriver_ParamsParser::m_provided_configuration |
Definition at line 68 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_rgb_h = {480.0} |
Definition at line 82 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_rgb_h_defaultValue = {"480.0"} |
Definition at line 70 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_rgb_Hfov = {36.0} |
Definition at line 88 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_rgb_Hfov_defaultValue = {"36.0"} |
Definition at line 76 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_rgb_Vfov = {50.0} |
Definition at line 87 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_rgb_Vfov_defaultValue = {"50.0"} |
Definition at line 75 of file FakeDepthCameraDriver_ParamsParser.h.
double FakeDepthCameraDriver_ParamsParser::m_rgb_w = {640.0} |
Definition at line 83 of file FakeDepthCameraDriver_ParamsParser.h.
const std::string FakeDepthCameraDriver_ParamsParser::m_rgb_w_defaultValue = {"640.0"} |
Definition at line 71 of file FakeDepthCameraDriver_ParamsParser.h.