A sparse MPC solver for walking motion generation.
Functions

Various operations on the vector of states. More...

Functions

void tilde_to_bar (const double sinA, const double cosA, double *state)
 Converts state from X_tilde to X_bar. More...
 
void bar_to_tilde (const double sinA, const double cosA, double *state)
 Converts state from X_tilde to X_bar. More...
 
void tilde_to_orig (const double h, double *state)
 Converts state from X_tilde to original variables. More...
 
void orig_to_tilde (const double h, double *state)
 Converts state from original variables to X_tilde. More...
 
void get_controls (const int preview_window_size, const double *X, const int ind, double *controls)
 Returns the controls,that must be applied to reach the next state. More...
 

Detailed Description

Various operations on the vector of states.

Function Documentation

◆ bar_to_tilde()

void state_handling::bar_to_tilde ( const double  sinA,
const double  cosA,
double *  state 
)

Converts state from X_tilde to X_bar.

Parameters
[in]sinAsin of the rotation angle.
[in]cosAcos of the rotation angle.
[in,out]statethe state (X_bar).

Definition at line 42 of file state_handling.cpp.

◆ get_controls()

void state_handling::get_controls ( const int  preview_window_size,
const double *  X,
const int  ind,
double *  controls 
)

Returns the controls,that must be applied to reach the next state.

Parameters
[in]preview_window_sizesize of the preview window
[in]Xa solution
[in]indindex of the state.
[in,out]controlsthe controls (2 double values)

Definition at line 83 of file state_handling.cpp.

◆ orig_to_tilde()

void state_handling::orig_to_tilde ( const double  h,
double *  state 
)

Converts state from original variables to X_tilde.

Parameters
[in]hhCoM/gravity.
[in,out]statethe state (position, velocity and acceleration of CoM).

Definition at line 68 of file state_handling.cpp.

◆ tilde_to_bar()

void state_handling::tilde_to_bar ( const double  sinA,
const double  cosA,
double *  state 
)

Converts state from X_tilde to X_bar.

Parameters
[in]sinAsin of the rotation angle.
[in]cosAcos of the rotation angle.
[in,out]statethe state (X_tilde).

Definition at line 28 of file state_handling.cpp.

◆ tilde_to_orig()

void state_handling::tilde_to_orig ( const double  h,
double *  state 
)

Converts state from X_tilde to original variables.

Parameters
[in]hhCoM/gravity.
[in,out]statethe state (X_tilde).

Definition at line 56 of file state_handling.cpp.