YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
argusCameraDriver.cpp File Reference
#include <yarp/os/LogComponent.h>
#include <yarp/os/Value.h>
#include <yarp/sig/ImageUtils.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include "argusCameraDriver.h"
+ Include dependency graph for argusCameraDriver.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)
 

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}
 
static const std::map< cameraFeature_id_t, std::pair< double, double > > featureMinMax
 
static const std::map< double, NV::Rotation > rotationToNVRot {{0.0, NV::ROTATION_0}, {90.0, NV::ROTATION_90}, {-90.0, NV::ROTATION_270}, {180.0, NV::ROTATION_180}}
 
static const std::map< double, doublerotationToCVRot {{0.0, 0.0}, {90.0, cv::ROTATE_90_COUNTERCLOCKWISE}, {-90.0, cv::ROTATE_90_CLOCKWISE}, {180.0, cv::ROTATE_180}}
 
static const std::map< std::string, std::vector< Argus::Size2D< uint32_t > > > cameraResolutions
 

Function Documentation

◆ fromRangeToZeroOne()

double fromRangeToZeroOne ( cameraFeature_id_t  feature,
double  value 
)

Definition at line 61 of file argusCameraDriver.cpp.

◆ fromZeroOneToRange()

double fromZeroOneToRange ( cameraFeature_id_t  feature,
double  value 
)

Definition at line 55 of file argusCameraDriver.cpp.

◆ parseUint32Param()

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

Definition at line 92 of file argusCameraDriver.cpp.

Variable Documentation

◆ cameraResolutions

const std::map<std::string, std::vector<Argus::Size2D<uint32_t> > > cameraResolutions
static
Initial value:
{
{"imx415", {Size2D<uint32_t>(1280, 720), Size2D<uint32_t>(1920, 1080), Size2D<uint32_t>(3840, 2160)}}
}
A mini-server for performing network communication in the background.

Definition at line 50 of file argusCameraDriver.cpp.

◆ featureMinMax

const std::map<cameraFeature_id_t, std::pair<double, double> > featureMinMax
static
Initial value:
{{YARP_FEATURE_EXPOSURE, {-2.0, 2.0}},
{YARP_FEATURE_SATURATION, {0.0, 2.0}},
{YARP_FEATURE_SHARPNESS, {-1.0, 1.0}},
{YARP_FEATURE_GAIN, {1.0, 3981.07}}}
@ YARP_FEATURE_SHARPNESS
@ YARP_FEATURE_WHITE_BALANCE
@ YARP_FEATURE_EXPOSURE
@ YARP_FEATURE_SATURATION
@ YARP_FEATURE_GAIN

Definition at line 41 of file argusCameraDriver.cpp.

◆ features_with_auto

const std::vector<cameraFeature_id_t> features_with_auto {YARP_FEATURE_EXPOSURE, YARP_FEATURE_WHITE_BALANCE}
static

Definition at line 39 of file argusCameraDriver.cpp.

◆ rotationToCVRot

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

Definition at line 48 of file argusCameraDriver.cpp.

◆ rotationToNVRot

const std::map<double, NV::Rotation> rotationToNVRot {{0.0, NV::ROTATION_0}, {90.0, NV::ROTATION_90}, {-90.0, NV::ROTATION_270}, {180.0, NV::ROTATION_180}}
static

Definition at line 47 of file argusCameraDriver.cpp.

◆ supported_features