A sparse MPC solver for walking motion generation.
as_problem_param.h
Go to the documentation of this file.
1 
8 #ifndef AS_PROBLEM_PARAM_H
9 #define AS_PROBLEM_PARAM_H
10 
11 /****************************************
12  * INCLUDES
13  ****************************************/
14 
15 #include "smpc_common.h"
16 
17 /****************************************
18  * DEFINES
19  ****************************************/
20 
21 /****************************************
22  * TYPEDEFS
23  ****************************************/
24 namespace AS
25 {
27  {
28  public:
29  // parameters used in generation of A and B matrices
31  double T;
33  double h;
34 
35  double A3;
36  double A6;
37 
38  double B[3];
39  };
40 
41 
46  {
47  public:
48  problem_parameters (const int, const double, const double, const double, const double);
50 
51  void set_state_parameters (const double*, const double*, const double);
52 
53 
55  int N;
56 
57  // static matrices and vectors
59 
60  double i2Q[3];
62 
64 
65  double i2P;
67 
69 
72  double h_initial;
73  };
74 }
76 #endif /*AS_PROBLEM_PARAM_H*/
77 
void set_state_parameters(const double *, const double *, const double)
Initializes quadratic problem.
problem_parameters(const int, const double, const double, const double, const double)
A set of problem parameters.
state_parameters * spar
double h_initial
Height of the CoM at initial state divided by the gravity, this initial state precede the first state...