nmpc_fmpc
|
Fast MPC problem. More...
#include <FmpcProblem.h>
Public Types | |
using | StateDimVector = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::StateDimVector |
Type of vector of state dimension. More... | |
using | InputDimVector = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::InputDimVector |
Type of vector of input dimension. More... | |
using | IneqDimVector = Eigen::Matrix< double, IneqDim, 1 > |
Type of vector of inequality dimension. More... | |
using | StateStateDimMatrix = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::StateStateDimMatrix |
Type of matrix of state x state dimension. More... | |
using | InputInputDimMatrix = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::InputInputDimMatrix |
Type of matrix of input x input dimension. More... | |
using | StateInputDimMatrix = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::StateInputDimMatrix |
Type of matrix of state x input dimension. More... | |
using | InputStateDimMatrix = typename nmpc_ddp::DDPProblem< StateDim, InputDim >::InputStateDimMatrix |
Type of matrix of input x state dimension. More... | |
using | IneqStateDimMatrix = Eigen::Matrix< double, IneqDim, StateDim > |
Type of matrix of inequality x state dimension. More... | |
using | IneqInputDimMatrix = Eigen::Matrix< double, IneqDim, InputDim > |
Type of matrix of inequality x input dimension. More... | |
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | FmpcProblem (double dt) |
Constructor. More... | |
virtual int | ineqDim () const |
Gets the inequality dimension. More... | |
virtual int | ineqDim (double) const |
Gets the inequality dimension. More... | |
virtual IneqDimVector | ineqConst (double t, const StateDimVector &x, const InputDimVector &u) const =0 |
Calculate inequality constraints. More... | |
virtual void | calcIneqConstDeriv (double t, const StateDimVector &x, const InputDimVector &u, Eigen::Ref< IneqStateDimMatrix > ineq_const_deriv_x, Eigen::Ref< IneqInputDimMatrix > ineq_const_deriv_u) const =0 |
Calculate first-order derivatives of inequality constraints. More... | |
Fast MPC problem.
StateDim | state dimension (fixed only) |
InputDim | input dimension (fixed or dynamic (i.e., Eigen::Dynamic)) |
IneqDim | inequality dimension (fixed or dynamic (i.e., Eigen::Dynamic)) |
Definition at line 15 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::IneqDimVector = Eigen::Matrix<double, IneqDim, 1> |
Type of vector of inequality dimension.
Definition at line 25 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::IneqInputDimMatrix = Eigen::Matrix<double, IneqDim, InputDim> |
Type of matrix of inequality x input dimension.
Definition at line 43 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::IneqStateDimMatrix = Eigen::Matrix<double, IneqDim, StateDim> |
Type of matrix of inequality x state dimension.
Definition at line 40 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::InputDimVector = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::InputDimVector |
Type of vector of input dimension.
Definition at line 22 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::InputInputDimMatrix = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::InputInputDimMatrix |
Type of matrix of input x input dimension.
Definition at line 31 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::InputStateDimMatrix = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::InputStateDimMatrix |
Type of matrix of input x state dimension.
Definition at line 37 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::StateDimVector = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::StateDimVector |
Type of vector of state dimension.
Definition at line 19 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::StateInputDimMatrix = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::StateInputDimMatrix |
Type of matrix of state x input dimension.
Definition at line 34 of file FmpcProblem.h.
using nmpc_fmpc::FmpcProblem< StateDim, InputDim, IneqDim >::StateStateDimMatrix = typename nmpc_ddp::DDPProblem<StateDim, InputDim>::StateStateDimMatrix |
Type of matrix of state x state dimension.
Definition at line 28 of file FmpcProblem.h.
|
inline |
Constructor.
dt | discretization timestep [sec] |
Definition at line 51 of file FmpcProblem.h.
|
pure virtual |
Calculate first-order derivatives of inequality constraints.
t | time [sec] |
x | state |
u | input |
ineq_const_deriv_x | first-order derivative of inequality constraints w.r.t. state |
ineq_const_deriv_u | first-order derivative of inequality constraints w.r.t. input |
|
pure virtual |
Calculate inequality constraints.
t | time [sec] |
x | current state |
u | current input |
|
inlinevirtual |
Gets the inequality dimension.
Definition at line 62 of file FmpcProblem.h.
|
inlinevirtual |
Gets the inequality dimension.
t | time |
Definition at line 75 of file FmpcProblem.h.