TwoDofControllerDynamicsModel.h
Go to the documentation of this file.
1 // -*- C++ -*-
10 #ifndef TWO_DOF_CONTROLLER_DYNAMICS_MODEL_H
11 #define TWO_DOF_CONTROLLER_DYNAMICS_MODEL_H
12 
13 // </rtc-template>
14 
15 #include "../Stabilizer/TwoDofController.h"
16 #include "Convolution.h"
17 #include <vector>
18 
20 public:
22  public:
24  alpha = beta = ki = tc = dt = 0.0; // set default param
25  }
27  }
28  static int getControllerParamNum() {
29  return 4;
30  }
31  double alpha; // completing squared param (s + alpha)^2 - beta^2
32  double beta; // completing square param (s + alpha)^2 - beta^2
33  double ki; // virtual inertia
34  double tc; // time constant
35  double dt; // control cycle (not controller but system parameter)
36  };
38  TwoDofControllerDynamicsModel(TwoDofControllerDynamicsModelParam &_param, unsigned int _range = 0);
40  void setup();
41  void setup(TwoDofControllerDynamicsModelParam &_param, unsigned int _range = 0);
42  void reset();
43  double update(double _x, double _xd);
44  bool getParameter();
46 
47 private:
49  double current_time;
51  std::vector<double> exp_sinh;
52  std::vector<Convolution> convolutions;
53 };
54 
55 #endif // TWO_DOF_CONTROLLER_DYNAMICS_MODEL_H
TwoDofControllerDynamicsModelParam param
Convolution Calculator.


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51