YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Rangefinder2DTransformer_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:47 2025
12
13
14#ifndef RANGEFINDER2DTRANSFORMER_PARAMSPARSER_H
15#define RANGEFINDER2DTRANSFORMER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
46{
47public:
50
51public:
52 const std::string m_device_classname = {"Rangefinder2DTransformer"};
53 const std::string m_device_name = {"rangefinder2DTransformer"};
54 bool m_parser_is_strict = false;
56 {
57 int major = 2;
58 int minor = 0;
59 };
61
63
64 const std::string m_device_position_x_defaultValue = {"0"};
65 const std::string m_device_position_y_defaultValue = {"0"};
66 const std::string m_device_position_theta_defaultValue = {"0"};
67 const std::string m_laser_frame_name_defaultValue = {""};
68 const std::string m_robot_frame_name_defaultValue = {""};
69
70 double m_device_position_x = {0};
71 double m_device_position_y = {0};
73 std::string m_laser_frame_name = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
74 std::string m_robot_frame_name = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
75
76 bool parseParams(const yarp::os::Searchable & config) override;
77 std::string getDeviceClassName() const override { return m_device_classname; }
78 std::string getDeviceName() const override { return m_device_name; }
79 std::string getDocumentationOfDeviceParams() const override;
80 std::vector<std::string> getListOfParams() const override;
81 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
82 std::string getConfiguration() const override;
83};
84
85#endif
This class is the parameters parser for class Rangefinder2DTransformer.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
std::string getConfiguration() const override
Return the configuration of the device.
~Rangefinder2DTransformer_ParamsParser() override=default
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.
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