A sparse MPC solver for walking motion generation.
state_handling.h
Go to the documentation of this file.
1 
8 #ifndef STATE_HANDLING_H
9 #define STATE_HANDLING_H
10 
11 /****************************************
12  * INCLUDES
13  ****************************************/
14 #include "smpc_common.h"
15 
16 
17 /****************************************
18  * PROTOTYPES
19  ****************************************/
22 
26 namespace state_handling
27 {
28  void tilde_to_bar (const double, const double, double *);
29  void bar_to_tilde (const double, const double, double *);
30  void tilde_to_orig (const double, double *);
31  void orig_to_tilde (const double, double *);
32 
33  void get_controls (const int, const double *, const int ind, double *);
34 }
36 #endif /*STATE_HANDLING_H*/
void bar_to_tilde(const double sinA, const double cosA, double *state)
Converts state from X_tilde to X_bar.
void tilde_to_bar(const double sinA, const double cosA, double *state)
Converts state from X_tilde to X_bar.
Various operations on the vector of states.
void orig_to_tilde(const double h, double *state)
Converts state from original variables to X_tilde.
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.
void tilde_to_orig(const double h, double *state)
Converts state from X_tilde to original variables.