YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
15#include <yarp/os/Portable.h>
16
17#include <yarp/sig/Image.h>
19#include <yarp/sig/Vector.h>
21
23
24namespace yarp::dev {
25
27
34{
35public:
37
42 virtual int getRgbHeight() = 0;
43
48 virtual int getRgbWidth() = 0;
49
55 virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfigData>& configurations) = 0;
56
63 virtual yarp::dev::ReturnValue getRgbResolution(int& width, int& height) = 0;
64
71 virtual yarp::dev::ReturnValue setRgbResolution(int width, int height) = 0;
72
80 virtual yarp::dev::ReturnValue getRgbFOV(double& horizontalFov, double& verticalFov) = 0;
81
89 virtual yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov) = 0;
90
98
105 virtual yarp::dev::ReturnValue getRgbMirroring(bool& mirror) = 0;
106
113 virtual yarp::dev::ReturnValue setRgbMirroring(bool mirror) = 0;
114};
115
116} // namespace yarp::dev
117
118#endif // YARP_DEV_IRGBVISUALPARAMS_H
contains the definition of a Vector type
An interface for retrieving intrinsic parameter from a rgb camera.
virtual yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue setRgbMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue getRgbFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue getRgbIntrinsicParam(yarp::sig::IntrinsicParams &intrinsic)=0
Get the intrinsic parameters of the rgb camera.
virtual int getRgbHeight()=0
Return the height of each frame.
virtual yarp::dev::ReturnValue getRgbMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfigData > &configurations)=0
Get the possible configurations of the camera.
virtual yarp::dev::ReturnValue setRgbResolution(int width, int height)=0
Set the resolution of the rgb image from the camera.
virtual yarp::dev::ReturnValue getRgbResolution(int &width, int &height)=0
Get the resolution of the rgb image from the camera.
virtual int getRgbWidth()=0
Return the width of each frame.
For streams capable of holding different kinds of content, check what they actually have.
CameraConfigData CameraConfig
The IntrinsicParams struct to handle the intrinsic parameter of cameras(RGB and RGBD either).
#define YARP_dev_API
Definition api.h:18