8 #include <QDoubleSpinBox>
11 namespace control_widget
19 static const QString failure = QString(
"Red");
20 static const QString success = QString(
"Green");
21 static const QString input = QString(
"Blue");
22 static const QString output = QString(
"MediumVioletRed");
29 Service(std::string name);
32 virtual bool call(QStringList &output);
35 template<
typename Req,
typename Res>
36 bool callService(Req &request, Res &response, QStringList &output);
38 template<
typename Req>
39 bool callService(Req &request, QStringList &output);
41 void prependTime(QString &text)
const;
42 QString separator()
const;
43 void setHtmlColor(QString &text, QString color)
const;
46 std::string serviceName;
50 class ResetConfig :
public Service
53 ResetConfig(std::string name);
54 bool call(QStringList &output);
57 class SaveConfig :
public Service
60 SaveConfig(std::string name);
61 bool call(QStringList &output);
64 class AttEstCalib :
public Service
67 AttEstCalib(std::string name);
68 bool call(QStringList &output);
71 class ShowDeadVars :
public Service
74 ShowDeadVars(std::string name, QLineEdit *path_);
75 bool call(QStringList &output);
81 class MagCalib2D :
public Service
84 MagCalib2D(std::string name);
85 bool call(QStringList &output);
88 class MagCalib3D :
public Service
91 MagCalib3D(std::string name);
92 bool call(QStringList &output);
95 class MagCalibShow :
public Service
98 MagCalibShow(std::string name);
99 bool call(QStringList &output);
102 class WarpAddPoint :
public Service
105 WarpAddPoint(std::string name,
float value_);
106 bool call(QStringList &output);
112 class SetOdom :
public Service
115 SetOdom(std::string name, QDoubleSpinBox *x_, QDoubleSpinBox *y_, QDoubleSpinBox *theta_);
116 bool call(QStringList &output);
121 QDoubleSpinBox *theta;
124 class ReadOffset :
public Service
127 ReadOffset(std::string name, QLineEdit *joint_);
128 bool call(QStringList &output);
134 class UseLastServerIP :
public Service
137 UseLastServerIP(std::string name);
138 bool call(QStringList &output);
141 class Empty :
public Service
144 Empty(std::string name);
145 bool call(QStringList &output);