icub-client
sensationManager.h
Go to the documentation of this file.
1 #ifndef SENSATION_MANAGER
2 #define SENSATION_MANAGER
3 
4 #include <string>
5 #include <iostream>
6 #include <iomanip>
7 #include <yarp/os/all.h>
8 #include <yarp/sig/all.h>
9 #include <map>
10 
11 #include "opcSensation.h"
12 #include "test.h"
13 
14 using namespace std;
15 using namespace yarp::os;
16 using namespace yarp::sig;
17 using namespace icubclient;
18 
22 class SensationManager: public RFModule
23 {
24 private:
25  vector<Sensation*> sensations;
26  Bottle sensationList;
27  string moduleName;
28  Port rpc_in_port;
29 
30 protected:
31  double period;
32 
33 public:
34  SensationManager() : period(0.1) {
35  ;
36  }
37 
38  bool configure(yarp::os::ResourceFinder &rf);
39 
41  {
42  return true;
43  }
44 
45  double getPeriod()
46  {
47  return period;
48  }
49 
50  bool updateModule();
51  bool respond(const Bottle& cmd, Bottle& reply);
52 
53  bool close();
54 
55 };
56 
57 #endif
STL namespace.