YARP
Yet Another Robot Platform

frameGrabber_nws_yarp: Connect to a frameGrabber_nws_yarp. More...

#include <RemoteFrameGrabber/FrameGrabber_nwc_yarp.h>

+ Inheritance diagram for FrameGrabber_nwc_yarp:

Public Member Functions

 FrameGrabber_nwc_yarp ()
 
 FrameGrabber_nwc_yarp (const FrameGrabber_nwc_yarp &)=delete
 
 FrameGrabber_nwc_yarp (FrameGrabber_nwc_yarp &&)=delete
 
FrameGrabber_nwc_yarpoperator= (const FrameGrabber_nwc_yarp &)=delete
 
FrameGrabber_nwc_yarpoperator= (FrameGrabber_nwc_yarp &&)=delete
 
 ~FrameGrabber_nwc_yarp () override=default
 
bool open (yarp::os::Searchable &config) override
 Open the DeviceDriver. More...
 
bool close () override
 Close the DeviceDriver. More...
 
yarp::os::Stamp getLastInputStamp () override
 Return the time stamp relative to the last acquisition. More...
 
- 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
 
 ~DeviceDriver () override
 
virtual std::string id () const
 Return the id assigned to the PolyDriver. More...
 
virtual void setId (const std::string &id)
 Set the id for this device. More...
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver. More...
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others. More...
 
- Public Member Functions inherited from yarp::os::IConfig
virtual ~IConfig ()
 Destructor. More...
 
virtual bool configure (Searchable &config)
 Change online parameters. More...
 
- Public Member Functions inherited from FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >
 FrameGrabberOf_ForwarderWithStream (yarp::os::Port &rpcPort)
 
 ~FrameGrabberOf_ForwarderWithStream () override=default
 
int height () const override
 Return the height of each frame. More...
 
int width () const override
 Return the width of each frame. More...
 
bool getImage (yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
 Get an image from the frame grabber. More...
 
bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int >> vertices, yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
 Get a crop of the image from the frame grabber. More...
 
void setStreamReceiver (StreamReceiver *m_streamReceiver)
 
- Public Member Functions inherited from yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >
 FrameGrabberOf_Forwarder (yarp::os::Port &port)
 
 ~FrameGrabberOf_Forwarder () override=default
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberImageBase
virtual ~IFrameGrabberImageBase ()
 Destructor. More...
 
- Public Member Functions inherited from FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono >, VOCAB_FRAMEGRABBER_IMAGERAW >
 FrameGrabberOf_ForwarderWithStream (yarp::os::Port &rpcPort)
 
 ~FrameGrabberOf_ForwarderWithStream () override=default
 
int height () const override
 Return the height of each frame. More...
 
int width () const override
 Return the width of each frame. More...
 
bool getImage (yarp::sig::ImageOf< yarp::sig::PixelMono > &image) override
 Get an image from the frame grabber. More...
 
bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int >> vertices, yarp::sig::ImageOf< yarp::sig::PixelMono > &image) override
 Get a crop of the image from the frame grabber. More...
 
void setStreamReceiver (StreamReceiver *m_streamReceiver)
 
- Public Member Functions inherited from FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >
 FrameGrabberOf_ForwarderWithStream (yarp::os::Port &rpcPort)
 
 ~FrameGrabberOf_ForwarderWithStream () override=default
 
int height () const override
 Return the height of each frame. More...
 
int width () const override
 Return the width of each frame. More...
 
bool getImage (yarp::sig::ImageOf< yarp::sig::PixelFloat > &image) override
 Get an image from the frame grabber. More...
 
bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int >> vertices, yarp::sig::ImageOf< yarp::sig::PixelFloat > &image) override
 Get a crop of the image from the frame grabber. More...
 
void setStreamReceiver (StreamReceiver *m_streamReceiver)
 
- Public Member Functions inherited from FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >
 FrameGrabberOf_ForwarderWithStream (yarp::os::Port &rpcPort)
 
 ~FrameGrabberOf_ForwarderWithStream () override=default
 
int height () const override
 Return the height of each frame. More...
 
int width () const override
 Return the width of each frame. More...
 
bool getImage (yarp::sig::FlexImage &image) override
 Get an image from the frame grabber. More...
 
bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int >> vertices, yarp::sig::FlexImage &image) override
 Get a crop of the image from the frame grabber. More...
 
void setStreamReceiver (StreamReceiver *m_streamReceiver)
 
- Public Member Functions inherited from yarp::proto::framegrabber::FrameGrabberControls_Forwarder
 FrameGrabberControls_Forwarder (yarp::os::Port &port)
 
 ~FrameGrabberControls_Forwarder () override=default
 
bool getCameraDescription (CameraDescriptor *camera) override
 Get a basic description of the camera hw. More...
 
bool hasFeature (int feature, bool *hasFeature) override
 Check if camera has the requested feature (saturation, brightness ... More...
 
bool setFeature (int feature, double value) override
 Set the requested feature to a value (saturation, brightness ... More...
 
bool getFeature (int feature, double *value) override
 Get the current value for the requested feature. More...
 
bool setFeature (int feature, double value1, double value2) override
 Set the requested feature to a value using 2 params (like white balance) More...
 
bool getFeature (int feature, double *value1, double *value2) override
 Get the current value for the requested feature. More...
 
bool hasOnOff (int feature, bool *HasOnOff) override
 Check if the camera has the ability to turn on/off the requested feature. More...
 
bool setActive (int feature, bool onoff) override
 Set the requested feature on or off. More...
 
bool getActive (int feature, bool *isActive) override
 Get the current status of the feature, on or off. More...
 
bool hasAuto (int feature, bool *hasAuto) override
 Check if the requested feature has the 'auto' mode. More...
 
bool hasManual (int feature, bool *hasManual) override
 Check if the requested feature has the 'manual' mode. More...
 
bool hasOnePush (int feature, bool *hasOnePush) override
 Check if the requested feature has the 'onePush' mode. More...
 
bool setMode (int feature, FeatureMode mode) override
 Set the requested mode for the feature. More...
 
bool getMode (int feature, FeatureMode *mode) override
 Get the current mode for the feature. More...
 
bool setOnePush (int feature) override
 Set the requested feature to a value (saturation, brightness ... More...
 
bool setBrightness (double v) override
 Set the brightness. More...
 
double getBrightness () override
 Read the brightness parameter. More...
 
bool setExposure (double v) override
 Set the exposure. More...
 
double getExposure () override
 Read the exposure parameter. More...
 
bool setSharpness (double v) override
 Set the sharpness. More...
 
double getSharpness () override
 Read the sharpness parameter. More...
 
bool setWhiteBalance (double blue, double red) override
 Set the white balance for the frame grabber. More...
 
bool getWhiteBalance (double &blue, double &red) override
 Read the white balance parameters. More...
 
bool setHue (double v) override
 Set the hue. More...
 
double getHue () override
 Read the hue parameter. More...
 
bool setSaturation (double v) override
 Set the saturation. More...
 
double getSaturation () override
 Read the saturation parameter. More...
 
bool setGamma (double v) override
 Set the gamma. More...
 
double getGamma () override
 Read the gamma parameter. More...
 
bool setShutter (double v) override
 Set the shutter parameter. More...
 
double getShutter () override
 Read the shutter parameter. More...
 
bool setGain (double v) override
 Set the gain. More...
 
double getGain () override
 Read the gain parameter. More...
 
bool setIris (double v) override
 Set the iris. More...
 
double getIris () override
 Read the iris parameter. More...
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberControls
virtual ~IFrameGrabberControls ()
 Destructor. More...
 
std::string busType2String (BusType type)
 
FeatureMode toFeatureMode (bool _auto)
 
- Public Member Functions inherited from yarp::proto::framegrabber::FrameGrabberControlsDC1394_Forwarder
 FrameGrabberControlsDC1394_Forwarder (yarp::os::Port &port)
 
 ~FrameGrabberControlsDC1394_Forwarder () override=default
 
unsigned int getVideoModeMaskDC1394 () override
 
unsigned int getVideoModeDC1394 () override
 
bool setVideoModeDC1394 (int video_mode) override
 
unsigned int getFPSMaskDC1394 () override
 
unsigned int getFPSDC1394 () override
 
bool setFPSDC1394 (int fps) override
 
unsigned int getISOSpeedDC1394 () override
 
bool setISOSpeedDC1394 (int speed) override
 
unsigned int getColorCodingMaskDC1394 (unsigned int video_mode) override
 
unsigned int getColorCodingDC1394 () override
 
bool setColorCodingDC1394 (int coding) override
 
bool getFormat7MaxWindowDC1394 (unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep) override
 
bool getFormat7WindowDC1394 (unsigned int &xdim, unsigned int &ydim, int &x0, int &y0) override
 
bool setFormat7WindowDC1394 (unsigned int xdim, unsigned int ydim, int x0, int y0) override
 
bool setOperationModeDC1394 (bool b1394b) override
 
bool getOperationModeDC1394 () override
 
bool setTransmissionDC1394 (bool bTxON) override
 
bool getTransmissionDC1394 () override
 
bool setBroadcastDC1394 (bool onoff) override
 
bool setDefaultsDC1394 () override
 
bool setResetDC1394 () override
 
bool setPowerDC1394 (bool onoff) override
 
bool setCaptureDC1394 (bool bON) override
 
bool setBytesPerPacketDC1394 (unsigned int bpp) override
 
unsigned int getBytesPerPacketDC1394 () override
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberControlsDC1394
virtual ~IFrameGrabberControlsDC1394 ()
 
- Public Member Functions inherited from yarp::proto::framegrabber::RgbVisualParams_Forwarder
 RgbVisualParams_Forwarder (yarp::os::Port &port)
 
 ~RgbVisualParams_Forwarder () override=default
 
int getRgbHeight () override
 Return the height of each frame. More...
 
int getRgbWidth () override
 Return the width of each frame. More...
 
bool getRgbSupportedConfigurations (yarp::sig::VectorOf< yarp::dev::CameraConfig > &configurations) override
 Get the possible configurations of the camera. More...
 
bool getRgbResolution (int &width, int &height) override
 Get the resolution of the rgb image from the camera. More...
 
bool setRgbResolution (int width, int height) override
 Set the resolution of the rgb image from the camera. More...
 
bool getRgbFOV (double &horizontalFov, double &verticalFov) override
 Get the field of view (FOV) of the rgb camera. More...
 
bool setRgbFOV (double horizontalFov, double verticalFov) override
 Set the field of view (FOV) of the rgb camera. More...
 
bool getRgbIntrinsicParam (yarp::os::Property &intrinsic) override
 Get the intrinsic parameters of the rgb camera. More...
 
bool getRgbMirroring (bool &mirror) override
 Get the mirroring setting of the sensor. More...
 
bool setRgbMirroring (bool mirror) override
 Set the mirroring setting of the sensor. More...
 
- Public Member Functions inherited from yarp::dev::IRgbVisualParams
virtual ~IRgbVisualParams ()
 
- Public Member Functions inherited from yarp::dev::IPreciselyTimed
virtual ~IPreciselyTimed ()
 

Additional Inherited Members

- Protected Attributes inherited from yarp::proto::framegrabber::RgbVisualParams_Forwarder
yarp::os::Portm_port
 

Detailed Description

frameGrabber_nws_yarp: Connect to a frameGrabber_nws_yarp.

frameGrabber_nws_yarp

Definition at line 84 of file FrameGrabber_nwc_yarp.h.

Constructor & Destructor Documentation

◆ FrameGrabber_nwc_yarp() [1/3]

FrameGrabber_nwc_yarp::FrameGrabber_nwc_yarp ( )

Definition at line 182 of file FrameGrabber_nwc_yarp.cpp.

◆ FrameGrabber_nwc_yarp() [2/3]

FrameGrabber_nwc_yarp::FrameGrabber_nwc_yarp ( const FrameGrabber_nwc_yarp )
delete

◆ FrameGrabber_nwc_yarp() [3/3]

FrameGrabber_nwc_yarp::FrameGrabber_nwc_yarp ( FrameGrabber_nwc_yarp &&  )
delete

◆ ~FrameGrabber_nwc_yarp()

FrameGrabber_nwc_yarp::~FrameGrabber_nwc_yarp ( )
overridedefault

Member Function Documentation

◆ close()

bool FrameGrabber_nwc_yarp::close ( )
overridevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 226 of file FrameGrabber_nwc_yarp.cpp.

◆ getLastInputStamp()

yarp::os::Stamp FrameGrabber_nwc_yarp::getLastInputStamp ( )
overridevirtual

Return the time stamp relative to the last acquisition.

Implements yarp::dev::IPreciselyTimed.

Definition at line 237 of file FrameGrabber_nwc_yarp.cpp.

◆ open()

bool FrameGrabber_nwc_yarp::open ( yarp::os::Searchable config)
overridevirtual

Open the DeviceDriver.

Parameters
configis a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device).
Returns
true/false upon success/failure

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 194 of file FrameGrabber_nwc_yarp.cpp.

◆ operator=() [1/2]

FrameGrabber_nwc_yarp& FrameGrabber_nwc_yarp::operator= ( const FrameGrabber_nwc_yarp )
delete

◆ operator=() [2/2]

FrameGrabber_nwc_yarp& FrameGrabber_nwc_yarp::operator= ( FrameGrabber_nwc_yarp &&  )
delete

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