YARP  2.3.70.1
Yet Another Robot Platform
yarp::dev::IFrameGrabberControls2 Class Referenceabstract

This interface exports a list of general methods to discover the remote camera capabilities. More...

#include <yarp/dev/FrameGrabberControl2.h>

+ Inheritance diagram for yarp::dev::IFrameGrabberControls2:

Public Member Functions

virtual ~IFrameGrabberControls2 ()
 
yarp::os::ConstString busType2String (BusType type)
 
FeatureMode toFeatureMode (bool _auto)
 
virtual bool getCameraDescription (CameraDescriptor *camera)=0
 Get a basic description of the camera hw. More...
 
virtual bool hasFeature (int feature, bool *hasFeature)=0
 Check if camera has the requested feature (saturation, brightness ... More...
 
virtual bool setFeature (int feature, double value)=0
 Set the requested feature to a value (saturation, brightness ... More...
 
virtual bool getFeature (int feature, double *value)=0
 Get the current value for the requested feature. More...
 
virtual bool setFeature (int feature, double value1, double value2)=0
 Set the requested feature to a value using 2 params (like white balance) More...
 
virtual bool getFeature (int feature, double *value1, double *value2)=0
 Get the current value for the requested feature. More...
 
virtual bool hasOnOff (int feature, bool *HasOnOff)=0
 Check if the camera has the ability to turn on/off the requested feature. More...
 
virtual bool setActive (int feature, bool onoff)=0
 Set the requested feature on or off. More...
 
virtual bool getActive (int feature, bool *isActive)=0
 Get the current status of the feature, on or off. More...
 
virtual bool hasAuto (int feature, bool *hasAuto)=0
 Check if the requested feature has the 'auto' mode. More...
 
virtual bool hasManual (int feature, bool *hasManual)=0
 Check if the requested feature has the 'manual' mode. More...
 
virtual bool hasOnePush (int feature, bool *hasOnePush)=0
 Check if the requested feature has the 'onePush' mode. More...
 
virtual bool setMode (int feature, FeatureMode mode)=0
 Set the requested mode for the feature. More...
 
virtual bool getMode (int feature, FeatureMode *mode)=0
 Get the current mode for the feature. More...
 
virtual bool setOnePush (int feature)=0
 Set the requested feature to a value (saturation, brightness ... More...
 

Detailed Description

This interface exports a list of general methods to discover the remote camera capabilities.

It also has the get/set feature methods so can be used in conjuntion with former IFrameGrabberControls2 or as standalone.

Definition at line 57 of file FrameGrabberControl2.h.

Constructor & Destructor Documentation

◆ ~IFrameGrabberControls2()

virtual yarp::dev::IFrameGrabberControls2::~IFrameGrabberControls2 ( )
inlinevirtual

Definition at line 61 of file FrameGrabberControl2.h.

Member Function Documentation

◆ busType2String()

yarp::os::ConstString yarp::dev::IFrameGrabberControls2::busType2String ( BusType  type)
inline

Definition at line 63 of file FrameGrabberControl2.h.

◆ getActive()

virtual bool yarp::dev::IFrameGrabberControls2::getActive ( int  feature,
bool *  isActive 
)
pure virtual

Get the current status of the feature, on or off.

Parameters
featurethe identifier of the feature to check
isActiveflag true if the feature is active, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ getCameraDescription()

virtual bool yarp::dev::IFrameGrabberControls2::getCameraDescription ( CameraDescriptor camera)
pure virtual

Get a basic description of the camera hw.

This is mainly used to determine the HW bus type in order to choose the corresponding interface for advanced controls.

Parameters
devicereturns an identifier for the bus
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ getFeature() [1/2]

virtual bool yarp::dev::IFrameGrabberControls2::getFeature ( int  feature,
double *  value 
)
pure virtual

Get the current value for the requested feature.

Parameters
featurethe identifier of the feature to read
valuepointer to current value of the feature, from 0 to 1 expressed as a percentage
Returns
returns true on success, false on failure.

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ getFeature() [2/2]

virtual bool yarp::dev::IFrameGrabberControls2::getFeature ( int  feature,
double *  value1,
double *  value2 
)
pure virtual

Get the current value for the requested feature.

Parameters
featurethe identifier of the feaature to read
value1returns the current value of the feature, from 0 to 1 expressed as a percentage
value2returns the current value of the feature, from 0 to 1 expressed as a percentage
Returns
returns true on success, false on failure.

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ getMode()

virtual bool yarp::dev::IFrameGrabberControls2::getMode ( int  feature,
FeatureMode mode 
)
pure virtual

Get the current mode for the feature.

Parameters
featurethe identifier of the feature to change
hasAutoflag true if the feature is has 'auto' mode, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ hasAuto()

virtual bool yarp::dev::IFrameGrabberControls2::hasAuto ( int  feature,
bool *  hasAuto 
)
pure virtual

Check if the requested feature has the 'auto' mode.

Parameters
featurethe identifier of the feature to check
hasAutoflag true if the feature is has 'auto' mode, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ hasFeature()

virtual bool yarp::dev::IFrameGrabberControls2::hasFeature ( int  feature,
bool *  hasFeature 
)
pure virtual

Check if camera has the requested feature (saturation, brightness ...

)

Parameters
featurethe identifier of the feature to check
hasFeatureflag value: true if the feature is present, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ hasManual()

virtual bool yarp::dev::IFrameGrabberControls2::hasManual ( int  feature,
bool *  hasManual 
)
pure virtual

Check if the requested feature has the 'manual' mode.

Parameters
featurethe identifier of the feature to check
hasAutoflag true if the feature is has 'manual' mode, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ hasOnePush()

virtual bool yarp::dev::IFrameGrabberControls2::hasOnePush ( int  feature,
bool *  hasOnePush 
)
pure virtual

Check if the requested feature has the 'onePush' mode.

Parameters
featurethe identifier of the feature to check
hasAutoflag true if the feature is has 'onePush' mode, false otherwise
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ hasOnOff()

virtual bool yarp::dev::IFrameGrabberControls2::hasOnOff ( int  feature,
bool *  HasOnOff 
)
pure virtual

Check if the camera has the ability to turn on/off the requested feature.

Parameters
featurethe identifier of the feature to change
hasOnOffflag true if this feature can be turned on/off, false otherwise.
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ setActive()

virtual bool yarp::dev::IFrameGrabberControls2::setActive ( int  feature,
bool  onoff 
)
pure virtual

Set the requested feature on or off.

Parameters
featurethe identifier of the feature to change
onofftrue to activate, off to deactivate the feature
Returns
returns true on success, false on failure.

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ setFeature() [1/2]

virtual bool yarp::dev::IFrameGrabberControls2::setFeature ( int  feature,
double  value 
)
pure virtual

Set the requested feature to a value (saturation, brightness ...

)

Parameters
featurethe identifier of the feature to change
valuenew value of the feature, range from 0 to 1 expressed as a percentage
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ setFeature() [2/2]

virtual bool yarp::dev::IFrameGrabberControls2::setFeature ( int  feature,
double  value1,
double  value2 
)
pure virtual

Set the requested feature to a value using 2 params (like white balance)

Parameters
featurethe identifier of the feature to change
value1first param, from 0 to 1 expressed as a percentage
value2second param, from 0 to 1 expressed as a percentage
Returns
returns true if success, false otherwise (e.g. the interface is not implemented)

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ setMode()

virtual bool yarp::dev::IFrameGrabberControls2::setMode ( int  feature,
FeatureMode  mode 
)
pure virtual

Set the requested mode for the feature.

Parameters
featurethe identifier of the feature to change
auto_onofftrue to activate 'auto' mode, false to activate 'manual' mode
Returns
returns true on success, false on failure.

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ setOnePush()

virtual bool yarp::dev::IFrameGrabberControls2::setOnePush ( int  feature)
pure virtual

Set the requested feature to a value (saturation, brightness ...

)

Parameters
featurethe identifier of the feature to change
valuenew value of the feature, from 0 to 1 as a percentage of param range
Returns
returns true on success, false on failure.

Implemented in yarp::dev::depthCameraDriver, and yarp::dev::FrameGrabberControls2_Sender.

◆ toFeatureMode()

FeatureMode yarp::dev::IFrameGrabberControls2::toFeatureMode ( bool  _auto)
inline

Definition at line 80 of file FrameGrabberControl2.h.


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