YARP
Yet Another Robot Platform
DepthImage2.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_CARRIER_DEPTHIMAGE2_CONVERTER_H
10 #define YARP_CARRIER_DEPTHIMAGE2_CONVERTER_H
11 
12 #include <yarp/os/Bottle.h>
13 #include <yarp/os/Things.h>
14 #include <yarp/os/MonitorObject.h>
15 #include <yarp/sig/Image.h>
16 
17 //example usage:
18 //yarp connect /grabber/depth:o /yarpview/img:i tcp+recv.portmonitor+type.dll+file.depthimage2
19 
21 {
22 public:
23  bool create(const yarp::os::Property& options) override;
24  void destroy() override;
25 
26  bool setparam(const yarp::os::Property& params) override;
27  bool getparam(yarp::os::Property& params) override;
28 
29  bool accept(yarp::os::Things& thing) override;
30  yarp::os::Things& update(yarp::os::Things& thing) override;
31 
32 private:
33 
34  double min, max;
37  yarp::sig::FlexImage outImg;
38 };
39 
40 #endif // YARP_CARRIER_DEPTHIMAGE2_CONVERTER_H
yarp::os::Bottle
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:73
Things.h
yarp::os::MonitorObject
Definition: MonitorObject.h:26
DepthImageConverter::create
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
Definition: DepthImage2.cpp:53
yarp::os::Things
Base class for generic things.
Definition: Things.h:22
DepthImageConverter
Definition: DepthImage2.h:21
DepthImageConverter::setparam
bool setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set via Yarp admin port.
Definition: DepthImage2.cpp:65
yarp::sig::FlexImage
Image class with user control of representation details.
Definition: Image.h:403
DepthImageConverter::accept
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
Definition: DepthImage2.cpp:75
Image.h
DepthImageConverter::update
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
Definition: DepthImage2.cpp:96
MonitorObject.h
DepthImageConverter::getparam
bool getparam(yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are requested via Yarp admin port.
Definition: DepthImage2.cpp:70
DepthImageConverter::destroy
void destroy() override
This will be called when the portmonitor object destroyes.
Definition: DepthImage2.cpp:61
Bottle.h
yarp::os::Property
A class for storing options and configuration information.
Definition: Property.h:37