iCub-main
Loading...
Searching...
No Matches
portthread.h
Go to the documentation of this file.
1#ifndef PORTTHREAD_H
2#define PORTTHREAD_H
3
4#include <QThread>
5
6#include <string>
7#include <sstream>
8#include <iomanip> // io manipulator (setw, setfill)
9#include <cstdarg>
10//#include <cstdlib>
11#include <math.h>
12#include <vector>
13
14
15#include <yarp/os/Time.h>
16#include <yarp/os/Port.h>
17#include <yarp/os/BufferedPort.h>
18#include <yarp/os/Bottle.h>
19#include <yarp/sig/Vector.h>
20#include <yarp/os/Network.h>
21#include <yarp/os/RFModule.h>
22
24
25using namespace std;
26using namespace yarp::os;
27using namespace yarp::sig;
28using namespace iCub::skinManager;
29
30class PortThread : public QThread
31{
32 Q_OBJECT
33public:
34 explicit PortThread(QObject *parent = 0);
35 void closePorts();
36 void stop();
37 Bottle sendRpcCommand(bool responseExpected, SkinManagerCommand cmd);
38
39protected:
40 void run();
41
42public:
43 Port *guiRpcPort; // to send rpc command to the module
44 BufferedPort<Vector> *driftCompMonitorPort; // for reading streaming data (frequency, drift)
45 BufferedPort<Bottle> *driftCompInfoPort; // for reading sporadic msgs (errors, warnings)
46
47signals:
48
50 void openErrorDialog(QString);
51
52public slots:
53
54};
55
56#endif // PORTTHREAD_H
void portCreated()
Port * guiRpcPort
Definition portthread.h:43
void openErrorDialog(QString)
void closePorts()
BufferedPort< Vector > * driftCompMonitorPort
Definition portthread.h:44
Bottle sendRpcCommand(bool responseExpected, SkinManagerCommand cmd)
BufferedPort< Bottle > * driftCompInfoPort
Definition portthread.h:45
void stop()
cmd
Definition dataTypes.h:30