YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeMotionControl_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 (1.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 Mar 7 17:59:40 2024
12
13
14#ifndef FAKEMOTIONCONTROL_PARAMSPARSER_H
15#define FAKEMOTIONCONTROL_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
50{
51public:
53 ~FakeMotionControl_ParamsParser() override = default;
54
55public:
56 const std::string m_device_classname = {"FakeMotionControl"};
57 const std::string m_device_name = {"fakeMotionControl"};
58 bool m_parser_is_strict = false;
60 {
61 int major = 1;
62 int minor = 0;
63 };
65
66 const std::string m_GENERAL_Joints_defaultValue = {"1"};
67 const std::string m_GENERAL_AxisMap_defaultValue = {""};
68 const std::string m_GENERAL_AxisName_defaultValue = {""};
69 const std::string m_GENERAL_AxisType_defaultValue = {""};
70 const std::string m_GENERAL_ampsToSensor_defaultValue = {""};
71 const std::string m_GENERAL_fullscalePWM_defaultValue = {""};
72 const std::string m_GENERAL_Encoder_defaultValue = {""};
73 const std::string m_LIMITS_Max_defaultValue = {""};
74 const std::string m_LIMITS_Min_defaultValue = {""};
75
77 std::vector<int> m_GENERAL_AxisMap = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
78 std::vector<std::string> m_GENERAL_AxisName = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
79 std::vector<std::string> m_GENERAL_AxisType = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
80 std::vector<double> m_GENERAL_ampsToSensor = {}; //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 std::vector<double> m_GENERAL_fullscalePWM = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
82 std::vector<int> m_GENERAL_Encoder = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
83 std::vector<double> m_LIMITS_Max = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
84 std::vector<double> m_LIMITS_Min = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
85
86 bool parseParams(const yarp::os::Searchable & config) override;
87 std::string getDeviceClassName() const override { return m_device_classname; }
88 std::string getDeviceName() const override { return m_device_name; }
89 std::string getDocumentationOfDeviceParams() const override;
90 std::vector<std::string> getListOfParams() const override;
91};
92
93#endif
This class is the parameters parser for class FakeMotionControl.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
~FakeMotionControl_ParamsParser() override=default
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
std::string getDeviceName() const override
Get the name of the device (i.e.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's 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