YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeFrameGrabber_ParamsParser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6
7// Generated by yarpDeviceParamParserGenerator (2.0)
8// This is an automatically generated file. Please do not edit it.
9// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.
10
11// Generated on: Thu May 22 11:32:33 2025
12
13
14#ifndef FAKEFRAMEGRABBER_PARAMSPARSER_H
15#define FAKEFRAMEGRABBER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
69{
70public:
72 ~FakeFrameGrabber_ParamsParser() override = default;
73
74public:
75 const std::string m_device_classname = {"FakeFrameGrabber"};
76 const std::string m_device_name = {"fakeFrameGrabber"};
77 bool m_parser_is_strict = false;
79 {
80 int major = 2;
81 int minor = 0;
82 };
84
86
87 const std::string m_width_defaultValue = {"320"};
88 const std::string m_height_defaultValue = {"240"};
89 const std::string m_horizontalFov_defaultValue = {"1.0"};
90 const std::string m_verticalFov_defaultValue = {"2.0"};
91 const std::string m_fakeFrameGrabber_rpc_port_defaultValue = {"/fakeFrameGrabber/rpc"};
92 const std::string m_mirror_defaultValue = {"false"};
93 const std::string m_syncro_defaultValue = {"false"};
94 const std::string m_physFocalLength_defaultValue = {"3.0"};
95 const std::string m_focalLengthX_defaultValue = {"4.0"};
96 const std::string m_focalLengthY_defaultValue = {"5.0"};
97 const std::string m_principalPointX_defaultValue = {"6.0"};
98 const std::string m_principalPointY_defaultValue = {"7.0"};
99 const std::string m_distortionModel_defaultValue = {"FishEye"};
100 const std::string m_k1_defaultValue = {"8.0"};
101 const std::string m_k2_defaultValue = {"9.0"};
102 const std::string m_k3_defaultValue = {"10.0"};
103 const std::string m_t1_defaultValue = {"11.0"};
104 const std::string m_t2_defaultValue = {"12.0"};
105 const std::string m_freq_defaultValue = {"0"};
106 const std::string m_period_defaultValue = {"0"};
107 const std::string m_mode_defaultValue = {"[line]"};
108 const std::string m_src_defaultValue = {""};
109 const std::string m_add_timestamp_defaultValue = {"false"};
110 const std::string m_add_noise_defaultValue = {"false"};
111 const std::string m_bayer_defaultValue = {"false"};
112 const std::string m_mono_defaultValue = {"false"};
113 const std::string m_snr_defaultValue = {"0.5"};
114 const std::string m_rectificationMatrix_defaultValue = {"(1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0)"};
115
116 int m_width = {320};
117 int m_height = {240};
118 double m_horizontalFov = {1.0};
119 double m_verticalFov = {2.0};
120 std::string m_fakeFrameGrabber_rpc_port = {"/fakeFrameGrabber/rpc"};
121 bool m_mirror = {false};
122 bool m_syncro = {false};
123 double m_physFocalLength = {3.0};
124 double m_focalLengthX = {4.0};
125 double m_focalLengthY = {5.0};
126 double m_principalPointX = {6.0};
127 double m_principalPointY = {7.0};
128 std::string m_distortionModel = {"FishEye"};
129 double m_k1 = {8.0};
130 double m_k2 = {9.0};
131 double m_k3 = {10.0};
132 double m_t1 = {11.0};
133 double m_t2 = {12.0};
134 double m_freq = {0};
135 double m_period = {0};
136 std::string m_mode = {"[line]"};
137 std::string m_src = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
138 bool m_add_timestamp = {false};
139 bool m_add_noise = {false};
140 bool m_bayer = {false};
141 bool m_mono = {false};
142 double m_snr = {0.5};
143 std::vector<double> m_rectificationMatrix = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
144
145 bool parseParams(const yarp::os::Searchable & config) override;
146 std::string getDeviceClassName() const override { return m_device_classname; }
147 std::string getDeviceName() const override { return m_device_name; }
148 std::string getDocumentationOfDeviceParams() const override;
149 std::vector<std::string> getListOfParams() const override;
150 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
151 std::string getConfiguration() const override;
152};
153
154#endif
This class is the parameters parser for class FakeFrameGrabber.
~FakeFrameGrabber_ParamsParser() override=default
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
std::string getConfiguration() const override
Return the configuration of the device.
std::string getDeviceName() const override
Get the name of the device (i.e.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
An interface for the management of the parameters of a DeviceDriver.
A base class for nested structures that can be searched.
Definition Searchable.h:31