Loading...
Searching...
No Matches
modelIP.hh
Go to the documentation of this file.
1#ifndef MODEL_H
2#define MODEL_H
3
5
6class ModelIP : public DynamicModel<double, 5, 1> {
7 public:
8 ModelIP(double& mydt, bool noiseOnParameters = 0);
9 virtual ~ModelIP(){};
10
11 private:
12 protected:
13 // attributes //
14 public:
15 private:
16 double dt;
17
18 private:
19 double J;
20 double K_M;
21 double f_VL;
22 double R_th;
23 double tau_th;
24
25 private:
26 stateVec_t Xreal, dX;
27 stateVec_t x_next, k1, k2, k3, k4;
28 stateMat_t Id;
29
30 stateMat_t QxxCont;
31 commandMat_t QuuCont;
32 commandR_stateC_t QuxCont;
33
34 protected:
35 // methods //
36 public:
37 stateVec_t computeDeriv(double& dt, const stateVec_t& X,
38 const commandVec_t& U);
39 stateVec_t computeNextState(double& dt, const stateVec_t& X,
40 const commandVec_t& U);
41 void computeModelDeriv(double& dt, const stateVec_t& X,
42 const commandVec_t& U);
46
47 private:
48 protected:
49 // accessors //
50 public:
51};
52
53#endif // MODEL_H
Definition dynamicmodel.hh:7
Eigen::Matrix< double, stateSize, 1 > stateVec_t
Definition dynamicmodel.hh:9
Eigen::Matrix< double, stateSize, stateSize > stateMat_t
Definition dynamicmodel.hh:13
Eigen::Matrix< double, commandSize, 1 > commandVec_t
Definition dynamicmodel.hh:19
Eigen::Matrix< double, commandSize, stateSize > commandR_stateC_t
Definition dynamicmodel.hh:37
Eigen::Matrix< double, commandSize, commandSize > commandMat_t
Definition dynamicmodel.hh:23
Definition modelIP.hh:6
stateVec_t computeNextState(double &dt, const stateVec_t &X, const commandVec_t &U)
Definition modelIP.cpp:73
commandMat_t computeTensorContuu(const stateVec_t &nextVx)
Definition modelIP.cpp:103
void computeModelDeriv(double &dt, const stateVec_t &X, const commandVec_t &U)
Definition modelIP.cpp:83
virtual ~ModelIP()
Definition modelIP.hh:9
stateVec_t computeDeriv(double &dt, const stateVec_t &X, const commandVec_t &U)
Definition modelIP.cpp:62
stateMat_t computeTensorContxx(const stateVec_t &nextVx)
Definition modelIP.cpp:99
commandR_stateC_t computeTensorContux(const stateVec_t &nextVx)
Definition modelIP.cpp:107