kinematics-dynamics
Loading...
Searching...
No Matches
KdlSolver_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: Sat Apr 19 00:49:21 2025
12
13
14#ifndef KDLSOLVER_PARAMSPARSER_H
15#define KDLSOLVER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
56class KdlSolver_ParamsParser : public yarp::dev::IDeviceDriverParams
57{
58public:
60 ~KdlSolver_ParamsParser() override = default;
61
62public:
63 const std::string m_device_classname = {"KdlSolver"};
64 const std::string m_device_name = {"KdlSolver"};
65 bool m_parser_is_strict = false;
67 {
68 int major = 1;
69 int minor = 0;
70 };
71 const parser_version_type m_parser_version = {};
72
73 const std::string m_quiet_defaultValue = {"false"};
74 const std::string m_kinematics_defaultValue = {""};
75 const std::string m_gravity_defaultValue = {"(0.0 0.0 9.81)"};
76 const std::string m_ikPos_defaultValue = {"st"};
77 const std::string m_ikVel_defaultValue = {"pinv"};
78 const std::string m_epsPos_defaultValue = {"1e-5"};
79 const std::string m_maxIterPos_defaultValue = {"1000"};
80 const std::string m_epsVel_defaultValue = {"1e-5"};
81 const std::string m_maxIterVel_defaultValue = {"150"};
82 const std::string m_lambda_defaultValue = {"0.01"};
83 const std::string m_weightsLMA_defaultValue = {"(1.0 1.0 1.0 0.1 0.1 0.1)"};
84 const std::string m_weightsJS_defaultValue = {""};
85 const std::string m_weightsTS_defaultValue = {""};
86 const std::string m_invKinStrategy_defaultValue = {"leastOverallAngularDisplacement"};
87 const std::string m_mins_defaultValue = {""};
88 const std::string m_maxs_defaultValue = {""};
89
90 bool m_quiet = {false};
91 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.
92 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.
93 std::string m_ikPos = {"st"};
94 std::string m_ikVel = {"pinv"};
95 double m_epsPos = {1e-5};
96 int m_maxIterPos = {1000};
97 double m_epsVel = {1e-5};
98 int m_maxIterVel = {150};
99 double m_lambda = {0.01};
100 std::vector<double> m_weightsLMA = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
101 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.
102 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.
103 std::string m_invKinStrategy = {"leastOverallAngularDisplacement"};
104 std::vector<double> m_mins = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
105 std::vector<double> m_maxs = {}; //This default value is autogenerated. It is highly recommended to provide a suggested value also for mandatory parameters.
106
107 bool parseParams(const yarp::os::Searchable & config) override;
108 std::string getDeviceClassName() const override { return m_device_classname; }
109 std::string getDeviceName() const override { return m_device_name; }
110 std::string getDocumentationOfDeviceParams() const override;
111 std::vector<std::string> getListOfParams() const override;
112};
113
114#endif
Definition KdlSolver_ParamsParser.h:57
Definition KdlSolver_ParamsParser.h:67