7#ifndef YARP_FRAMEGRABBER_NWC_YARP_H
8#define YARP_FRAMEGRABBER_NWC_YARP_H
30 template <
typename ImageType>
33 bool open(
const std::string& local,
34 const std::string& remote,
35 const std::string& carrier);
62 int height()
const override;
63 int width()
const override;
72 mutable std::mutex m_mutex;
108 bool close()
override;
constexpr yarp::conf::vocab32_t VOCAB_RGB_IMAGE
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_IMAGE
yarp::sig::ImageOf< yarp::sig::PixelRgb > ImageType
int width() const override
Return the width of each frame.
bool getImageCrop(cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, ImageType &image) override
Get a crop of the image from the frame grabber.
int height() const override
Return the height of each frame.
void setStreamReceiver(StreamReceiver *m_streamReceiver)
~FrameGrabberOf_ForwarderWithStream() override=default
bool getImage(ImageType &image) override
Get an image from the frame grabber.
This class is the parameters parser for class FrameGrabber_nwc_yarp.
frameGrabber_nwc_yarp: The client of a frameGrabber_nws_yarp.
FrameGrabber_nwc_yarp(const FrameGrabber_nwc_yarp &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
FrameGrabber_nwc_yarp & operator=(FrameGrabber_nwc_yarp &&)=delete
FrameGrabber_nwc_yarp & operator=(const FrameGrabber_nwc_yarp &)=delete
yarp::os::Stamp getLastInputStamp() override
Return the time stamp relative to the last acquisition.
~FrameGrabber_nwc_yarp() override=default
FrameGrabber_nwc_yarp(FrameGrabber_nwc_yarp &&)=delete
bool lastImage(ImageType &image)
yarp::os::Stamp lastStamp() const
bool open(const std::string &local, const std::string &remote, const std::string &carrier)
Interface implemented by all device drivers.
A mini-server for performing network communication in the background.
A mini-server for network communication.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.
This classes implement a sender / parser for IFrameGrabberControls interface messages.
This classes implement a sender / parser for IFrameGrabberOf interface messages.