icub-client
utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 WYSIWYD Consortium, European Commission FP7 Project ICT-612139
3  * Authors: Ugo Pattacini, Tobias Fischer
4  * email: ugo.pattacini@iit.it, t.fischer@imperial.ac.uk
5  * Permission is granted to copy, distribute, and/or modify this program
6  * under the terms of the GNU General Public License, version 2 or any
7  * later version published by the Free Software Foundation.
8  *
9  * A copy of the license can be found at
10  * icub-client/license/gpl.txt
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15  * Public License for more details
16 */
17 
18 #ifndef __UTILS_H__
19 #define __UTILS_H__
20 
21 #include <string>
22 
23 #include <yarp/os/all.h>
24 #include <yarp/sig/all.h>
25 
26 #include <opencv2/opencv.hpp>
27 
28 using namespace std;
29 using namespace yarp::os;
30 using namespace yarp::sig;
31 
32 class IOL2OPCBridge; // forward declaration
33 
34 
35 /**********************************************************/
36 class RtLocalization : public RateThread
37 {
38 protected:
40 
41  bool threadInit();
42  void run();
43 
44 public:
46  void setBridge(IOL2OPCBridge *bridge);
47 };
48 
49 
50 /**********************************************************/
51 class OpcUpdater : public RateThread
52 {
53 protected:
55 
56  bool threadInit();
57  void run();
58 
59 public:
60  OpcUpdater();
61  void setBridge(IOL2OPCBridge *bridge);
62 };
63 
64 
65 /**********************************************************/
66 class ClassifierReporter : public PortReport
67 {
68 protected:
70 
71 public:
73  void setBridge(IOL2OPCBridge *bridge);
74  void report(const PortInfo &info);
75 };
76 
77 
78 #endif
79 
IOL2OPCBridge * bridge
Definition: utils.h:69
STL namespace.
IOL2OPCBridge * bridge
Definition: utils.h:54
IOL2OPCBridge * bridge
Definition: utils.h:39