YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
USBCameraDriverRaw Class Reference

usbCameraRaw: Documentation to be added More...

#include <usbCamera/common/USBcamera.h>

+ Inheritance diagram for USBCameraDriverRaw:

Public Member Functions

 USBCameraDriverRaw ()
 
 ~USBCameraDriverRaw () override
 
bool getImage (yarp::sig::ImageOf< yarp::sig::PixelMono > &image) override
 Get an image from the frame grabber.
 
int height () const override
 Return the height of each frame.
 
int width () const override
 Return the width of each frame.
 
- Public Member Functions inherited from USBCameraDriver
 USBCameraDriver ()
 Constructor.
 
 ~USBCameraDriver () override
 Destructor.
 
bool open (yarp::os::Searchable &config) override
 Open the DeviceDriver.
 
bool close () override
 Close the DeviceDriver.
 
int height () const
 
int width () const
 
yarp::os::Stamp getLastInputStamp () override
 Return the time stamp relative to the last acquisition.
 
bool getCameraDescription (CameraDescriptor *camera) override
 Implementation of IFrameGrabberControls2 interface.
 
bool hasFeature (int feature, bool *hasFeature) override
 Check if camera has the requested feature (saturation, brightness ... )
 
bool setFeature (int feature, double value) override
 Set the requested feature to a value (saturation, brightness ... )
 
bool getFeature (int feature, double *value) override
 Get the current value for the requested feature.
 
bool setFeature (int feature, double value1, double value2) override
 Set the requested feature to a value using 2 params (like white balance)
 
bool getFeature (int feature, double *value1, double *value2) override
 Get the current value for the requested feature.
 
bool hasOnOff (int feature, bool *HasOnOff) override
 Check if the camera has the ability to turn on/off the requested feature.
 
bool setActive (int feature, bool onoff) override
 Set the requested feature on or off.
 
bool getActive (int feature, bool *isActive) override
 Get the current status of the feature, on or off.
 
bool hasAuto (int feature, bool *hasAuto) override
 Check if the requested feature has the 'auto' mode.
 
bool hasManual (int feature, bool *hasManual) override
 Check if the requested feature has the 'manual' mode.
 
bool hasOnePush (int feature, bool *hasOnePush) override
 Check if the requested feature has the 'onePush' mode.
 
bool setMode (int feature, FeatureMode mode) override
 Set the requested mode for the feature.
 
bool getMode (int feature, FeatureMode *mode) override
 Get the current mode for the feature.
 
bool setOnePush (int feature) override
 Set the requested feature to a value (saturation, brightness ... )
 
int getRgbHeight () 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.
 
bool getRgbResolution (int &width, int &height) override
 Get the resolution of the rgb image from the camera.
 
bool setRgbResolution (int width, int height) override
 Set 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 setRgbFOV (double horizontalFov, double verticalFov) override
 Set the field of view (FOV) of the rgb camera.
 
bool getRgbIntrinsicParam (yarp::os::Property &intrinsic) override
 Get the intrinsic parameters of the rgb camera.
 
bool getRgbMirroring (bool &mirror) override
 Get the mirroring setting of the sensor.
 
bool setRgbMirroring (bool mirror) override
 Set the mirroring setting of the sensor.
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 DeviceDriver ()
 
 DeviceDriver (const DeviceDriver &other)=delete
 
 DeviceDriver (DeviceDriver &&other) noexcept=delete
 
DeviceDriveroperator= (const DeviceDriver &other)=delete
 
DeviceDriveroperator= (DeviceDriver &&other) noexcept=delete
 
virtual ~DeviceDriver ()
 
virtual std::string id () const
 Return the id assigned to the PolyDriver.
 
virtual void setId (const std::string &id)
 Set the id for this device.
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver.
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others.
 
- Public Member Functions inherited from yarp::dev::IPreciselyTimed
virtual ~IPreciselyTimed ()
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberControls
virtual ~IFrameGrabberControls ()
 Destructor.
 
std::string busType2String (BusType type)
 
FeatureMode toFeatureMode (bool _auto)
 
- Public Member Functions inherited from yarp::dev::IRgbVisualParams
virtual ~IRgbVisualParams ()
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberOf< yarp::sig::ImageOf< yarp::sig::PixelMono > >
virtual bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, yarp::sig::ImageOf< yarp::sig::PixelMono > &image)
 Get a crop of the image from the frame grabber.
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberImageBase
virtual ~IFrameGrabberImageBase ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from USBCameraDriver
yarp::dev::IPreciselyTimeddeviceTimed
 
yarp::dev::IFrameGrabberImageframeGrabberImage
 
yarp::dev::IFrameGrabberImageRawframeGrabberImageRaw
 
yarp::dev::DeviceDriveros_device
 
yarp::dev::IFrameGrabberControlsdeviceControls
 
yarp::dev::IRgbVisualParamsdeviceRgbVisualParam
 
size_t _width
 
size_t _height
 
int pixelType
 

Detailed Description

usbCameraRaw: Documentation to be added

Definition at line 127 of file USBcamera.h.

Constructor & Destructor Documentation

◆ USBCameraDriverRaw()

USBCameraDriverRaw::USBCameraDriverRaw ( )

Definition at line 251 of file USBcamera.cpp.

◆ ~USBCameraDriverRaw()

USBCameraDriverRaw::~USBCameraDriverRaw ( )
override

Definition at line 258 of file USBcamera.cpp.

Member Function Documentation

◆ getImage()

bool USBCameraDriverRaw::getImage ( yarp::sig::ImageOf< yarp::sig::PixelMono > &  image)
overridevirtual

Get an image from the frame grabber.

Parameters
imagethe image to be filled
Returns
true/false upon success/failure

Implements yarp::dev::IFrameGrabberOf< yarp::sig::ImageOf< yarp::sig::PixelMono > >.

Definition at line 263 of file USBcamera.cpp.

◆ height()

int USBCameraDriverRaw::height ( ) const
overridevirtual

Return the height of each frame.

Returns
image height

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 273 of file USBcamera.cpp.

◆ width()

int USBCameraDriverRaw::width ( ) const
overridevirtual

Return the width of each frame.

Returns
image width

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 268 of file USBcamera.cpp.


The documentation for this class was generated from the following files: