|
A sparse MPC solver for walking motion generation.
|
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... | |
Various operations on the vector of states.
| void state_handling::bar_to_tilde | ( | const double | sinA, |
| const double | cosA, | ||
| double * | state | ||
| ) |
Converts state from X_tilde to X_bar.
| [in] | sinA | sin of the rotation angle. |
| [in] | cosA | cos of the rotation angle. |
| [in,out] | state | the state (X_bar). |
Definition at line 42 of file state_handling.cpp.
| 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.
| [in] | preview_window_size | size of the preview window |
| [in] | X | a solution |
| [in] | ind | index of the state. |
| [in,out] | controls | the controls (2 double values) |
Definition at line 83 of file state_handling.cpp.
| void state_handling::orig_to_tilde | ( | const double | h, |
| double * | state | ||
| ) |
Converts state from original variables to X_tilde.
| [in] | h | hCoM/gravity. |
| [in,out] | state | the state (position, velocity and acceleration of CoM). |
Definition at line 68 of file state_handling.cpp.
| void state_handling::tilde_to_bar | ( | const double | sinA, |
| const double | cosA, | ||
| double * | state | ||
| ) |
Converts state from X_tilde to X_bar.
| [in] | sinA | sin of the rotation angle. |
| [in] | cosA | cos of the rotation angle. |
| [in,out] | state | the state (X_tilde). |
Definition at line 28 of file state_handling.cpp.
| void state_handling::tilde_to_orig | ( | const double | h, |
| double * | state | ||
| ) |
Converts state from X_tilde to original variables.
| [in] | h | hCoM/gravity. |
| [in,out] | state | the state (X_tilde). |
Definition at line 56 of file state_handling.cpp.
1.8.15