YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
UltraPythonCameraHelper Class Reference

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/opt-modules/yarp-device-ultrapython/src/devices/ultrapython/UltraPythonCameraHelper.h>

Public Member Functions

bool openAll ()
 
bool step (unsigned char *yarpbuffer)
 
bool closeAll ()
 
void setSubsamplingProperty (bool value)
 
bool setControl (uint32_t v4lCtrl, double value, bool absolute)
 
void setStepPeriod (double msec)
 
void setHonorFps (bool value)
 
double getControl (uint32_t v4lCtrl, bool absolute)
 
bool getCropEnabledProperty () const
 
bool getForceFormatProperty () const
 
bool getHonorFps () const
 
double getStepPeriod () const
 
double getCurrentExposure () const
 
void setInjectedProcess (std::function< void(const void *, int)> toinJect)
 
void setInjectedUnlock (std::function< void()> toinJect)
 
void setInjectedLock (std::function< void()> toinJect)
 
void setInjectedLog (std::function< void(const std::string &, Severity severity)> toinJect)
 
 UltraPythonCameraHelper (InterfaceForCApi *interfaceCt)
 
 UltraPythonCameraHelper (const UltraPythonCameraHelper &)=delete
 
UltraPythonCameraHelperoperator= (const UltraPythonCameraHelper &)=delete
 
 UltraPythonCameraHelper (UltraPythonCameraHelper &&)=delete
 
UltraPythonCameraHelperoperator= (UltraPythonCameraHelper &&)=delete
 
 ~UltraPythonCameraHelper ()
 
void mapBufferFill (unsigned char *tofillWith, unsigned int index)
 

Public Attributes

int currentHeight_ {0}
 
int currentWidth_ {0}
 

Static Public Attributes

static constexpr int lowresFrameRate_ {35}
 
static constexpr int hiresFrameRate_ {14}
 
static constexpr unsigned int V4L2_EXPOSURE_ULTRA_PYTHON {0x0098cb03}
 
static constexpr unsigned int V4L2_DEADTIME_ULTRA_PYTHON {0x0098cb02}
 
static constexpr unsigned int V4L2_EXTTRIGGER_ULTRA_PYTHON {0x0098cc03}
 
static constexpr unsigned int V4L2_REDBALANCE_ULTRA_PYTHON {0x0098c9a3}
 
static constexpr unsigned int V4L2_GREENBALANCE_ULTRA_PYTHON {0x0098c9a4}
 
static constexpr unsigned int V4L2_BLUEBALANCE_ULTRA_PYTHON {0x0098c9a5}
 
static constexpr unsigned int V4L2_ANALOGGAIN_ULTRA_PYTHON {0x009e0903}
 
static constexpr unsigned int V4L2_CONTRAST_ULTRA_PYTHON {0x0098c9a2}
 

Detailed Description

Definition at line 54 of file UltraPythonCameraHelper.h.

Constructor & Destructor Documentation

◆ UltraPythonCameraHelper() [1/3]

UltraPythonCameraHelper::UltraPythonCameraHelper ( InterfaceForCApi interfaceCt)
explicit

Definition at line 42 of file UltraPythonCameraHelper.cpp.

◆ UltraPythonCameraHelper() [2/3]

UltraPythonCameraHelper::UltraPythonCameraHelper ( const UltraPythonCameraHelper )
delete

◆ UltraPythonCameraHelper() [3/3]

UltraPythonCameraHelper::UltraPythonCameraHelper ( UltraPythonCameraHelper &&  )
delete

◆ ~UltraPythonCameraHelper()

UltraPythonCameraHelper::~UltraPythonCameraHelper ( )

Definition at line 53 of file UltraPythonCameraHelper.cpp.

Member Function Documentation

◆ closeAll()

bool UltraPythonCameraHelper::closeAll ( )

Definition at line 717 of file UltraPythonCameraHelper.cpp.

◆ getControl()

double UltraPythonCameraHelper::getControl ( uint32_t  v4lCtrl,
bool  absolute 
)

Definition at line 989 of file UltraPythonCameraHelper.cpp.

◆ getCropEnabledProperty()

bool UltraPythonCameraHelper::getCropEnabledProperty ( ) const

Definition at line 1158 of file UltraPythonCameraHelper.cpp.

◆ getCurrentExposure()

double UltraPythonCameraHelper::getCurrentExposure ( ) const

Definition at line 1175 of file UltraPythonCameraHelper.cpp.

◆ getForceFormatProperty()

bool UltraPythonCameraHelper::getForceFormatProperty ( ) const

Definition at line 1162 of file UltraPythonCameraHelper.cpp.

◆ getHonorFps()

bool UltraPythonCameraHelper::getHonorFps ( ) const

Definition at line 1167 of file UltraPythonCameraHelper.cpp.

◆ getStepPeriod()

double UltraPythonCameraHelper::getStepPeriod ( ) const

Definition at line 1171 of file UltraPythonCameraHelper.cpp.

◆ mapBufferFill()

void UltraPythonCameraHelper::mapBufferFill ( unsigned char *  tofillWith,
unsigned int  index 
)

Definition at line 1181 of file UltraPythonCameraHelper.cpp.

◆ openAll()

bool UltraPythonCameraHelper::openAll ( )

Definition at line 807 of file UltraPythonCameraHelper.cpp.

◆ operator=() [1/2]

UltraPythonCameraHelper & UltraPythonCameraHelper::operator= ( const UltraPythonCameraHelper )
delete

◆ operator=() [2/2]

UltraPythonCameraHelper & UltraPythonCameraHelper::operator= ( UltraPythonCameraHelper &&  )
delete

◆ setControl()

bool UltraPythonCameraHelper::setControl ( uint32_t  v4lCtrl,
double  value,
bool  absolute 
)

Definition at line 849 of file UltraPythonCameraHelper.cpp.

◆ setHonorFps()

void UltraPythonCameraHelper::setHonorFps ( bool  value)

Definition at line 835 of file UltraPythonCameraHelper.cpp.

◆ setInjectedLock()

void UltraPythonCameraHelper::setInjectedLock ( std::function< void()>  toinJect)

Definition at line 786 of file UltraPythonCameraHelper.cpp.

◆ setInjectedLog()

void UltraPythonCameraHelper::setInjectedLog ( std::function< void(const std::string &, Severity severity)>  toinJect)

Definition at line 844 of file UltraPythonCameraHelper.cpp.

◆ setInjectedProcess()

void UltraPythonCameraHelper::setInjectedProcess ( std::function< void(const void *, int)>  toinJect)

Definition at line 778 of file UltraPythonCameraHelper.cpp.

◆ setInjectedUnlock()

void UltraPythonCameraHelper::setInjectedUnlock ( std::function< void()>  toinJect)

Definition at line 782 of file UltraPythonCameraHelper.cpp.

◆ setStepPeriod()

void UltraPythonCameraHelper::setStepPeriod ( double  msec)

Definition at line 831 of file UltraPythonCameraHelper.cpp.

◆ setSubsamplingProperty()

void UltraPythonCameraHelper::setSubsamplingProperty ( bool  value)

Definition at line 791 of file UltraPythonCameraHelper.cpp.

◆ step()

bool UltraPythonCameraHelper::step ( unsigned char *  yarpbuffer)

Definition at line 608 of file UltraPythonCameraHelper.cpp.

Member Data Documentation

◆ currentHeight_

int UltraPythonCameraHelper::currentHeight_ {0}

Definition at line 139 of file UltraPythonCameraHelper.h.

◆ currentWidth_

int UltraPythonCameraHelper::currentWidth_ {0}

Definition at line 140 of file UltraPythonCameraHelper.h.

◆ hiresFrameRate_

constexpr int UltraPythonCameraHelper::hiresFrameRate_ {14}
staticconstexpr

Definition at line 58 of file UltraPythonCameraHelper.h.

◆ lowresFrameRate_

constexpr int UltraPythonCameraHelper::lowresFrameRate_ {35}
staticconstexpr

Definition at line 57 of file UltraPythonCameraHelper.h.

◆ V4L2_ANALOGGAIN_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_ANALOGGAIN_ULTRA_PYTHON {0x009e0903}
staticconstexpr

Definition at line 67 of file UltraPythonCameraHelper.h.

◆ V4L2_BLUEBALANCE_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_BLUEBALANCE_ULTRA_PYTHON {0x0098c9a5}
staticconstexpr

Definition at line 66 of file UltraPythonCameraHelper.h.

◆ V4L2_CONTRAST_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_CONTRAST_ULTRA_PYTHON {0x0098c9a2}
staticconstexpr

Definition at line 68 of file UltraPythonCameraHelper.h.

◆ V4L2_DEADTIME_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_DEADTIME_ULTRA_PYTHON {0x0098cb02}
staticconstexpr

Definition at line 62 of file UltraPythonCameraHelper.h.

◆ V4L2_EXPOSURE_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_EXPOSURE_ULTRA_PYTHON {0x0098cb03}
staticconstexpr

Definition at line 61 of file UltraPythonCameraHelper.h.

◆ V4L2_EXTTRIGGER_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_EXTTRIGGER_ULTRA_PYTHON {0x0098cc03}
staticconstexpr

Definition at line 63 of file UltraPythonCameraHelper.h.

◆ V4L2_GREENBALANCE_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_GREENBALANCE_ULTRA_PYTHON {0x0098c9a4}
staticconstexpr

Definition at line 65 of file UltraPythonCameraHelper.h.

◆ V4L2_REDBALANCE_ULTRA_PYTHON

constexpr unsigned int UltraPythonCameraHelper::V4L2_REDBALANCE_ULTRA_PYTHON {0x0098c9a3}
staticconstexpr

Definition at line 64 of file UltraPythonCameraHelper.h.


The documentation for this class was generated from the following files: