14 FrameGrabberControls_Forwarder::FrameGrabberControls_Forwarder(
yarp::os::Port& m_port) :
28 bool ret = m_port.
write(cmd, response);
44 bool ret = m_port.
write(cmd, response);
59 return m_port.
write(cmd, response);
72 return m_port.
write(cmd, response);
83 bool ret = m_port.
write(cmd, response);
97 bool ret = m_port.
write(cmd, response);
112 bool ret = m_port.
write(cmd, response);
127 return m_port.
write(cmd, response);
138 bool ret = m_port.
write(cmd, response);
140 *isActive = response.
get(3).
asInt32() != 0 ? true :
false;
152 bool ret = m_port.
write(cmd, response);
166 bool ret = m_port.
write(cmd, response);
180 bool ret = m_port.
write(cmd, response);
195 return m_port.
write(cmd, response);
206 bool ret = m_port.
write(cmd, response);
220 return m_port.
write(cmd, response);
223 #ifndef YARP_NO_DEPRECATED
224 bool FrameGrabberControls_Forwarder::setCommand(
int code,
double v)
232 return m_port.
write(cmd, response);
235 bool FrameGrabberControls_Forwarder::setCommand(
int code,
double b,
double r)
244 return m_port.
write(cmd, response);
247 double FrameGrabberControls_Forwarder::getCommand(
int code)
const
254 m_port.
write(cmd,response);
259 bool FrameGrabberControls_Forwarder::getCommand(
int code,
double &b,
double &r)
const
266 m_port.
write(cmd,response);
constexpr yarp::conf::vocab32_t VOCAB_ACTIVE
constexpr yarp::conf::vocab32_t VOCAB_FEATURE2
constexpr yarp::conf::vocab32_t VOCAB_FEATURE
constexpr yarp::conf::vocab32_t VOCAB_GAMMA
constexpr yarp::conf::vocab32_t VOCAB_MANUAL
constexpr yarp::conf::vocab32_t VOCAB_GAIN
constexpr yarp::conf::vocab32_t VOCAB_ONEPUSH
constexpr yarp::conf::vocab32_t VOCAB_SHUTTER
constexpr yarp::conf::vocab32_t VOCAB_MODE
constexpr yarp::conf::vocab32_t VOCAB_ONOFF
constexpr yarp::conf::vocab32_t VOCAB_WHITE
constexpr yarp::conf::vocab32_t VOCAB_IRIS
constexpr yarp::conf::vocab32_t VOCAB_CAMERA_DESCRIPTION
constexpr yarp::conf::vocab32_t VOCAB_HUE
constexpr yarp::conf::vocab32_t VOCAB_SHARPNESS
constexpr yarp::conf::vocab32_t VOCAB_HAS
constexpr yarp::conf::vocab32_t VOCAB_BRIGHTNESS
constexpr yarp::conf::vocab32_t VOCAB_AUTO
constexpr yarp::conf::vocab32_t VOCAB_SATURATION
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_CONTROL
constexpr yarp::conf::vocab32_t VOCAB_EXPOSURE
constexpr yarp::conf::vocab32_t VOCAB_GET
constexpr yarp::conf::vocab32_t VOCAB_SET
A simple collection of objects that can be described and transmitted in a portable way.
void addVocab32(yarp::conf::vocab32_t x)
Places a vocabulary item in the bottle, at the end of the list.
void addFloat64(yarp::conf::float64_t x)
Places a 64-bit floating point number in the bottle, at the end of the list.
Value & get(size_type index) const
Reads a Value v from a certain part of the list.
void addInt32(std::int32_t x)
Places a 32-bit integer in the bottle, at the end of the list.
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
bool isOpen() const
Check if the port has been opened.
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual std::int32_t asInt32() const
Get 32-bit integer value.
virtual std::string asString() const
Get string value.
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.
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.
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.
std::string deviceDescription