YARP
Yet Another Robot Platform
FrameGrabberOf_Responder.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_FRAMEGRABBER_PROTOCOL_FRAMEGRABBERIMAGE_RESPONDER_H
7 #define YARP_FRAMEGRABBER_PROTOCOL_FRAMEGRABBERIMAGE_RESPONDER_H
8 
11 
12 #include "CameraVocabs.h"
13 
14 namespace yarp {
15 namespace proto {
16 namespace framegrabber {
17 
18 template <typename ImageType,
23 {
24 private:
25  yarp::dev::IFrameGrabberOf<ImageType>* iFrameGrabberOf {nullptr};
26 
27 public:
29  ~FrameGrabberOf_Responder() override = default;
30 
32  bool respond(const yarp::os::Bottle& cmd, yarp::os::Bottle& response) override;
33 };
34 
35 } // namespace framegrabber
36 } // namespace proto
37 } // namespace yarp
38 
40 
41 #endif // YARP_FRAMEGRABBER_PROTOCOL_FRAMEGRABBERIMAGE_RESPONDER_H
constexpr yarp::conf::vocab32_t VOCAB_RGB_IMAGE
Definition: CameraVocabs.h:116
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_IMAGE
Definition: CameraVocabs.h:16
A cheap and cheerful framework for human readable/writable forms of messages to devices.
Definition: DeviceDriver.h:131
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:74
bool configure(yarp::dev::IFrameGrabberOf< ImageType > *interface)
bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &response) override
Respond to a message.
std::int32_t vocab32_t
Definition: numeric.h:78
The main, catch-all namespace for YARP.
Definition: dirs.h:16