YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeLaserWithMotor_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 FAKELASERWITHMOTOR_PARAMSPARSER_H
15#define FAKELASERWITHMOTOR_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
52{
53public:
56
57public:
58 const std::string m_device_classname = {"FakeLaserWithMotor"};
59 const std::string m_device_name = {"fakeLaserWithMotor"};
60 bool m_parser_is_strict = false;
62 {
63 int major = 2;
64 int minor = 0;
65 };
67
69
70 const std::string m_test_defaultValue = {"use_pattern"};
71 const std::string m_localization_port_defaultValue = {"/fakeLaser/location:i"};
72 const std::string m_localization_server_defaultValue = {"/localizationServer"};
73 const std::string m_localization_client_defaultValue = {"/fakeLaser/localizationClient"};
74 const std::string m_localization_device_defaultValue = {"localization2DClient"};
75 const std::string m_MAP_MODE_map_file_defaultValue = {""};
76 const std::string m_MAP_MODE_map_context_defaultValue = {""};
77 const std::string m_clip_max_defaultValue = {"3.5"};
78 const std::string m_clip_min_defaultValue = {"0.1"};
79 const std::string m_GENERAL_period_defaultValue = {"0.02"};
81
82 std::string m_test = {"use_pattern"};
83 std::string m_localization_port = {"/fakeLaser/location:i"};
84 std::string m_localization_server = {"/localizationServer"};
85 std::string m_localization_client = {"/fakeLaser/localizationClient"};
86 std::string m_localization_device = {"localization2DClient"};
87 std::string m_MAP_MODE_map_file = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
88 std::string m_MAP_MODE_map_context = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
89 double m_clip_max = {3.5};
90 double m_clip_min = {0.1};
91 double m_GENERAL_period = {0.02};
93
94 bool parseParams(const yarp::os::Searchable & config) override;
95 std::string getDeviceClassName() const override { return m_device_classname; }
96 std::string getDeviceName() const override { return m_device_name; }
97 std::string getDocumentationOfDeviceParams() const override;
98 std::vector<std::string> getListOfParams() const override;
99 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
100 std::string getConfiguration() const override;
101};
102
103#endif
This class is the parameters parser for class FakeLaserWithMotor.
~FakeLaserWithMotor_ParamsParser() override=default
std::string getConfiguration() const override
Return the configuration of the device.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
std::string getDeviceName() const override
Get the name of the device (i.e.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
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