yarp-devices
Loading...
Searching...
No Matches
Jr3Mbed_ParamsParser.h
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: Sun May 3 12:41:45 2026
12
13
14#ifndef JR3MBED_PARAMSPARSER_H
15#define JR3MBED_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
48class Jr3Mbed_ParamsParser : public yarp::dev::IDeviceDriverParams
49{
50public:
52 ~Jr3Mbed_ParamsParser() override = default;
53
54public:
55 const std::string m_device_classname = {"Jr3Mbed"};
56 const std::string m_device_name = {"Jr3Mbed"};
57 bool m_parser_is_strict = false;
59 {
60 int major = 2;
61 int minor = 0;
62 };
63 const parser_version_type m_parser_version = {};
64
65 std::string m_provided_configuration;
66
67 const std::string m_canId_defaultValue = {"0"};
68 const std::string m_name_defaultValue = {""};
69 const std::string m_filter_defaultValue = {"0.0"};
70 const std::string m_ackTimeout_defaultValue = {"0.25"};
71 const std::string m_fullScales_defaultValue = {""};
72 const std::string m_asyncPeriod_defaultValue = {"0.0"};
73 const std::string m_monitorPeriod_defaultValue = {"0.1"};
74 const std::string m_diagnosticsPeriod_defaultValue = {"0.0"};
75
76 int m_canId = {0};
77 std::string m_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.
78 double m_filter = {0.0};
79 double m_ackTimeout = {0.25};
80 std::vector<int> m_fullScales = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
81 double m_asyncPeriod = {0.0};
82 double m_monitorPeriod = {0.1};
83 double m_diagnosticsPeriod = {0.0};
84
85 bool parseParams(const yarp::os::Searchable & config) override;
86 std::string getDeviceClassName() const override { return m_device_classname; }
87 std::string getDeviceName() const override { return m_device_name; }
88 std::string getDocumentationOfDeviceParams() const override;
89 std::vector<std::string> getListOfParams() const override;
90 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
91 std::string getConfiguration() const override;
92};
93
94#endif
Definition Jr3Mbed_ParamsParser.h:49
Definition Jr3Mbed_ParamsParser.h:59