source: trunk/extremum_seeking/esc_sm/include/esc_sm/sm_esc_1d.h @ 5

Last change on this file since 5 was 5, checked in by wcaarls, 12 years ago

Imported extremum_seeking at revision 987

File size: 1.2 KB
Line 
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"
23using std::sin;
24
25class SMESC1D : public ESC {
26protected:
27        double rho_,k_,alpha_,driving_input_,vel_ref_;
28        bool initialized_,driving_input_init_;
29public:
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();
38protected:
39        int sign(double value);
40};
41
42
43#endif /* SM_ESC_1D_H_ */
Note: See TracBrowser for help on using the repository browser.