A sparse MPC solver for walking motion generation.
solver
ip_problem_param.h
Go to the documentation of this file.
1
8
#ifndef IP_PROBLEM_PARAM_H
9
#define IP_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
IP
25
{
26
class
state_parameters
27
{
28
public
:
29
double
cos
;
30
double
sin
;
31
32
// parameters used in generation of A and B matrices
34
double
T
;
36
double
h
;
37
38
double
A3
;
39
double
A6
;
40
41
double
B
[3];
42
};
43
44
48
class
problem_parameters
49
{
50
public
:
51
problem_parameters
(
const
int
,
const
double
,
const
double
,
const
double
,
const
double
);
52
~problem_parameters
();
53
54
void
set_state_parameters
(
const
double
*,
const
double
*,
const
double
,
const
double
*);
55
56
58
int
N
;
59
60
// static matrices and vectors
62
63
double
i2Q
[3];
65
67
68
double
i2P
;
70
73
double
h_initial
;
74
75
state_parameters
*
spar
;
76
};
77
}
79
#endif
/*IP_PROBLEM_PARAM_H*/
80
IP
Definition:
ip_chol_solve.cpp:19
IP::problem_parameters::set_state_parameters
void set_state_parameters(const double *, const double *, const double, const double *)
Initializes quadratic problem.
Definition:
ip_problem_param.cpp:57
IP::problem_parameters
A set of problem parameters.
Definition:
ip_problem_param.h:48
IP::state_parameters::A3
double A3
Definition:
ip_problem_param.h:38
IP::problem_parameters::problem_parameters
problem_parameters(const int, const double, const double, const double, const double)
Definition:
ip_problem_param.cpp:23
IP::state_parameters::A6
double A6
Definition:
ip_problem_param.h:39
IP::state_parameters::T
double T
Definition:
ip_problem_param.h:34
IP::state_parameters::sin
double sin
Definition:
ip_problem_param.h:30
IP::state_parameters
Definition:
ip_problem_param.h:26
IP::problem_parameters::N
int N
Definition:
ip_problem_param.h:58
IP::problem_parameters::spar
state_parameters * spar
Definition:
ip_problem_param.h:75
IP::problem_parameters::~problem_parameters
~problem_parameters()
Definition:
ip_problem_param.cpp:43
IP::state_parameters::cos
double cos
Definition:
ip_problem_param.h:29
IP::problem_parameters::i2Q
double i2Q[3]
Definition:
ip_problem_param.h:63
smpc_common.h
IP::state_parameters::B
double B[3]
Definition:
ip_problem_param.h:41
IP::problem_parameters::h_initial
double h_initial
Height of the CoM at initial state divided by the gravity, this initial state precede the first state...
Definition:
ip_problem_param.h:73
IP::problem_parameters::i2P
double i2P
Definition:
ip_problem_param.h:68
IP::state_parameters::h
double h
Definition:
ip_problem_param.h:36
Generated by
1.8.15