YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
RGBDSensorParamParser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <vector>
7
9#include <yarp/os/Value.h>
10#include <yarp/sig/Matrix.h>
12#include <yarp/dev/api.h>
13
14#ifndef YARP_DEV_RGBDSENSORPARAMPARSER_H
15#define YARP_DEV_RGBDSENSORPARAMPARSER_H
16
17namespace yarp::dev {
18
24{
25public:
26
27#ifndef YARP_NO_DEPRECATED // Since YARP 3.2.0
28 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::sig::IntrinsicParams instead") yarp::sig::IntrinsicParams IntrinsicParams;
29#endif
36 {
40 RGBDParam() : name("unknown"), isSetting(false), isDescription(false), size(1)
41 {
42 val.resize(size);
43 }
44
50 RGBDParam(const std::string& _name, const int _size) : name(_name), isSetting(false),
51 isDescription(false), size(_size)
52 {
53 val.resize(size);
54 }
55
56
60 size_t size;
61
62 YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(std::vector<yarp::os::Value>) val;
63 };
64
65
69 RGBDSensorParamParser(): depthIntrinsic(), rgbIntrinsic(),
70 transformationMatrix(4,4), isOptionalExtrinsic(true) {
71 transformationMatrix.eye();
72 }
73
81 bool parseParam(const yarp::os::Searchable& config, std::vector<RGBDParam *> &params);
82
87};
88
89} // namespace yarp::dev
90
91#endif
contains the definition of a Matrix type
The RGBDSensorParamParser class.
RGBDSensorParamParser()
RGBDSensorParamParser, default constructor.
yarp::sig::IntrinsicParams rgbIntrinsic
yarp::sig::IntrinsicParams depthIntrinsic
A base class for nested structures that can be searched.
Definition Searchable.h:31
A class for a Matrix.
Definition Matrix.h:39
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
The main, catch-all namespace for YARP.
Definition dirs.h:16
RGBDParam(const std::string &_name, const int _size)
RGBDParam.
The IntrinsicParams struct to handle the intrinsic parameter of cameras(RGB and RGBD either).
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.
Definition system.h:338
#define YARP_DEPRECATED_TYPEDEF_MSG(x)
Definition api.h:99
#define YARP_dev_API
Definition api.h:18