YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
pylonCameraDriver.cpp File Reference
#include <opencv2/core/core_c.h>
#include <yarp/cv/Cv.h>
#include <yarp/os/LogComponent.h>
#include <yarp/os/Value.h>
#include <yarp/sig/ImageUtils.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <opencv2/opencv.hpp>
#include <opencv2/videoio.hpp>
#include "pylonCameraDriver.h"
+ Include dependency graph for pylonCameraDriver.cpp:

Go to the source code of this file.

Functions

double fromZeroOneToRange (cameraFeature_id_t feature, double value)
 
double fromRangeToZeroOne (cameraFeature_id_t feature, double value)
 
bool parseUint32Param (std::string param_name, std::uint32_t &param, yarp::os::Searchable &config)
 
bool parseFloat64Param (std::string param_name, double &param, yarp::os::Searchable &config)
 
bool parseStringParam (std::string param_name, std::string &param, yarp::os::Searchable &config)
 
bool parseBooleanParam (std::string param_name, bool &param, yarp::os::Searchable &config)
 

Variables

static const std::vector< cameraFeature_id_tsupported_features
 
static const std::vector< cameraFeature_id_tfeatures_with_auto {YARP_FEATURE_EXPOSURE, YARP_FEATURE_WHITE_BALANCE, YARP_FEATURE_GAIN}
 
static const std::map< cameraFeature_id_t, std::pair< double, double > > featureMinMax
 
static const std::map< double, introtationToCVRot {{90.0, ROTATE_90_CLOCKWISE}, {-90.0, ROTATE_90_COUNTERCLOCKWISE}, {180.0, ROTATE_180}}
 

Function Documentation

◆ fromRangeToZeroOne()

double fromRangeToZeroOne ( cameraFeature_id_t  feature,
double  value 
)

Definition at line 64 of file pylonCameraDriver.cpp.

◆ fromZeroOneToRange()

double fromZeroOneToRange ( cameraFeature_id_t  feature,
double  value 
)

Definition at line 58 of file pylonCameraDriver.cpp.

◆ parseBooleanParam()

bool parseBooleanParam ( std::string  param_name,
bool param,
yarp::os::Searchable config 
)

Definition at line 119 of file pylonCameraDriver.cpp.

◆ parseFloat64Param()

bool parseFloat64Param ( std::string  param_name,
double param,
yarp::os::Searchable config 
)

Definition at line 92 of file pylonCameraDriver.cpp.

◆ parseStringParam()

bool parseStringParam ( std::string  param_name,
std::string &  param,
yarp::os::Searchable config 
)

Definition at line 105 of file pylonCameraDriver.cpp.

◆ parseUint32Param()

bool parseUint32Param ( std::string  param_name,
std::uint32_t &  param,
yarp::os::Searchable config 
)

Definition at line 79 of file pylonCameraDriver.cpp.

Variable Documentation

◆ featureMinMax

const std::map<cameraFeature_id_t, std::pair<double, double> > featureMinMax
static
Initial value:
{{YARP_FEATURE_BRIGHTNESS, {-1.0, 1.0}},
{YARP_FEATURE_EXPOSURE, {68.0, 2300000.0}},
{YARP_FEATURE_SHARPNESS, {0.0, 1.0}},
{YARP_FEATURE_GAIN, {0.0, 33.06}}}
@ YARP_FEATURE_SHARPNESS
@ YARP_FEATURE_BRIGHTNESS
@ YARP_FEATURE_WHITE_BALANCE
@ YARP_FEATURE_EXPOSURE
@ YARP_FEATURE_GAIN

Definition at line 48 of file pylonCameraDriver.cpp.

◆ features_with_auto

Definition at line 45 of file pylonCameraDriver.cpp.

◆ rotationToCVRot

const std::map<double, int> rotationToCVRot {{90.0, ROTATE_90_CLOCKWISE}, {-90.0, ROTATE_90_COUNTERCLOCKWISE}, {180.0, ROTATE_180}}
static

Definition at line 55 of file pylonCameraDriver.cpp.

◆ supported_features