Go to the documentation of this file.
34 #ifndef SVHPOSITIONSETTINGS_H
35 #define SVHPOSITIONSETTINGS_H
83 size_t size = pos_settings.size();
85 wmn = (size > 0) ? pos_settings[0] : 0.0f;
86 wmx = (size > 1) ? pos_settings[1] : 0.0f;
87 dwmx = (size > 2) ? pos_settings[2] : 0.0f;
88 ky = (size > 3) ? pos_settings[3] : 0.0f;
89 dt = (size > 4) ? pos_settings[4] : 0.0f;
90 imn = (size > 5) ? pos_settings[5] : 0.0f;
91 imx = (size > 6) ? pos_settings[6] : 0.0f;
92 kp = (size > 7) ? pos_settings[7] : 0.0f;
93 ki = (size > 8) ? pos_settings[8] : 0.0f;
94 kd = (size > 9) ? pos_settings[9] : 0.0f;
154 << data.
ki << data.
kd;
162 data.
kp >> data.
ki >> data.
kd;
169 o <<
"wmn " << ps.
wmn <<
" "
170 <<
"wmx " << ps.
wmx <<
" "
171 <<
"dwmx " << ps.
dwmx <<
" "
172 <<
"ky " << ps.
ky <<
" "
173 <<
"dt " << ps.
dt <<
" "
174 <<
"imn " << ps.
imn <<
" "
175 <<
"imx " << ps.
imx <<
" "
176 <<
"kp " << ps.
kp <<
" "
177 <<
"ki " << ps.
ki <<
" "
178 <<
"kd " << ps.
kd <<
" " << std::endl;
185 #endif // SVHPOSITIONSETTINGS_H
float ky
Measurement scaling.
float wmx
Reference signal maximum value.
float dt
Time base of controller.
float kp
Proportional gain.
float dwmx
Reference signal delta maximum threshold.
SVHPositionSettings(const float &wmn, const float &wmx, const float &dwmx, const float &ky, const float &dt, const float &imn, const float &imx, const float &kp, const float &ki, const float &kd)
SVHPositionSettings Constructs a new positition settings object to configure the position controller ...
SVHPositionSettings()
SVHPositionSettings Defaault constructor. Intitializes everything to zero.
float wmn
Reference signal minimum value.
The SVHPositionSettings save the position controller paramters for a single motor.
float kd
Differential gain.
float imx
Integral windup maximum value.
bool operator==(const SVHPositionSettings &other) const
Compares two SVHPositionsetting objects.
driver_svh::ArrayBuilder & operator>>(driver_svh::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
driver_svh::ArrayBuilder & operator<<(driver_svh::ArrayBuilder &ab, const SVHControlCommand &data)
SVHPositionSettings(const std::vector< float > &pos_settings)
SVHPositionSettings Construct positions settings from a plain vector if the Vector is smaler than 10 ...
float imn
Integral windup minimum value.
schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:53:52