#include <messages/framegrabber_protocol/yarp/proto/framegrabber/RgbVisualParams_Forwarder.h>
Definition at line 14 of file RgbVisualParams_Forwarder.h.
◆ RgbVisualParams_Forwarder()
RgbVisualParams_Forwarder::RgbVisualParams_Forwarder |
( |
yarp::os::Port & |
port | ) |
|
◆ ~RgbVisualParams_Forwarder()
yarp::proto::framegrabber::RgbVisualParams_Forwarder::~RgbVisualParams_Forwarder |
( |
| ) |
|
|
overridedefault |
◆ getRgbFOV()
bool RgbVisualParams_Forwarder::getRgbFOV |
( |
double & |
horizontalFov, |
|
|
double & |
verticalFov |
|
) |
| |
|
overridevirtual |
Get the field of view (FOV) of the rgb camera.
- Parameters
-
horizontalFov | will return the value of the horizontal fov in degrees |
verticalFov | will return the value of the vertical fov in degrees |
- Returns
- true on success
Implements yarp::dev::IRgbVisualParams.
Definition at line 92 of file RgbVisualParams_Forwarder.cpp.
◆ getRgbHeight()
int RgbVisualParams_Forwarder::getRgbHeight |
( |
| ) |
|
|
overridevirtual |
◆ getRgbIntrinsicParam()
Get the intrinsic parameters of the rgb camera.
- Parameters
-
intrinsic | return a Property containing intrinsic parameters of the optical model of the camera. |
- Returns
- true if success
The yarp::os::Property describing the intrinsic parameters is expected to be in the form:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
physFocalLength | - | double | m | - | Yes | Physical focal length of the lens in meters | |
focalLengthX | - | double | pixel | - | Yes | Horizontal component of the focal length as a multiple of pixel width | |
focalLengthY | - | double | pixel | - | Yes | Vertical component of the focal length as a multiple of pixel height | |
principalPointX | - | double | pixel | - | Yes | X coordinate of the principal point | |
principalPointY | - | double | pixel | - | Yes | Y coordinate of the principal point | |
rectificationMatrix | - | 4x4 double matrix | - | - | Yes | Matrix that describes the lens' distortion | |
distortionModel | - | string | - | - | Yes | Reference to group of parameters describing the distortion model of the camera, example 'cameraDistortionModelGroup' | This is another group's name to be searched for in the config file |
cameraDistortionModelGroup | | | | | | | |
| name | string | - | - | Yes | Name of the distortion model, see notes | right now only 'plumb_bob' is supported |
| k1 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| k2 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| k3 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| t1 | double | - | - | Yes | Tangential distortion of the lens | |
| t2 | double | - | - | Yes | Tangential distortion of the lens | |
Implements yarp::dev::IRgbVisualParams.
Definition at line 125 of file RgbVisualParams_Forwarder.cpp.
◆ getRgbMirroring()
bool RgbVisualParams_Forwarder::getRgbMirroring |
( |
bool & |
mirror | ) |
|
|
overridevirtual |
◆ getRgbResolution()
bool RgbVisualParams_Forwarder::getRgbResolution |
( |
int & |
width, |
|
|
int & |
height |
|
) |
| |
|
overridevirtual |
◆ getRgbSupportedConfigurations()
◆ getRgbWidth()
int RgbVisualParams_Forwarder::getRgbWidth |
( |
| ) |
|
|
overridevirtual |
◆ setRgbFOV()
bool RgbVisualParams_Forwarder::setRgbFOV |
( |
double |
horizontalFov, |
|
|
double |
verticalFov |
|
) |
| |
|
overridevirtual |
Set the field of view (FOV) of the rgb camera.
- Parameters
-
horizontalFov | will set the value of the horizontal fov in degrees |
verticalFov | will set the value of the vertical fov in degrees |
- Returns
- true on success
Implements yarp::dev::IRgbVisualParams.
Definition at line 112 of file RgbVisualParams_Forwarder.cpp.
◆ setRgbMirroring()
bool RgbVisualParams_Forwarder::setRgbMirroring |
( |
bool |
mirror | ) |
|
|
overridevirtual |
◆ setRgbResolution()
bool RgbVisualParams_Forwarder::setRgbResolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
overridevirtual |
◆ m_port
yarp::os::Port& yarp::proto::framegrabber::RgbVisualParams_Forwarder::m_port |
|
protected |
The documentation for this class was generated from the following files: