8 #include <QRadioButton>
10 #include <trajectory_editor/historykeeper.h>
11 #include <trajectory_editor/spaces/basicsmallview.h>
13 #include <motion_file/motionfile.h>
15 class PIDView :
public BasicSmallView
30 PIDView(BasicSmallView::Alignment alignment, BasicSmallView::Type type, std::string jointName,
bool shiftMirrored, QWidget *parent = 0);
33 void setField(PIDView::Field field,
double value);
38 kf_player::gainSelectEnum getFlag();
40 void clearHistoryOfChanges();
43 void fieldChanged(PIDView::Field);
50 void limitSpinChanged();
52 void p_RadioChanged();
53 void i_RadioChanged();
54 void d_RadioChanged();
57 void blockRadioButtons(
bool block);
58 void updateBackgroundColor(QDoubleSpinBox *spin,
float boundary);
61 QDoubleSpinBox *p_Spin;
62 QDoubleSpinBox *i_Spin;
63 QDoubleSpinBox *d_Spin;
65 QDoubleSpinBox *limit_Spin;
67 QRadioButton *p_Radio;
68 QRadioButton *i_Radio;
69 QRadioButton *d_Radio;
71 HistoryKeeper *p_History;
72 HistoryKeeper *i_History;
73 HistoryKeeper *d_History;
76 static const float p_ColorBoundary = 0.4;
77 static const float i_ColorBoundary = 0.15;
78 static const float d_ColorBoundary = 0.15;