20 #ifndef YARP_DEVICE_USBCAMERA_COMMON_USBCAMERA_H
21 #define YARP_DEVICE_USBCAMERA_COMMON_USBCAMERA_H
81 bool close()
override;
86 int height()
const override;
91 int width()
const override;
129 bool setFeature(
int feature,
double value)
override;
130 bool getFeature(
int feature,
double* value)
override;
131 bool setFeature(
int feature,
double value1,
double value2)
override;
132 bool getFeature(
int feature,
double* value1,
double* value2)
override;
133 bool hasOnOff(
int feature,
bool* HasOnOff)
override;
134 bool setActive(
int feature,
bool onoff)
override;
135 bool getActive(
int feature,
bool* isActive)
override;
186 bool getRgbFOV(
double& horizontalFov,
double& verticalFov)
override;
195 bool setRgbFOV(
double horizontalFov,
double verticalFov)
override;
259 int height()
const override;
265 int width()
const override;
294 int height()
const override;
300 int width()
const override;
define common interfaces to discover remote camera capabilities
int height() const override
Return the height of each frame.
~USBCameraDriverRaw() override
int width() const override
Return the width of each frame.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelMono > &image) override
FrameGrabber image interface, returns the last acquired frame as an rgb image.
int height() const override
Return the height of each frame.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
FrameGrabber image interface, returns the last acquired frame as an rgb image.
~USBCameraDriverRgb() override
int width() const override
Return the width of each frame.
Yarp device driver implementation for acquiring images from USB cameras.
bool setFeature(int feature, double value) override
Set the requested feature to a value (saturation, brightness ...
bool getRgbBuffer(unsigned char *buffer) override
FrameGrabber bgr interface, returns the last acquired frame as a buffer of bgr triplets.
bool getRgbResolution(int &width, int &height) override
Get the resolution of the rgb image from the camera.
int getRgbWidth() override
Return the width of each frame.
yarp::dev::IFrameGrabberRgb * deviceRgb
bool hasOnePush(int feature, bool *hasOnePush) override
Check if the requested feature has the 'onePush' mode.
USBCameraDriver()
Constructor.
bool getFeature(int feature, double *value) override
Get the current value for the requested feature.
int getRgbHeight() override
Return the height of each frame.
bool hasOnOff(int feature, bool *HasOnOff) override
Check if the camera has the ability to turn on/off the requested feature.
bool setRgbMirroring(bool mirror) override
Set the mirroring setting of the sensor.
~USBCameraDriver() override
Destructor.
bool close() override
Closes the device driver.
bool hasAuto(int feature, bool *hasAuto) override
Check if the requested feature has the 'auto' mode.
yarp::dev::IFrameGrabber * deviceRaw
bool getActive(int feature, bool *isActive) override
Get the current status of the feature, on or off.
bool open(yarp::os::Searchable &config) override
Open the device driver.
int getRawBufferSize() override
Implements the Frame grabber basic interface.
bool getRgbMirroring(bool &mirror) override
Get the mirroring setting of the sensor.
bool setRgbResolution(int width, int height) override
Set the resolution of the rgb image from the camera.
bool getMode(int feature, FeatureMode *mode) override
Get the current mode for the feature.
bool getRgbSupportedConfigurations(yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override
Get the possible configurations of the camera.
bool hasFeature(int feature, bool *hasFeature) override
Check if camera has the requested feature (saturation, brightness ...
int height() const override
Implements FrameGrabber basic interface.
bool setMode(int feature, FeatureMode mode) override
Set the requested mode for the feature.
yarp::dev::IPreciselyTimed * deviceTimed
bool getRgbIntrinsicParam(yarp::os::Property &intrinsic) override
Get the intrinsic parameters of the rgb camera.
bool setOnePush(int feature) override
Set the requested feature to a value (saturation, brightness ...
bool getRawBuffer(unsigned char *buffer) override
Implements FrameGrabber basic interface.
bool getRgbFOV(double &horizontalFov, double &verticalFov) override
Get the field of view (FOV) of the rgb camera.
bool hasManual(int feature, bool *hasManual) override
Check if the requested feature has the 'manual' mode.
yarp::dev::DeviceDriver * os_device
yarp::os::Stamp getLastInputStamp() override
Implements the IPreciselyTimed interface.
yarp::dev::IRgbVisualParams * deviceRgbVisualParam
bool setActive(int feature, bool onoff) override
Set the requested feature on or off.
int width() const override
Implements FrameGrabber basic interface.
bool getCameraDescription(CameraDescriptor *camera) override
Implementation of IFrameGrabberControls2 interface.
yarp::dev::IFrameGrabberControls * deviceControls
bool setRgbFOV(double horizontalFov, double verticalFov) override
Set the field of view (FOV) of the rgb camera.
Interface implemented by all device drivers.
Control interface for frame grabber devices.
Read a YARP-format image from a device.
Read a YARP-format image from a device.
RGB Interface to a FrameGrabber device.
Common interface to a FrameGrabber.
An interface for retrieving intrinsic parameter from a rgb camera.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.