10 #ifndef YARP_DEV_SERVERFRAMEGRABBER_H
11 #define YARP_DEV_SERVERFRAMEGRABBER_H
28 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
31 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
85 public yarp::dev::DataSource<yarp::sig::ImageOf<yarp::sig::PixelRgb>>,
86 public yarp::dev::DataSource<yarp::sig::ImageOf<yarp::sig::PixelMono>>,
87 public yarp::dev::DataSource<yarp::dev::ImageRgbSound>,
88 public yarp::dev::DataSource2<yarp::sig::ImageOf<yarp::sig::PixelRgb>,yarp::sig::Sound>
108 bool addStamp{
false};
110 bool singleThreaded{
false};
122 bool close()
override;
156 int height()
const override;
158 int width()
const override;
define common interfaces to discover remote camera capabilities
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
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
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.
Read a YARP-format image from a device.
Read a YARP-format image from a device.
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.
#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.