[5] | 1 | /* |
---|
| 2 | * sm_esc_1d.h |
---|
| 3 | * |
---|
| 4 | * Created on: Jul 30, 2012 |
---|
| 5 | * Author: Berk Calli |
---|
| 6 | * Organization: Delft Biorobotics Lab., Delft University of Technology |
---|
| 7 | * Contact info: b.calli@tudelft.nl, web: www.dbl.tudelft.nl |
---|
| 8 | * |
---|
| 9 | * Header file of the class for one dimensional sliding mode extremum seeking control with periodic driving signal |
---|
| 10 | * |
---|
| 11 | * * References: |
---|
| 12 | * - H. Yu and U. Ozguner, âExtremum-seeking Control Strategy for ABS System with Time Delay,â ACC 2002. |
---|
| 13 | * - B. Calli, W. Caarls, P. Jonker and M. Wisse, "Comparison of Extremum Seeking Control Algorithms for Robotic Applications", IROS 2012. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #ifndef SM_ESC_1D_H_ |
---|
| 18 | #define SM_ESC_1D_H_ |
---|
| 19 | |
---|
| 20 | #include "esc_common/esc.h" |
---|
| 21 | #include "stdio.h" |
---|
| 22 | #include "cmath" |
---|
| 23 | using std::sin; |
---|
| 24 | |
---|
| 25 | class SMESC1D : public ESC { |
---|
| 26 | protected: |
---|
| 27 | double rho_,k_,alpha_,driving_input_,vel_ref_; |
---|
| 28 | bool initialized_,driving_input_init_; |
---|
| 29 | public: |
---|
| 30 | SMESC1D(); |
---|
| 31 | SMESC1D(double rho, double k, double alpha); |
---|
| 32 | void init(double rho, double k, double alpha); |
---|
| 33 | inputType getInputType(); |
---|
| 34 | outputType getOutputType(); |
---|
| 35 | std::vector<double> step(double obj_val); |
---|
| 36 | std::vector<double> monitor(); |
---|
| 37 | std::vector<std::string> monitorNames(); |
---|
| 38 | protected: |
---|
| 39 | int sign(double value); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | #endif /* SM_ESC_1D_H_ */ |
---|