yarp-devices
Loading...
Searching...
No Matches
TechnosoftIpos_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 (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: Sun Apr 20 16:50:20 2025
12
13
14#ifndef TECHNOSOFTIPOS_PARAMSPARSER_H
15#define TECHNOSOFTIPOS_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
89class TechnosoftIpos_ParamsParser : public yarp::dev::IDeviceDriverParams
90{
91public:
93 ~TechnosoftIpos_ParamsParser() override = default;
94
95public:
96 const std::string m_device_classname = {"TechnosoftIpos"};
97 const std::string m_device_name = {"TechnosoftIpos"};
98 bool m_parser_is_strict = false;
100 {
101 int major = 1;
102 int minor = 0;
103 };
104 const parser_version_type m_parser_version = {};
105
106 const std::string m_canId_defaultValue = {""};
107 const std::string m_useEmbeddedPid_defaultValue = {"true"};
108 const std::string m_name_defaultValue = {""};
109 const std::string m_type_defaultValue = {""};
110 const std::string m_max_defaultValue = {""};
111 const std::string m_min_defaultValue = {""};
112 const std::string m_maxVel_defaultValue = {""};
113 const std::string m_refSpeed_defaultValue = {""};
114 const std::string m_refAcceleration_defaultValue = {""};
115 const std::string m_extraTr_defaultValue = {"1.0"};
116 const std::string m_samplingPeriod_defaultValue = {""};
117 const std::string m_reverse_defaultValue = {""};
118 const std::string m_heartbeatPeriod_defaultValue = {""};
119 const std::string m_syncPeriod_defaultValue = {""};
120 const std::string m_initialControlMode_defaultValue = {"idl"};
121 const std::string m_sdoTimeout_defaultValue = {"0.02"};
122 const std::string m_driveStateTimeout_defaultValue = {"2.0"};
123 const std::string m_tpdo1InhibitTime_defaultValue = {"0.0"};
124 const std::string m_tpdo1EventTimer_defaultValue = {"0.0"};
125 const std::string m_tpdo2InhibitTime_defaultValue = {"0.0"};
126 const std::string m_tpdo2EventTimer_defaultValue = {"0.0"};
127 const std::string m_monitorPeriod_defaultValue = {"0.0"};
128 const std::string m_driver_peakCurrent_defaultValue = {""};
129 const std::string m_motor_k_defaultValue = {""};
130 const std::string m_gearbox_tr_defaultValue = {""};
131 const std::string m_encoder_encoderPulses_defaultValue = {""};
132 const std::string m_ipMode_defaultValue = {"pt"};
133 const std::string m_ipPeriodMs_defaultValue = {"50"};
134 const std::string m_enableIp_defaultValue = {"false"};
135 const std::string m_enableCsv_defaultValue = {"false"};
136 const std::string m_initialInteractionMode_defaultValue = {"unkn"};
137 const std::string m_stiffness_defaultValue = {"0.0"};
138 const std::string m_damping_defaultValue = {"0.0"};
139 const std::string m_impedanceOffset_defaultValue = {"0.0"};
140 const std::string m_minStiffness_defaultValue = {"0.0"};
141 const std::string m_maxStiffness_defaultValue = {"0.0"};
142 const std::string m_minDamping_defaultValue = {"0.0"};
143 const std::string m_maxDamping_defaultValue = {"0.0"};
144 const std::string m_kp_defaultValue = {"0.0"};
145 const std::string m_ki_defaultValue = {"0.0"};
146 const std::string m_kd_defaultValue = {"0.0"};
147 const std::string m_maxInt_defaultValue = {"0.0"};
148 const std::string m_maxOutput_defaultValue = {"0.0"};
149 const std::string m_offset_defaultValue = {"0.0"};
150 const std::string m_scale_defaultValue = {"1.0"};
151 const std::string m_stictionUp_defaultValue = {"0.0"};
152 const std::string m_stictionDown_defaultValue = {"0.0"};
153 const std::string m_kff_defaultValue = {"0.0"};
154 const std::string m_errorLimit_defaultValue = {"0.0"};
155
156 int m_canId = {0}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
157 bool m_useEmbeddedPid = {true};
158 std::string m_name = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
159 std::string m_type = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
160 double m_max = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
161 double m_min = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
162 double m_maxVel = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
163 double m_refSpeed = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
164 double m_refAcceleration = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
165 double m_extraTr = {1.0};
166 double m_samplingPeriod = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
167 bool m_reverse = {false}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
168 double m_heartbeatPeriod = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
169 double m_syncPeriod = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
170 std::string m_initialControlMode = {"idl"};
171 double m_sdoTimeout = {0.02};
172 double m_driveStateTimeout = {2.0};
173 double m_tpdo1InhibitTime = {0.0};
174 double m_tpdo1EventTimer = {0.0};
175 double m_tpdo2InhibitTime = {0.0};
176 double m_tpdo2EventTimer = {0.0};
177 double m_monitorPeriod = {0.0};
178 double m_driver_peakCurrent = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
179 double m_motor_k = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
180 double m_gearbox_tr = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
181 double m_encoder_encoderPulses = {std::nan("1")}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
182 std::string m_ipMode = {"pt"};
183 int m_ipPeriodMs = {50};
184 bool m_enableIp = {false};
185 bool m_enableCsv = {false};
186 std::string m_initialInteractionMode = {"unkn"};
187 double m_stiffness = {0.0};
188 double m_damping = {0.0};
189 double m_impedanceOffset = {0.0};
190 double m_minStiffness = {0.0};
191 double m_maxStiffness = {0.0};
192 double m_minDamping = {0.0};
193 double m_maxDamping = {0.0};
194 double m_kp = {0.0};
195 double m_ki = {0.0};
196 double m_kd = {0.0};
197 double m_maxInt = {0.0};
198 double m_maxOutput = {0.0};
199 double m_offset = {0.0};
200 double m_scale = {1.0};
201 double m_stictionUp = {0.0};
202 double m_stictionDown = {0.0};
203 double m_kff = {0.0};
204 double m_errorLimit = {0.0};
205
206 bool parseParams(const yarp::os::Searchable & config) override;
207 std::string getDeviceClassName() const override { return m_device_classname; }
208 std::string getDeviceName() const override { return m_device_name; }
209 std::string getDocumentationOfDeviceParams() const override;
210 std::vector<std::string> getListOfParams() const override;
211};
212
213#endif
Definition TechnosoftIpos_ParamsParser.h:90
Definition TechnosoftIpos_ParamsParser.h:100