YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
xHandControlBoard_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 (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: Fri Apr 3 12:52:14 2026
12
13
14#ifndef XHANDCONTROLBOARD_PARAMSPARSER_H
15#define XHANDCONTROLBOARD_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
57{
58public:
60 ~xHandControlBoard_ParamsParser() override = default;
61
62public:
63 const std::string m_device_classname = {"xHandControlBoard"};
64 const std::string m_device_name = {"xHandControlBoard"};
65 bool m_parser_is_strict = false;
67 {
68 int major = 2;
69 int minor = 0;
70 };
72
74
75 const std::string m_connection_type_defaultValue = {"EtherCAT"};
76 const std::string m_RS485_port_defaultValue = {"/dev/ttyUSB0"};
77 const std::string m_RS485_baudrate_defaultValue = {"3000000"};
78 const std::string m_ETHERCAT_eth_ifname_defaultValue = {""};
79 const std::string m_PID_kp_defaultValue = {"225"};
80 const std::string m_PID_ki_defaultValue = {"0"};
81 const std::string m_PID_kd_defaultValue = {"12000"};
82 const std::string m_TORQUE_tor_max_defaultValue = {"350"};
83 const std::string m_MODE_mode_defaultValue = {"3"};
84 const std::string m_LIMITS_jntPosMin_defaultValue = {"(0.0 -60.0 -0.0 -5.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0)"};
85 const std::string m_LIMITS_jntPosMax_defaultValue = {"(90.0 90.0 90.0 17.0 110.0 110.0 110.0 110.0 110.0 110.0 110.0 110.0)"};
86 const std::string m_LIMITS_jntVelMin_defaultValue = {"(0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0)"};
87 const std::string m_LIMITS_jntVelMax_defaultValue = {"(100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0)"};
88 const std::string m_GENERAL_AxisName_defaultValue = {"(a a a a a a a a a a a a)"};
89 const std::string m_GENERAL_AxisType_defaultValue = {"(a a a a a a a a a a a a)"};
90 const std::string m_GENERAL_AxisMap_defaultValue = {"(0 0 0 0 0 0 0 0 0 0 0 0)"};
91
92 std::string m_connection_type = {"EtherCAT"};
93 std::string m_RS485_port = {"/dev/ttyUSB0"};
94 int m_RS485_baudrate = {3000000};
95 std::string m_ETHERCAT_eth_ifname = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
96 int m_PID_kp = {225};
97 int m_PID_ki = {0};
98 int m_PID_kd = {12000};
99 int m_TORQUE_tor_max = {350};
100 int m_MODE_mode = {3};
101 std::vector<double> m_LIMITS_jntPosMin = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
102 std::vector<double> m_LIMITS_jntPosMax = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
103 std::vector<double> m_LIMITS_jntVelMin = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
104 std::vector<double> m_LIMITS_jntVelMax = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
105 std::vector<std::string> m_GENERAL_AxisName = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
106 std::vector<std::string> m_GENERAL_AxisType = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
107 std::vector<int> m_GENERAL_AxisMap = { }; //Default values for lists are managed in the class constructor. It is highly recommended to provide a suggested value also for optional string parameters.
108
109 bool parseParams(const yarp::os::Searchable & config) override;
110 std::string getDeviceClassName() const override { return m_device_classname; }
111 std::string getDeviceName() const override { return m_device_name; }
112 std::string getDocumentationOfDeviceParams() const override;
113 std::vector<std::string> getListOfParams() const override;
114 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
115 std::string getConfiguration() const override;
116};
117
118#endif
This class is the parameters parser for class xHandControlBoard.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
~xHandControlBoard_ParamsParser() override=default
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 getConfiguration() const override
Return the configuration of the device.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
bool getParamValue(const std::string &paramName, std::string &paramValue) const override
Return the value (represented as a string) of the requested parameter.
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