centroidal_control_collection
Public Member Functions | List of all members
CCC::StepMpc1d::StepModel Class Reference

Discrete dynamics on step switching. More...

#include <StepMpc.h>

Inheritance diagram for CCC::StepMpc1d::StepModel:
Inheritance graph
[legend]
Collaboration diagram for CCC::StepMpc1d::StepModel:
Collaboration graph
[legend]

Public Member Functions

 StepModel (double com_height, double step_duration)
 Constructor. More...
 
- Public Member Functions inherited from CCC::StateSpaceModel< StateDim, InputDim, OutputDim >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW StateSpaceModel (int state_dim=StateDim, int input_dim=InputDim, int output_dim=OutputDim)
 Constructor. More...
 
virtual ~StateSpaceModel ()=default
 Destructor. More...
 
int stateDim () const
 Gets the state dimension. More...
 
int inputDim () const
 Gets the input dimension. More...
 
int outputDim () const
 Gets the output dimension. More...
 
StateDimVector stateEq (const StateDimVector &x, const InputDimVector &u) const
 Calculate the continuous state equation. More...
 
StateDimVector stateEqDisc (const StateDimVector &x, const InputDimVector &u) const
 Calculate the discrete state equation. More...
 
OutputDimVector observEq (const StateDimVector &x) const
 Calculate the observation equation. More...
 
OutputDimVector observEq (const StateDimVector &x, const InputDimVector &u) const
 Calculate the observation equation. More...
 
void calcDiscMatrix (double dt)
 Calculate the discrete system matrices \(\boldsymbol{A}_d, \boldsymbol{B}_d, \boldsymbol{e}_d\). More...
 

Additional Inherited Members

- Public Types inherited from CCC::StateSpaceModel< StateDim, InputDim, OutputDim >
using StateDimVector = Eigen::Matrix< double, StateDim, 1 >
 Type of state vector. More...
 
using InputDimVector = Eigen::Matrix< double, InputDim, 1 >
 Type of input vector. More...
 
using OutputDimVector = Eigen::Matrix< double, OutputDim, 1 >
 Type of output vector. More...
 
- Public Attributes inherited from CCC::StateSpaceModel< StateDim, InputDim, OutputDim >
const int state_dim_ = 0
 State dimension. More...
 
const int input_dim_ = 0
 Input dimension. More...
 
const int output_dim_ = 0
 Output dimension. More...
 
Eigen::Matrix< double, StateDim, StateDim > A_
 Matrix \(\boldsymbol{A}\) of continuous state equation. More...
 
Eigen::Matrix< double, StateDim, InputDim > B_
 Matrix \(\boldsymbol{B}\) of continuous state equation. More...
 
Eigen::Matrix< double, OutputDim, StateDim > C_
 Matrix \(\boldsymbol{C}\) of observation equation. More...
 
Eigen::Matrix< double, OutputDim, InputDim > D_
 Matrix \(\boldsymbol{D}\) of observation equation. More...
 
StateDimVector E_
 Offset vector \(\boldsymbol{e}\) of continuous state equation. More...
 
OutputDimVector F_
 Offset vector \(\boldsymbol{f}\) of observation equation. More...
 
double dt_ = 0
 Discretization timestep [sec] (zero if discrete coefficients are not initialized) More...
 
Eigen::Matrix< double, StateDim, StateDim > Ad_
 Matrix \(\boldsymbol{A}_d\) of discrete state equation. More...
 
Eigen::Matrix< double, StateDim, InputDim > Bd_
 Matrix \(\boldsymbol{B}_d\) of discrete state equation. More...
 
StateDimVector Ed_
 Offset vector \(\boldsymbol{e}_d\) of discrete state equation. More...
 

Detailed Description

Discrete dynamics on step switching.

Definition at line 26 of file StepMpc.h.

Constructor & Destructor Documentation

◆ StepModel()

CCC::StepMpc1d::StepModel::StepModel ( double  com_height,
double  step_duration 
)

Constructor.

Parameters
com_heightheight of robot CoM [m]
step_durationstep duration [sec]

The documentation for this class was generated from the following file: