iCub-main
Functions | Variables
main.h File Reference
#include <mutex>
#include <string>
#include <sstream>
#include <iomanip>
#include <cstdarg>
#include <math.h>
#include <vector>
#include <gtk/gtk.h>
#include <glib.h>
#include <yarp/os/Time.h>
#include <yarp/os/Port.h>
#include <yarp/os/BufferedPort.h>
#include <yarp/os/Bottle.h>
#include <yarp/sig/Vector.h>
#include <yarp/os/Network.h>
#include <yarp/os/RFModule.h>
#include <iCub/skinDynLib/rpcSkinManager.h>
+ Include dependency graph for main.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool initGuiStatus ()
 
static void printLog (string text)
 
static double round (double value, int decimalDigit)
 
static void openDialog (const char *msg, GtkMessageType type)
 
static void setStatusBarText (string text)
 
static void setStatusBarFreq (bool freqUpdated, double freq)
 
static Bottle sendRpcCommand (bool responseExpected, SkinManagerCommand cmd)
 
static void resetPlotData ()
 

Variables

GtkWindow * window
 
GtkStatusbar * statusBar
 
GtkStatusbar * statusBarFreq
 
GtkProgressBar * progBarCalib
 
GtkButton * btnCalibration
 
GtkToggleButton * btnSmooth
 
GtkToggleButton * btnBinarization
 
GtkScale * scaleSmooth
 
GtkTextView * tvLog
 
GtkTextBuffer * tbLog
 
GtkSpinButton * spinThreshold
 
GtkSpinButton * spinGain
 
GtkSpinButton * spinContGain
 
GtkSpinButton * spinMaxNeighDist
 
GtkTreeView * treeBaselines
 
GtkTreeStore * treeStoreComp
 
GtkCurve * curveComp
 
GtkLabel * lblMaxY
 
GtkLabel * lblMinY
 
GtkLabel * lblMaxX
 
GtkLabel * lblMinX
 
GtkComboBox * comboPort
 
GtkComboBox * comboTriangle
 
GtkComboBox * comboTaxel
 
GtkListStore * listPort
 
GtkListStore * listTriangle
 
GtkListStore * listTaxel
 
GtkLabel * lblInfo
 
Port guiRpcPort
 
BufferedPort< Vector > driftCompMonitorPort
 
BufferedPort< Bottle > driftCompInfoPort
 
BufferedPort< Bottle > portSkinDiagnosticsErrorsIn
 Input port for skin diagnostics erro messages. More...
 
guint timeoutId
 
vector< string > portNames
 
vector< unsigned int > portDim
 
double currentSmoothFactor
 
bool initDone
 
unsigned int currentThreshold
 
double currentCompGain
 
double currentContCompGain
 
double currentMaxNeighDist
 
int currentSampleFreq
 
int currentSampleNum
 
mutex plotSem
 
gint port2plot
 
gint tr2plot
 
gint tax2plot
 
vector< gfloat > dataPlot
 

Function Documentation

◆ initGuiStatus()

bool initGuiStatus ( )

Definition at line 88 of file main.cpp.

◆ openDialog()

static void openDialog ( const char *  msg,
GtkMessageType  type 
)
static

Definition at line 125 of file main.h.

◆ printLog()

static void printLog ( string  text)
static

Definition at line 112 of file main.h.

◆ resetPlotData()

static void resetPlotData ( )
static

Definition at line 175 of file main.h.

◆ round()

static double round ( double  value,
int  decimalDigit 
)
static

Definition at line 120 of file main.h.

◆ sendRpcCommand()

static Bottle sendRpcCommand ( bool  responseExpected,
SkinManagerCommand  cmd 
)
static

Definition at line 153 of file main.h.

◆ setStatusBarFreq()

static void setStatusBarFreq ( bool  freqUpdated,
double  freq 
)
static

Definition at line 140 of file main.h.

◆ setStatusBarText()

static void setStatusBarText ( string  text)
static

Definition at line 135 of file main.h.

Variable Documentation

◆ btnBinarization

GtkToggleButton* btnBinarization

Definition at line 54 of file main.h.

◆ btnCalibration

GtkButton* btnCalibration

Definition at line 52 of file main.h.

◆ btnSmooth

GtkToggleButton* btnSmooth

Definition at line 53 of file main.h.

◆ comboPort

GtkComboBox* comboPort

Definition at line 71 of file main.h.

◆ comboTaxel

GtkComboBox* comboTaxel

Definition at line 73 of file main.h.

◆ comboTriangle

GtkComboBox* comboTriangle

Definition at line 72 of file main.h.

◆ currentCompGain

double currentCompGain

Definition at line 97 of file main.h.

◆ currentContCompGain

double currentContCompGain

Definition at line 98 of file main.h.

◆ currentMaxNeighDist

double currentMaxNeighDist

Definition at line 99 of file main.h.

◆ currentSampleFreq

int currentSampleFreq

Definition at line 100 of file main.h.

◆ currentSampleNum

int currentSampleNum

Definition at line 101 of file main.h.

◆ currentSmoothFactor

double currentSmoothFactor

Definition at line 94 of file main.h.

◆ currentThreshold

unsigned int currentThreshold

Definition at line 96 of file main.h.

◆ curveComp

GtkCurve* curveComp

Definition at line 66 of file main.h.

◆ dataPlot

vector<gfloat> dataPlot

Definition at line 108 of file main.h.

◆ driftCompInfoPort

BufferedPort<Bottle> driftCompInfoPort

Definition at line 83 of file main.h.

◆ driftCompMonitorPort

BufferedPort<Vector> driftCompMonitorPort

Definition at line 82 of file main.h.

◆ guiRpcPort

Port guiRpcPort

Definition at line 81 of file main.h.

◆ initDone

bool initDone

Definition at line 95 of file main.h.

◆ lblInfo

GtkLabel* lblInfo

Definition at line 78 of file main.h.

◆ lblMaxX

GtkLabel* lblMaxX

Definition at line 69 of file main.h.

◆ lblMaxY

GtkLabel* lblMaxY

Definition at line 67 of file main.h.

◆ lblMinX

GtkLabel* lblMinX

Definition at line 70 of file main.h.

◆ lblMinY

GtkLabel* lblMinY

Definition at line 68 of file main.h.

◆ listPort

GtkListStore* listPort

Definition at line 74 of file main.h.

◆ listTaxel

GtkListStore* listTaxel

Definition at line 76 of file main.h.

◆ listTriangle

GtkListStore* listTriangle

Definition at line 75 of file main.h.

◆ plotSem

mutex plotSem

Definition at line 104 of file main.h.

◆ port2plot

gint port2plot

Definition at line 105 of file main.h.

◆ portDim

vector<unsigned int> portDim

Definition at line 93 of file main.h.

◆ portNames

vector<string> portNames

Definition at line 92 of file main.h.

◆ portSkinDiagnosticsErrorsIn

BufferedPort<Bottle> portSkinDiagnosticsErrorsIn

Input port for skin diagnostics erro messages.

Definition at line 86 of file main.h.

◆ progBarCalib

GtkProgressBar* progBarCalib

Definition at line 51 of file main.h.

◆ scaleSmooth

GtkScale* scaleSmooth

Definition at line 55 of file main.h.

◆ spinContGain

GtkSpinButton* spinContGain

Definition at line 60 of file main.h.

◆ spinGain

GtkSpinButton* spinGain

Definition at line 59 of file main.h.

◆ spinMaxNeighDist

GtkSpinButton* spinMaxNeighDist

Definition at line 61 of file main.h.

◆ spinThreshold

GtkSpinButton* spinThreshold

Definition at line 58 of file main.h.

◆ statusBar

GtkStatusbar* statusBar

Definition at line 48 of file main.h.

◆ statusBarFreq

GtkStatusbar* statusBarFreq

Definition at line 49 of file main.h.

◆ tax2plot

gint tax2plot

Definition at line 107 of file main.h.

◆ tbLog

GtkTextBuffer* tbLog

Definition at line 57 of file main.h.

◆ timeoutId

guint timeoutId

Definition at line 91 of file main.h.

◆ tr2plot

gint tr2plot

Definition at line 106 of file main.h.

◆ treeBaselines

GtkTreeView* treeBaselines

Definition at line 63 of file main.h.

◆ treeStoreComp

GtkTreeStore* treeStoreComp

Definition at line 64 of file main.h.

◆ tvLog

GtkTextView* tvLog

Definition at line 56 of file main.h.

◆ window

GtkWindow* window

Definition at line 47 of file main.h.