YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeBot_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:30 2025
12
13
14#ifndef FAKEBOT_PARAMSPARSER_H
15#define FAKEBOT_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
47{
48public:
50 ~FakeBot_ParamsParser() override = default;
51
52public:
53 const std::string m_device_classname = {"FakeBot"};
54 const std::string m_device_name = {"fakebot"};
55 bool m_parser_is_strict = false;
57 {
58 int major = 2;
59 int minor = 0;
60 };
62
64
65 const std::string m_background_defaultValue = {"textures/back.ppm"};
66 const std::string m_target_defaultValue = {"textures/fore.ppm"};
67 const std::string m_noise_defaultValue = {"0.05"};
68 const std::string m_sx_defaultValue = {"1.0"};
69 const std::string m_sy_defaultValue = {"1.0"};
70 const std::string m_lifetime_defaultValue = {"-1.0"};
71
72 std::string m_background = {"textures/back.ppm"};
73 std::string m_target = {"textures/fore.ppm"};
74 double m_noise = {0.05};
75 double m_sx = {1.0};
76 double m_sy = {1.0};
77 double m_lifetime = {-1.0};
78
79 bool parseParams(const yarp::os::Searchable & config) override;
80 std::string getDeviceClassName() const override { return m_device_classname; }
81 std::string getDeviceName() const override { return m_device_name; }
82 std::string getDocumentationOfDeviceParams() const override;
83 std::vector<std::string> getListOfParams() const override;
84 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
85 std::string getConfiguration() const override;
86};
87
88#endif
This class is the parameters parser for class FakeBot.
std::string getDeviceName() const override
Get the name of the device (i.e.
const std::string m_sy_defaultValue
const std::string m_sx_defaultValue
const std::string m_noise_defaultValue
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
const std::string m_device_classname
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
~FakeBot_ParamsParser() override=default
std::string getConfiguration() const override
Return the configuration of the device.
const std::string m_lifetime_defaultValue
const parser_version_type m_parser_version
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
const std::string m_target_defaultValue
const std::string m_background_defaultValue
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
const std::string m_device_name
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