icub-client
test.h
Go to the documentation of this file.
1 #ifndef HOMEO_TEST
2 #define HOMEO_TEST
3 
4 #include <string>
5 #include <iostream>
6 #include <iomanip>
7 #include <map>
8 
9 #include <yarp/os/all.h>
10 #include <yarp/sig/all.h>
11 
13 
14 #include "sensation.h"
15 
19 class TestSensation: public Sensation
20 {
21 private:
22  bool on;
23  string moduleName, unknown_obj_port_name, confusion_port_name;
24  yarp::os::BufferedPort<Bottle> in;
25  yarp::os::BufferedPort<Bottle> out;
26 
27 
28 public:
29  TestSensation() : on(false) {
30  ;
31  }
32 
33  void configure();
34  void publish();
35  void close_ports() {
36  in.interrupt();
37  in.close();
38  out.interrupt();
39  out.close();
40  }
41 };
42 
43 #endif
void publish()
send sensation data to port
Definition: test.cpp:15
void configure()
Definition: test.cpp:8
void close_ports()
Definition: test.h:35
TestSensation()
Definition: test.h:29