romeosimpleactuator.hh
Go to the documentation of this file.
1#ifndef ROMEOSIMPLEACTUATOR_H
2#define ROMEOSIMPLEACTUATOR_H
3
5
6class RomeoSimpleActuator : public DynamicModel<double, 4, 1> {
7 public:
8 RomeoSimpleActuator(double& mydt, bool noiseOnParameters = 0);
10
11 private:
12 protected:
13 // attributes //
14 public:
15 private:
16 double dt;
17
18 private:
19 double k;
20 double R;
21 double Jm;
22 double Jl;
23 double fvm;
24 double fvl;
25 double Kt;
26 double mu;
27 double Cf0;
28 double a;
29
30 private:
31 stateVec_t Xreal;
32 stateMat_t Id;
33 stateMat_t A;
34 stateMat_t Ad;
37 double A13atan;
38 double A33atan;
39 stateMat_t fxBase;
40 stateR_commandC_t fuBase;
41
42 stateMat_t QxxCont;
43 commandMat_t QuuCont;
44 commandR_stateC_t QuxCont;
45
46 protected:
47 // methods //
48 public:
49 stateVec_t computeNextState(double& dt, const stateVec_t& X,
50 const commandVec_t& U);
51 void computeModelDeriv(double& dt, const stateVec_t& X,
52 const commandVec_t& U);
56
57 private:
58 protected:
59 // accessors //
60 public:
61};
62
63#endif // ROMEOSIMPLEACTUATOR_H
Definition: dynamicmodel.hh:7
Eigen::Matrix< double, stateSize, 1 > stateVec_t
Definition: dynamicmodel.hh:9
Eigen::Matrix< double, stateSize, commandSize > stateR_commandC_t
Definition: dynamicmodel.hh:29
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: romeosimpleactuator.hh:6
RomeoSimpleActuator(double &mydt, bool noiseOnParameters=0)
Definition: romeosimpleactuator.cpp:15
void computeModelDeriv(double &dt, const stateVec_t &X, const commandVec_t &U)
Definition: romeosimpleactuator.cpp:95
commandMat_t computeTensorContuu(const stateVec_t &nextVx)
Definition: romeosimpleactuator.cpp:116
stateVec_t computeNextState(double &dt, const stateVec_t &X, const commandVec_t &U)
Definition: romeosimpleactuator.cpp:82
commandR_stateC_t computeTensorContux(const stateVec_t &nextVx)
Definition: romeosimpleactuator.cpp:121
virtual ~RomeoSimpleActuator()
Definition: romeosimpleactuator.hh:9
stateMat_t computeTensorContxx(const stateVec_t &nextVx)
Definition: romeosimpleactuator.cpp:111