This classes implement a sender / parser for IFrameGrabberControls interface messages. More...
#include <framegrabber_protocol/yarp/proto/framegrabber/FrameGrabberControls_Forwarder.h>
Inheritance diagram for yarp::proto::framegrabber::FrameGrabberControls_Forwarder:Public Member Functions | |
| FrameGrabberControls_Forwarder (yarp::os::Port &port) | |
| ~FrameGrabberControls_Forwarder () override=default | |
| bool | getCameraDescription (CameraDescriptor *camera) override |
| Get a basic description of the camera hw. More... | |
| bool | hasFeature (int feature, bool *hasFeature) override |
| Check if camera has the requested feature (saturation, brightness ... More... | |
| bool | setFeature (int feature, double value) override |
| Set the requested feature to a value (saturation, brightness ... More... | |
| bool | getFeature (int feature, double *value) override |
| Get the current value for the requested feature. More... | |
| bool | setFeature (int feature, double value1, double value2) override |
| Set the requested feature to a value using 2 params (like white balance) More... | |
| bool | getFeature (int feature, double *value1, double *value2) override |
| Get the current value for the requested feature. More... | |
| bool | hasOnOff (int feature, bool *HasOnOff) override |
| Check if the camera has the ability to turn on/off the requested feature. More... | |
| bool | setActive (int feature, bool onoff) override |
| Set the requested feature on or off. More... | |
| bool | getActive (int feature, bool *isActive) override |
| Get the current status of the feature, on or off. More... | |
| bool | hasAuto (int feature, bool *hasAuto) override |
| Check if the requested feature has the 'auto' mode. More... | |
| bool | hasManual (int feature, bool *hasManual) override |
| Check if the requested feature has the 'manual' mode. More... | |
| bool | hasOnePush (int feature, bool *hasOnePush) override |
| Check if the requested feature has the 'onePush' mode. More... | |
| bool | setMode (int feature, FeatureMode mode) override |
| Set the requested mode for the feature. More... | |
| bool | getMode (int feature, FeatureMode *mode) override |
| Get the current mode for the feature. More... | |
| bool | setOnePush (int feature) override |
| Set the requested feature to a value (saturation, brightness ... More... | |
| bool | setBrightness (double v) override |
| Set the brightness. More... | |
| double | getBrightness () override |
| Read the brightness parameter. More... | |
| bool | setExposure (double v) override |
| Set the exposure. More... | |
| double | getExposure () override |
| Read the exposure parameter. More... | |
| bool | setSharpness (double v) override |
| Set the sharpness. More... | |
| double | getSharpness () override |
| Read the sharpness parameter. More... | |
| bool | setWhiteBalance (double blue, double red) override |
| Set the white balance for the frame grabber. More... | |
| bool | getWhiteBalance (double &blue, double &red) override |
| Read the white balance parameters. More... | |
| bool | setHue (double v) override |
| Set the hue. More... | |
| double | getHue () override |
| Read the hue parameter. More... | |
| bool | setSaturation (double v) override |
| Set the saturation. More... | |
| double | getSaturation () override |
| Read the saturation parameter. More... | |
| bool | setGamma (double v) override |
| Set the gamma. More... | |
| double | getGamma () override |
| Read the gamma parameter. More... | |
| bool | setShutter (double v) override |
| Set the shutter parameter. More... | |
| double | getShutter () override |
| Read the shutter parameter. More... | |
| bool | setGain (double v) override |
| Set the gain. More... | |
| double | getGain () override |
| Read the gain parameter. More... | |
| bool | setIris (double v) override |
| Set the iris. More... | |
| double | getIris () override |
| Read the iris parameter. More... | |
Public Member Functions inherited from yarp::dev::IFrameGrabberControls | |
| virtual | ~IFrameGrabberControls () |
| Destructor. More... | |
| std::string | busType2String (BusType type) |
| FeatureMode | toFeatureMode (bool _auto) |
This classes implement a sender / parser for IFrameGrabberControls interface messages.
Definition at line 20 of file FrameGrabberControls_Forwarder.h.
| FrameGrabberControls_Forwarder::FrameGrabberControls_Forwarder | ( | yarp::os::Port & | port | ) |
Definition at line 14 of file FrameGrabberControls_Forwarder.cpp.
|
overridedefault |
|
overridevirtual |
Get the current status of the feature, on or off.
| feature | the identifier of the feature to check |
| isActive | flag true if the feature is active, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 130 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the brightness parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 278 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
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.
| device | returns an identifier for the bus |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 20 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the exposure parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 288 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Get the current value for the requested feature.
| feature | the identifier of the feature to read |
| value | pointer to current value of the feature, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 75 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Get the current value for the requested feature.
| feature | the identifier of the feaature to read |
| value1 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
| value2 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 89 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the gain parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 358 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the gamma parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 338 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the hue parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 318 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the iris parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 368 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Get the current mode for the feature.
| feature | the identifier of the feature to change |
| hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 198 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the saturation parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 328 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the sharpness parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 298 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the shutter parameter.
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 348 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Read the white balance parameters.
| blue | reference to return value for the red parameter. |
| red | reference to return value for the green parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 308 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Check if the requested feature has the 'auto' mode.
| feature | the identifier of the feature to check |
| hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 144 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Check if camera has the requested feature (saturation, brightness ...
)
| feature | the identifier of the feature to check |
| hasFeature | flag value: true if the feature is present, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 36 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Check if the requested feature has the 'manual' mode.
| feature | the identifier of the feature to check |
| hasAuto | flag true if the feature is has 'manual' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 158 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Check if the requested feature has the 'onePush' mode.
| feature | the identifier of the feature to check |
| hasAuto | flag true if the feature is has 'onePush' mode, false otherwise |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 172 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Check if the camera has the ability to turn on/off the requested feature.
| feature | the identifier of the feature to change |
| hasOnOff | flag true if this feature can be turned on/off, false otherwise. |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 104 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the requested feature on or off.
| feature | the identifier of the feature to change |
| onoff | true to activate, off to deactivate the feature |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 118 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the brightness.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 273 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the exposure.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 283 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the requested feature to a value (saturation, brightness ...
)
| feature | the identifier of the feature to change |
| value | new value of the feature, range from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 50 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the requested feature to a value using 2 params (like white balance)
| feature | the identifier of the feature to change |
| value1 | first param, from 0 to 1 expressed as a percentage |
| value2 | second param, from 0 to 1 expressed as a percentage |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 62 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the gain.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 353 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the gamma.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 333 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the hue.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 313 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the iris.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 363 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the requested mode for the feature.
| feature | the identifier of the feature to change |
| auto_onoff | true to activate 'auto' mode, false to activate 'manual' mode |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 186 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the requested feature to a value (saturation, brightness ...
)
| feature | the identifier of the feature to change |
| value | new value of the feature, from 0 to 1 as a percentage of param range |
Implements yarp::dev::IFrameGrabberControls.
Definition at line 212 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the saturation.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 323 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the sharpness.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 293 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the shutter parameter.
| v | new value for parameter. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 343 of file FrameGrabberControls_Forwarder.cpp.
|
overridevirtual |
Set the white balance for the frame grabber.
| blue | component gain. |
| red | component gain. |
Reimplemented from yarp::dev::IFrameGrabberControls.
Reimplemented in RemoteFrameGrabber.
Definition at line 303 of file FrameGrabberControls_Forwarder.cpp.