6 #ifndef YARP_FRAMEGRABBER_PROTOCOL_FRAMEGRABBERCONTROLS_FORWARDER_H
7 #define YARP_FRAMEGRABBER_PROTOCOL_FRAMEGRABBERCONTROLS_FORWARDER_H
14 namespace framegrabber {
32 bool setFeature(
int feature,
double value)
override;
33 bool getFeature(
int feature,
double* value)
override;
34 bool setFeature(
int feature,
double value1,
double value2)
override;
35 bool getFeature(
int feature,
double* value1,
double* value2)
override;
36 bool hasOnOff(
int feature,
bool* HasOnOff)
override;
37 bool setActive(
int feature,
bool onoff)
override;
38 bool getActive(
int feature,
bool* isActive)
override;
46 #ifndef YARP_NO_DEPRECATED
55 bool setHue(
double v)
override;
63 bool setGain(
double v)
override;
65 bool setIris(
double v)
override;
69 bool setCommand(
int code,
double v);
70 bool setCommand(
int code,
double b,
double r);
71 double getCommand(
int code)
const;
72 bool getCommand(
int code,
double &b,
double &r)
const;
Control interface for frame grabber devices.
A mini-server for network communication.
This classes implement a sender / parser for IFrameGrabberControls interface messages.
bool hasAuto(int feature, bool *hasAuto) override
Check if the requested feature has the 'auto' mode.
bool setActive(int feature, bool onoff) override
Set the requested feature on or off.
bool setExposure(double v) override
Set the exposure.
bool setIris(double v) override
Set the iris.
bool hasFeature(int feature, bool *hasFeature) override
Check if camera has the requested feature (saturation, brightness ...
double getSaturation() override
Read the saturation parameter.
double getBrightness() override
Read the brightness parameter.
bool getActive(int feature, bool *isActive) override
Get the current status of the feature, on or off.
bool setOnePush(int feature) override
Set the requested feature to a value (saturation, brightness ...
bool hasOnePush(int feature, bool *hasOnePush) override
Check if the requested feature has the 'onePush' mode.
~FrameGrabberControls_Forwarder() override=default
double getSharpness() override
Read the sharpness parameter.
bool setSaturation(double v) override
Set the saturation.
double getExposure() override
Read the exposure parameter.
double getHue() override
Read the hue parameter.
bool setFeature(int feature, double value) override
Set the requested feature to a value (saturation, brightness ...
bool setShutter(double v) override
Set the shutter parameter.
bool getWhiteBalance(double &blue, double &red) override
Read the white balance parameters.
bool getFeature(int feature, double *value) override
Get the current value for the requested feature.
bool setBrightness(double v) override
Set the brightness.
double getGamma() override
Read the gamma parameter.
bool setWhiteBalance(double blue, double red) override
Set the white balance for the frame grabber.
bool hasManual(int feature, bool *hasManual) override
Check if the requested feature has the 'manual' mode.
double getIris() override
Read the iris parameter.
FrameGrabberControls_Forwarder(yarp::os::Port &port)
bool setGamma(double v) override
Set the gamma.
bool getMode(int feature, FeatureMode *mode) override
Get the current mode for the feature.
double getShutter() override
Read the shutter parameter.
bool hasOnOff(int feature, bool *HasOnOff) override
Check if the camera has the ability to turn on/off the requested feature.
bool setHue(double v) override
Set the hue.
bool getCameraDescription(CameraDescriptor *camera) override
Get a basic description of the camera hw.
double getGain() override
Read the gain parameter.
bool setSharpness(double v) override
Set the sharpness.
bool setGain(double v) override
Set the gain.
bool setMode(int feature, FeatureMode mode) override
Set the requested mode for the feature.
The main, catch-all namespace for YARP.