kinematics-dynamics
Loading...
Searching...
No Matches
KdlTreeSolver_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:50:24 2026
12
13
14#ifndef KDLTREESOLVER_PARAMSPARSER_H
15#define KDLTREESOLVER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
53class KdlTreeSolver_ParamsParser : public yarp::dev::IDeviceDriverParams
54{
55public:
57 ~KdlTreeSolver_ParamsParser() override = default;
58
59public:
60 const std::string m_device_classname = {"KdlTreeSolver"};
61 const std::string m_device_name = {"KdlTreeSolver"};
62 bool m_parser_is_strict = false;
64 {
65 int major = 2;
66 int minor = 0;
67 };
68 const parser_version_type m_parser_version = {};
69
70 std::string m_provided_configuration;
71
72 const std::string m_kinematics_defaultValue = {""};
73 const std::string m_gravity_defaultValue = {"(0.0 0.0 9.81)"};
74 const std::string m_ikPos_defaultValue = {"nrjl"};
75 const std::string m_epsPos_defaultValue = {"1e-5"};
76 const std::string m_maxIterPos_defaultValue = {"1000"};
77 const std::string m_vTranslMax_defaultValue = {"1.0"};
78 const std::string m_vRotMax_defaultValue = {"50.0"};
79 const std::string m_lambda_defaultValue = {"0.01"};
80 const std::string m_weightsJS_defaultValue = {""};
81 const std::string m_weightsTS_defaultValue = {""};
82 const std::string m_mins_defaultValue = {""};
83 const std::string m_maxs_defaultValue = {""};
84 const std::string m_maxvels_defaultValue = {""};
85
86 std::string m_kinematics = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
87 std::vector<double> m_gravity = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
88 std::string m_ikPos = {"nrjl"};
89 double m_epsPos = {1e-5};
90 int m_maxIterPos = {1000};
91 double m_vTranslMax = {1.0};
92 double m_vRotMax = {50.0};
93 double m_lambda = {0.01};
94 std::vector<double> m_weightsJS = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
95 std::vector<double> m_weightsTS = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
96 std::vector<double> m_mins = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
97 std::vector<double> m_maxs = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
98 std::vector<double> m_maxvels = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
99
100 bool parseParams(const yarp::os::Searchable & config) override;
101 std::string getDeviceClassName() const override { return m_device_classname; }
102 std::string getDeviceName() const override { return m_device_name; }
103 std::string getDocumentationOfDeviceParams() const override;
104 std::vector<std::string> getListOfParams() const override;
105 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
106 std::string getConfiguration() const override;
107};
108
109#endif
Definition KdlTreeSolver_ParamsParser.h:54
Definition KdlTreeSolver_ParamsParser.h:64