25 const double gain_position,
26 const double gain_velocity,
27 const double gain_acceleration,
28 const double gain_jerk)
32 i2Q[0] = 1/(2*(gain_position/2));
33 i2Q[1] = 1/(2*(gain_velocity/2));
34 i2Q[2] = 1/(2*(gain_acceleration/2));
36 i2P = 1/(2 * (gain_jerk/2));
60 const double h_initial_,
65 for (
int i = 0; i <
N; i++)
76 spar[i].
A6 = T_[i]*T_[i]/2 - (h_[i] - h_[i-1]);
83 spar[i].
B[1] = T_[i]*T_[i]/2;
84 spar[i].
B[0] =
spar[i].
B[1]*T_[i]/3 - h_[i]*T_[i];
void set_state_parameters(const double *, const double *, const double, const double *)
Initializes quadratic problem.
problem_parameters(const int, const double, const double, const double, const double)
double h_initial
Height of the CoM at initial state divided by the gravity, this initial state precede the first state...