yarp-devices
Loading...
Searching...
No Matches
Wiimote_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:41:45 2026
12
13
14#ifndef WIIMOTE_PARAMSPARSER_H
15#define WIIMOTE_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
47class Wiimote_ParamsParser : public yarp::dev::IDeviceDriverParams
48{
49public:
51 ~Wiimote_ParamsParser() override = default;
52
53public:
54 const std::string m_device_classname = {"Wiimote"};
55 const std::string m_device_name = {"Wiimote"};
56 bool m_parser_is_strict = false;
58 {
59 int major = 2;
60 int minor = 0;
61 };
62 const parser_version_type m_parser_version = {};
63
64 std::string m_provided_configuration;
65
66 const std::string m_deviceId_defaultValue = {"1"};
67 const std::string m_calibZeroX_defaultValue = {"-30"};
68 const std::string m_calibZeroY_defaultValue = {"-22"};
69 const std::string m_calibZeroZ_defaultValue = {"72"};
70 const std::string m_calibOneX_defaultValue = {"69"};
71 const std::string m_calibOneY_defaultValue = {"-123"};
72 const std::string m_calibOneZ_defaultValue = {"-25"};
73
74 int m_deviceId = {1};
75 int m_calibZeroX = {-30};
76 int m_calibZeroY = {-22};
77 int m_calibZeroZ = {72};
78 int m_calibOneX = {69};
79 int m_calibOneY = {-123};
80 int m_calibOneZ = {-25};
81
82 bool parseParams(const yarp::os::Searchable & config) override;
83 std::string getDeviceClassName() const override { return m_device_classname; }
84 std::string getDeviceName() const override { return m_device_name; }
85 std::string getDocumentationOfDeviceParams() const override;
86 std::vector<std::string> getListOfParams() const override;
87 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
88 std::string getConfiguration() const override;
89};
90
91#endif
Definition Wiimote_ParamsParser.h:48
Definition Wiimote_ParamsParser.h:58