YARP
Yet Another Robot Platform
IDepthVisualParams.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_IDEPTHVISUALPARAMS_H
7 #define YARP_DEV_IDEPTHVISUALPARAMS_H
8 
9 #include <yarp/dev/api.h>
10 #include <yarp/os/Property.h>
11 
12 namespace yarp {
13 namespace dev {
14 
21 {
22 public:
24 
29  virtual int getDepthHeight() = 0;
30 
35  virtual int getDepthWidth() = 0;
36 
43  virtual bool setDepthResolution(int width, int height) = 0;
44 
52  virtual bool getDepthFOV(double& horizontalFov, double& verticalFov) = 0;
53 
61  virtual bool setDepthFOV(double horizontalFov, double verticalFov) = 0;
62 
89  virtual bool getDepthIntrinsicParam(yarp::os::Property& intrinsic) = 0;
90 
95  virtual double getDepthAccuracy() = 0;
96 
102  virtual bool setDepthAccuracy(double accuracy) = 0;
103 
113  virtual bool getDepthClipPlanes(double& nearPlane, double& farPlane) = 0;
114 
124  virtual bool setDepthClipPlanes(double nearPlane, double farPlane) = 0;
125 
132  virtual bool getDepthMirroring(bool& mirror) = 0;
133 
140  virtual bool setDepthMirroring(bool mirror) = 0;
141 };
142 
143 } // namespace dev
144 } // namespace yarp
145 
146 #endif // YARP_DEV_IDEPTHVISUALPARAMS_H
An interface for retrieving intrinsic parameter from a depth camera.
virtual bool setDepthMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual double getDepthAccuracy()=0
Get the minimum detectable variation in distance [meter].
virtual bool setDepthAccuracy(double accuracy)=0
Set the minimum detectable variation in distance [meter] when possible.
virtual int getDepthWidth()=0
Return the height of each frame.
virtual bool getDepthIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the depth camera.
virtual bool getDepthFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the depth camera.
virtual bool setDepthFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the depth camera.
virtual bool setDepthClipPlanes(double nearPlane, double farPlane)=0
Set the clipping planes of the sensor.
virtual bool getDepthClipPlanes(double &nearPlane, double &farPlane)=0
Get the clipping planes of the sensor.
virtual bool getDepthMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual int getDepthHeight()=0
Return the height of each frame.
virtual bool setDepthResolution(int width, int height)=0
Set the resolution of the depth image from the camera.
A class for storing options and configuration information.
Definition: Property.h:34
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18