himrep
linearClassifierModule.h
1 #include <iostream>
2 #include <string>
3 #include <yarp/sig/all.h>
4 #include <yarp/os/all.h>
5 #include <yarp/os/RFModule.h>
6 #include <yarp/os/Network.h>
7 #include <yarp/os/Thread.h>
8 #include "linearClassifierThread.h"
9 
10 using namespace std;
11 using namespace yarp::os;
12 using namespace yarp::sig;
13 
14 
15 class linearClassifierModule:public RFModule
16 {
17  string handlerPortName;
18  int thresholdValue;
19 
20  Port handlerPort;
21 
22 
23  linearClassifierThread * lCThread;
24 
25 
26 public:
27 
28  bool configure(yarp::os::ResourceFinder &rf);
29  bool interruptModule();
30  bool close();
31  bool respond(const Bottle& command, Bottle& reply);
32  double getPeriod();
33  bool updateModule();
34 
35 
36 
37 };
38