YARP
Yet Another Robot Platform
IRgbVisualParams.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 #ifndef YARP_DEV_IRGBVISUALPARAMS_H
7 #define YARP_DEV_IRGBVISUALPARAMS_H
8 
9 #include <yarp/dev/api.h>
10 
11 #include <yarp/os/Property.h>
12 
13 #include <yarp/sig/Image.h>
14 #include <yarp/sig/Vector.h>
15 
16 namespace yarp {
17 namespace dev {
18 
28 {
29  int width {0};
30  int height {0};
31  double framerate {0.0};
33 };
35 
42 {
43 public:
44  virtual ~IRgbVisualParams();
45 
50  virtual int getRgbHeight() = 0;
51 
56  virtual int getRgbWidth() = 0;
57 
64  {
65  YARP_UNUSED(configurations);
66  return false;
67  }
68 
75  virtual bool getRgbResolution(int& width, int& height)
76  {
77  YARP_UNUSED(width);
78  YARP_UNUSED(height);
79  return false;
80  }
81 
88  virtual bool setRgbResolution(int width, int height) = 0;
89 
97  virtual bool getRgbFOV(double& horizontalFov, double& verticalFov) = 0;
98 
106  virtual bool setRgbFOV(double horizontalFov, double verticalFov) = 0;
107 
134  virtual bool getRgbIntrinsicParam(yarp::os::Property& intrinsic) = 0;
135 
142  virtual bool getRgbMirroring(bool& mirror) = 0;
143 
150  virtual bool setRgbMirroring(bool mirror) = 0;
151 };
152 
153 } // namespace dev
154 } // namespace yarp
155 
156 #endif // YARP_DEV_IRGBVISUALPARAMS_H
contains the definition of a Vector type
An interface for retrieving intrinsic parameter from a rgb camera.
virtual bool getRgbSupportedConfigurations(yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations)
Get the possible configurations of the camera.
virtual bool setRgbMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual bool getRgbIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the rgb camera.
virtual bool getRgbResolution(int &width, int &height)
Get the resolution of the rgb image from the camera.
virtual bool setRgbResolution(int width, int height)=0
Set the resolution of the rgb image from the camera.
virtual bool getRgbMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual int getRgbHeight()=0
Return the height of each frame.
virtual bool getRgbFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the rgb camera.
virtual bool setRgbFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the rgb camera.
virtual int getRgbWidth()=0
Return the width of each frame.
A class for storing options and configuration information.
Definition: Property.h:34
YarpVocabPixelTypesEnum
Definition: Image.h:43
@ VOCAB_PIXEL_INVALID
Definition: Image.h:44
The main, catch-all namespace for YARP.
Definition: dirs.h:16
Struct describing a possible camera configuration.
YarpVocabPixelTypesEnum pixelCoding
#define YARP_END_PACK
Ends 1 byte packing for structs/classes.
Definition: system.h:191
#define YARP_BEGIN_PACK
Starts 1 byte packing for structs/classes.
Definition: system.h:190
#define YARP_UNUSED(var)
Definition: api.h:162
#define YARP_dev_API
Definition: api.h:18