A sparse MPC solver for walking motion generation (old version).
|
Inverted pendulum model. More...
#include <WMG.h>
Public Member Functions | |
IPM (const double) | |
Initialize state (A) and control (B) matrices for inverted pendulum model. | |
~IPM () | |
Destructor. | |
void | calculateNextState (smpc::control &, smpc::state_orig &) |
Calculate next state using inverted pendulum model (A and B matrices). | |
Public Attributes | |
smpc::control | control_vector |
smpc::state_orig | state_vector |
double * | A |
State and control matrices, that can be used to determine the next state based on the current state and the controls. | |
double * | B |
State and control matrices, that can be used to determine the next state based on the current state and the controls. |
IPM::IPM | ( | const double | sampling_time | ) |
Initialize state (A) and control (B) matrices for inverted pendulum model.
[in] | sampling_time | period of time T. |
Definition at line 16 of file inverted_pendulum.cpp.
IPM::~IPM | ( | ) |
Destructor.
Definition at line 36 of file inverted_pendulum.cpp.
void IPM::calculateNextState | ( | smpc::control & | control, |
smpc::state_orig & | state | ||
) |
Calculate next state using inverted pendulum model (A and B matrices).
[in] | control | 1x2 vector of controls |
[in,out] | state | 1x6 state vector |
Definition at line 56 of file inverted_pendulum.cpp.
double* IPM::A |
double* IPM::B |