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 (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 Jul 20 01:39:59 2025
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 = 1;
60 int minor = 0;
61 };
62 const parser_version_type m_parser_version = {};
63
64 const std::string m_deviceId_defaultValue = {"1"};
65 const std::string m_calibZeroX_defaultValue = {"-30"};
66 const std::string m_calibZeroY_defaultValue = {"-22"};
67 const std::string m_calibZeroZ_defaultValue = {"72"};
68 const std::string m_calibOneX_defaultValue = {"69"};
69 const std::string m_calibOneY_defaultValue = {"-123"};
70 const std::string m_calibOneZ_defaultValue = {"-25"};
71
72 int m_deviceId = {1};
73 int m_calibZeroX = {-30};
74 int m_calibZeroY = {-22};
75 int m_calibZeroZ = {72};
76 int m_calibOneX = {69};
77 int m_calibOneY = {-123};
78 int m_calibOneZ = {-25};
79
80 bool parseParams(const yarp::os::Searchable & config) override;
81 std::string getDeviceClassName() const override { return m_device_classname; }
82 std::string getDeviceName() const override { return m_device_name; }
83 std::string getDocumentationOfDeviceParams() const override;
84 std::vector<std::string> getListOfParams() const override;
85};
86
87#endif
Definition Wiimote_ParamsParser.h:48
Definition Wiimote_ParamsParser.h:58