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