19 #include <yarp/os/Time.h>
20 #include <yarp/os/Port.h>
21 #include <yarp/os/BufferedPort.h>
22 #include <yarp/os/Bottle.h>
23 #include <yarp/sig/Vector.h>
24 #include <yarp/os/Network.h>
25 #include <yarp/os/RFModule.h>
30 using namespace yarp::os;
31 using namespace yarp::sig;
44 explicit MainWindow(ResourceFinder *rf, QWidget *parent = 0);
49 void printLog(QString);
50 double round(
double value,
int decimalDigit);
53 void changeSmooth(
int val);
54 void setMsgFreq(
bool freqUpdated,
double freq);
61 QTimer calibratingTimer;
63 bool smoothSliderPressed;
68 vector<string> portNames;
69 vector<unsigned int> portDim;
70 double currentSmoothFactor;
72 unsigned int currentThreshold;
73 double currentCompGain;
74 double currentContCompGain;
75 double currentMaxNeighDist;
76 int currentSampleFreq;
83 void onOpenErrorDialog(QString);
84 void onCalibratingTimer();
87 void onBinarization(
bool btnState);
88 void onSmooth(
bool btnState);
89 void onSmoothValueChanged(
int);
90 void onSmoothValuePressed();
91 void onSmoothValueReleased();
92 void onSpinNeighborChanged(
double);
93 void onSpinCompContactGainChanged(
double);
94 void onSpinCompGainChanged(
double);
95 void onSpinThresholdChanged(
int);
96 void onSampleFreqChanged(
int);