iCub-main
Loading...
Searching...
No Matches
stereoCalibModule.h
Go to the documentation of this file.
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 "stereoCalibThread.h"
9
10using namespace std;
11using namespace yarp::os;
12using namespace yarp::sig;
13
14
15class stereoCalibModule:public RFModule
16{
17 string moduleName;
18 string inputLeftPortName;
19 string inputRightPortName;
20 string outputPortNameRight;
21 string outputPortNameLeft;
22 string handlerPortName;
23 string outputCalibPath;
24
25 int thresholdValue;
26
27
28
29 BufferedPort<ImageOf<PixelBgr> > imageOut;
30 Port handlerPort;
31
32
33 stereoCalibThread *calibThread;
34
35
36public:
37
38 bool configure(yarp::os::ResourceFinder &rf);
39 bool interruptModule();
40 bool close();
41 bool respond(const Bottle& command, Bottle& reply);
42 double getPeriod();
43 bool updateModule();
44};
45
bool respond(const Bottle &command, Bottle &reply)
bool configure(yarp::os::ResourceFinder &rf)