YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeLaser_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.2)
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_GENERATION is ON.
10
11// Generated on: Tue Jul 28 23:33:14 2026
12
13
14#ifndef FAKELASER_PARAMSPARSER_H
15#define FAKELASER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
53{
54public:
56 ~FakeLaser_ParamsParser() override = default;
57
58public:
59 const std::string m_device_classname = {"FakeLaser"};
60 const std::string m_device_name = {"fakeLaser"};
61 bool m_parser_is_strict = false;
63 {
64 int major = 2;
65 int minor = 2;
66 };
68
70
71 const std::string m_test_defaultValue = {"use_pattern"};
72 const std::string m_rpc_test_port_defaultValue = {"/fakeLaser/rpc:i"};
73 const std::string m_localization_port_defaultValue = {"/fakeLaser/location:i"};
74 const std::string m_localization_server_defaultValue = {"/localizationServer"};
75 const std::string m_localization_client_defaultValue = {"/fakeLaser/localizationClient"};
76 const std::string m_localization_device_defaultValue = {"localization2DClient"};
77 const std::string m_MAP_MODE_map_file_defaultValue = {""};
78 const std::string m_MAP_MODE_map_context_defaultValue = {""};
79 const std::string m_clip_max_defaultValue = {"3.5"};
80 const std::string m_clip_min_defaultValue = {"0.1"};
81 const std::string m_GENERAL_period_defaultValue = {"0.02"};
83
84 std::string m_test = {"use_pattern"};
85 std::string m_rpc_test_port = {"/fakeLaser/rpc:i"};
86 std::string m_localization_port = {"/fakeLaser/location:i"};
87 std::string m_localization_server = {"/localizationServer"};
88 std::string m_localization_client = {"/fakeLaser/localizationClient"};
89 std::string m_localization_device = {"localization2DClient"};
90 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.
91 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.
92 double m_clip_max = {3.5};
93 double m_clip_min = {0.1};
94 double m_GENERAL_period = {0.02};
96
97 bool parseParams(const yarp::os::Searchable & config) override;
98 std::string getDeviceClassName() const override { return m_device_classname; }
99 std::string getDeviceName() const override { return m_device_name; }
100 std::string getDocumentationOfDeviceParams() const override;
101 std::vector<std::string> getListOfParams() const override;
102 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
103 std::string getConfiguration() const override;
104};
105
106#endif
This class is the parameters parser for class FakeLaser.
const std::string m_localization_client_defaultValue
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
const std::string m_GENERAL_period_defaultValue
const std::string m_clip_max_defaultValue
const std::string m_MAP_MODE_map_context_defaultValue
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
~FakeLaser_ParamsParser() override=default
const std::string m_rpc_test_port_defaultValue
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
const std::string m_test_defaultValue
const std::string m_clip_min_defaultValue
const std::string m_localization_server_defaultValue
const std::string m_MAP_MODE_map_file_defaultValue
const std::string m_CONSTANT_MODE_const_distance_defaultValue
std::string getDeviceName() const override
Get the name of the device (i.e.
const std::string m_localization_device_defaultValue
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
const std::string m_device_classname
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
const std::string m_localization_port_defaultValue
const parser_version_type m_parser_version
std::string getConfiguration() const override
Return the configuration of the device.
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