GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: include/ddp-actuator-solver/linear/modelLinear.hh Lines: 0 1 0.0 %
Date: 2023-06-02 15:50:43 Branches: 0 0 - %

Line Branch Exec Source
1
#ifndef MODEL_H
2
#define MODEL_H
3
4
#include <ddp-actuator-solver/dynamicmodel.hh>
5
6
class ModelLinear : public DynamicModel<double, 2, 1> {
7
 public:
8
  ModelLinear(double& mydt, bool noiseOnParameters = 0);
9
  virtual ~ModelLinear(){};
10
11
 private:
12
 protected:
13
  // attributes //
14
 public:
15
 private:
16
  double dt;
17
  double l;
18
  double M;
19
  double m;
20
  double g;
21
22
 private:
23
  stateVec_t Xreal, dX;
24
  stateVec_t x_next, k1, k2, k3, k4;
25
  stateMat_t Id;
26
27
  stateMat_t QxxCont;
28
  commandMat_t QuuCont;
29
  commandR_stateC_t QuxCont;
30
31
 protected:
32
  // methods //
33
 public:
34
  stateVec_t computeDeriv(double& dt, const stateVec_t& X,
35
                          const commandVec_t& U);
36
  stateVec_t computeNextState(double& dt, const stateVec_t& X,
37
                              const commandVec_t& U);
38
  void computeModelDeriv(double& dt, const stateVec_t& X,
39
                         const commandVec_t& U);
40
  stateMat_t computeTensorContxx(const stateVec_t& nextVx);
41
  commandMat_t computeTensorContuu(const stateVec_t& nextVx);
42
  commandR_stateC_t computeTensorContux(const stateVec_t& nextVx);
43
44
 private:
45
 protected:
46
  // accessors //
47
 public:
48
};
49
50
#endif  // MODEL_H