vision
Loading...
Searching...
No Matches
ColorRegionDetector_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: Thu Apr 17 19:21:21 2025
12
13
14#ifndef COLORREGIONDETECTOR_PARAMSPARSER_H
15#define COLORREGIONDETECTOR_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
44class ColorRegionDetector_ParamsParser : public yarp::dev::IDeviceDriverParams
45{
46public:
48 ~ColorRegionDetector_ParamsParser() override = default;
49
50public:
51 const std::string m_device_classname = {"ColorRegionDetector"};
52 const std::string m_device_name = {"ColorRegionDetector"};
53 bool m_parser_is_strict = false;
55 {
56 int major = 1;
57 int minor = 0;
58 };
59 const parser_version_type m_parser_version = {};
60
61 const std::string m_algorithm_defaultValue = {"blueMinusRed"};
62 const std::string m_morphClosing_defaultValue = {"2.0"};
63 const std::string m_threshold_defaultValue = {"55"};
64 const std::string m_maxNumBlobs_defaultValue = {"1"};
65
66 std::string m_algorithm = {"blueMinusRed"};
67 double m_morphClosing = {2.0};
68 int m_threshold = {55};
69 int m_maxNumBlobs = {1};
70
71 bool parseParams(const yarp::os::Searchable & config) override;
72 std::string getDeviceClassName() const override { return m_device_classname; }
73 std::string getDeviceName() const override { return m_device_name; }
74 std::string getDocumentationOfDeviceParams() const override;
75 std::vector<std::string> getListOfParams() const override;
76};
77
78#endif
Definition ColorRegionDetector_ParamsParser.h:45
Definition ColorRegionDetector_ParamsParser.h:55