7 #ifndef YARP_DEV_SERVERFRAMEGRABBER_H
8 #define YARP_DEV_SERVERFRAMEGRABBER_H
24 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
26 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
29 #define YARP_INCLUDING_DEPRECATED_HEADER_YARP_DEV_DATASOURCE_H_ON_PURPOSE
31 #undef YARP_INCLUDING_DEPRECATED_HEADER_YARP_DEV_DATASOURCE_H_ON_PURPOSE
88 public yarp::dev::DataSource<yarp::sig::ImageOf<yarp::sig::PixelRgb>>,
89 public yarp::dev::DataSource<yarp::sig::ImageOf<yarp::sig::PixelMono>>,
90 public yarp::dev::DataSource<yarp::dev::ImageRgbSound>,
91 public yarp::dev::DataSource2<yarp::sig::ImageOf<yarp::sig::PixelRgb>,yarp::sig::Sound>
111 bool addStamp{
false};
113 bool singleThreaded{
false};
125 bool close()
override;
159 int height()
const override;
161 int width()
const override;
grabber: Export a frame grabber to the network.
ServerFrameGrabber & operator=(ServerFrameGrabber &&)=delete
bool close() override
Close the DeviceDriver.
virtual bool respond(const yarp::os::Bottle &command, yarp::os::Bottle &reply) override
Respond to a message.
ServerFrameGrabber(ServerFrameGrabber &&)=delete
int width() const override
Return the width of each frame.
bool getDatum(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
bool stopService() override
Shut down the service, whatever it is.
ServerFrameGrabber & operator=(const ServerFrameGrabber &)=delete
bool startService() override
Initiate the service, whatever it is.
ServerFrameGrabber(const ServerFrameGrabber &)=delete
~ServerFrameGrabber() override=default
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
bool open(yarp::os::Searchable &config) override
Configure with a set of options.
int height() const override
Return the height of each frame.
virtual bool getAudioVisual(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image, yarp::sig::Sound &sound) override
Get an image and sound.
bool updateService() override
Give the service the chance to run for a while.
ServerFrameGrabber()=default
Interface implemented by deprecated device drivers.
A cheap and cheerful framework for human readable/writable forms of messages to devices.
Read a YARP-format sound block from a device.
Read a YARP-format image and sound from a device.
Control interface for frame grabber devices.
An interface for retrieving intrinsic parameter from a rgb camera.
Common interface for devices that act like services (by which we mean they do something for remote us...
A container for a device driver.
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for network communication.
Group a pair of objects to be sent and received together.
This class takes a Runnable instance and wraps a thread around it.
A base class for nested structures that can be searched.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
#define YARP_DISABLE_DEPRECATED_WARNING
Disable deprecated warnings in the following code.