yarp-devices
Loading...
Searching...
No Matches
CanBusHico_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 Apr 20 14:33:40 2025
12
13
14#ifndef CANBUSHICO_PARAMSPARSER_H
15#define CANBUSHICO_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
49class CanBusHico_ParamsParser : public yarp::dev::IDeviceDriverParams
50{
51public:
53 ~CanBusHico_ParamsParser() override = default;
54
55public:
56 const std::string m_device_classname = {"CanBusHico"};
57 const std::string m_device_name = {"CanBusHico"};
58 bool m_parser_is_strict = false;
60 {
61 int major = 1;
62 int minor = 0;
63 };
64 const parser_version_type m_parser_version = {};
65
66 const std::string m_port_defaultValue = {"/dev/can0"};
67 const std::string m_bitrate_defaultValue = {"1000000"};
68 const std::string m_blockingMode_defaultValue = {"true"};
69 const std::string m_allowPermissive_defaultValue = {"false"};
70 const std::string m_rxTimeoutMs_defaultValue = {"1"};
71 const std::string m_txTimeoutMs_defaultValue = {"0"};
72 const std::string m_filterConfiguration_defaultValue = {"disabled"};
73 const std::string m_preserveFilters_defaultValue = {"true"};
74 const std::string m_filteredIds_defaultValue = {""};
75
76 std::string m_port = {"/dev/can0"};
77 int m_bitrate = {1000000};
78 bool m_blockingMode = {true};
79 bool m_allowPermissive = {false};
80 int m_rxTimeoutMs = {1};
81 int m_txTimeoutMs = {0};
82 std::string m_filterConfiguration = {"disabled"};
83 bool m_preserveFilters = {true};
84 std::vector<int> m_filteredIds = {}; //The default value of this list is an empty list. It is highly recommended to provide a suggested value also for optional string parameters.
85
86 bool parseParams(const yarp::os::Searchable & config) override;
87 std::string getDeviceClassName() const override { return m_device_classname; }
88 std::string getDeviceName() const override { return m_device_name; }
89 std::string getDocumentationOfDeviceParams() const override;
90 std::vector<std::string> getListOfParams() const override;
91};
92
93#endif
Definition CanBusHico_ParamsParser.h:50
Definition CanBusHico_ParamsParser.h:60