22 const double gain_position,
23 const double gain_velocity,
24 const double gain_acceleration,
25 const double gain_jerk)
29 i2Q[0] = 1/(2*(gain_position/2));
30 i2Q[1] = 1/(2*(gain_velocity/2));
31 i2Q[2] = 1/(2*(gain_acceleration/2));
33 i2P = 1/(2 * (gain_jerk/2));
56 const double h_initial_)
60 for (
int i = 0; i <
N; i++)
68 spar[i].
A6 = T_[i]*T_[i]/2 - (h_[i] - h_[i-1]);
75 spar[i].
B[1] = T_[i]*T_[i]/2;
76 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)
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...