YARP
Yet Another Robot Platform
RGBDSensorParamParser.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #include <vector>
10 
11 #include <yarp/os/Searchable.h>
12 #include <yarp/os/Value.h>
13 #include <yarp/sig/Matrix.h>
15 #include <yarp/dev/api.h>
16 
17 #ifndef YARP_DEV_RGBDSENSORPARAMPARSER_H
18 #define YARP_DEV_RGBDSENSORPARAMPARSER_H
19 
20 namespace yarp {
21 namespace dev {
22 
28 {
29 public:
30 
31 #ifndef YARP_NO_DEPRECATED // Since YARP 3.2.0
32  YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::sig::IntrinsicParams instead") yarp::sig::IntrinsicParams IntrinsicParams;
33 #endif
40  {
44  RGBDParam() : name("unknown"), isSetting(false), isDescription(false), size(1)
45  {
46  val.resize(size);
47  }
48 
54  RGBDParam(const std::string& _name, const int _size) : name(_name), isSetting(false),
55  isDescription(false), size(_size)
56  {
57  val.resize(size);
58  }
59 
60 
62  bool isSetting;
64  size_t size;
65 
66  YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(std::vector<yarp::os::Value>) val;
67  };
68 
69 
73  RGBDSensorParamParser(): depthIntrinsic(), rgbIntrinsic(),
74  transformationMatrix(4,4), isOptionalExtrinsic(true) {
75  transformationMatrix.eye();
76  }
77 
85  bool parseParam(const yarp::os::Searchable& config, std::vector<RGBDParam *> &params);
86 
91 };
92 
93 } // dev
94 } // yarp
95 
96 #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:69
A class for a Matrix.
Definition: Matrix.h:46
The main, catch-all namespace for YARP.
Definition: environment.h:18
RGBDParam(const std::string &_name, const int _size)
RGBDParam.
RGBDParam()
RGBDParam, default constructor.
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:339
#define YARP_DEPRECATED_TYPEDEF_MSG(x)
Definition: api.h:102
#define YARP_dev_API
Definition: api.h:19