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>
18#include <yarp/sig/Vector.h>
20
21namespace yarp::dev {
22
31{
32public:
33 CameraConfig() = default;
34 CameraConfig(int w, int h, double rate, YarpVocabPixelTypesEnum enc);
35
36 int width {0};
37 int height {0};
38 double framerate {0.0};
40
41 bool read(yarp::os::ConnectionReader& connection) override;
42 bool write(yarp::os::ConnectionWriter& connection) const override;
43};
44
51{
52public:
54
59 virtual int getRgbHeight() = 0;
60
65 virtual int getRgbWidth() = 0;
66
72 virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector<yarp::dev::CameraConfig>& configurations) = 0;
73
80 virtual yarp::dev::ReturnValue getRgbResolution(int& width, int& height) = 0;
81
88 virtual yarp::dev::ReturnValue setRgbResolution(int width, int height) = 0;
89
97 virtual yarp::dev::ReturnValue getRgbFOV(double& horizontalFov, double& verticalFov) = 0;
98
106 virtual yarp::dev::ReturnValue setRgbFOV(double horizontalFov, double verticalFov) = 0;
107
135
142 virtual yarp::dev::ReturnValue getRgbMirroring(bool& mirror) = 0;
143
150 virtual yarp::dev::ReturnValue setRgbMirroring(bool mirror) = 0;
151};
152
153} // namespace yarp::dev
154
155#endif // YARP_DEV_IRGBVISUALPARAMS_H
YarpVocabPixelTypesEnum
Definition Image.h:40
@ VOCAB_PIXEL_INVALID
Definition Image.h:41
contains the definition of a Vector type
Struct describing a possible camera configuration.
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 getRgbIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the rgb camera.
virtual yarp::dev::ReturnValue getRgbFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the rgb camera.
virtual yarp::dev::ReturnValue getRgbSupportedConfigurations(std::vector< yarp::dev::CameraConfig > &configurations)=0
Get the possible configurations of the 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 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.
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition Portable.h:25
A class for storing options and configuration information.
Definition Property.h:33
For streams capable of holding different kinds of content, check what they actually have.
constexpr char framerate[]
#define YARP_dev_API
Definition api.h:18