centroidal_control_collection
|
Go to the documentation of this file.
7 #include <qp_solver_collection/QpSolverCollection.h>
118 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
131 QpSolverCollection::QpSolverType qp_solver_type = QpSolverCollection::QpSolverType::Any);
140 double planOnce(
const std::function<
bool(
double)> & contact_func,
141 const std::function<
double(
double)> & ref_pos_func,
143 double current_time);
147 double procOnce(
const std::vector<std::shared_ptr<_StateSpaceModel>> & model_list,
149 const Eigen::VectorXd & ref_pos_seq);
Eigen::Vector2d InitialParam
Initial parameter.
double planOnce(const std::function< bool(double)> &contact_func, const std::function< double(double)> &ref_pos_func, const InitialParam &initial_param, double current_time)
Plan one step.
int horizon_steps_
Number of steps in horizon.
double horizon_dt_
Discretization timestep in horizon [sec].
WeightParam(double _pos=1.0, double _force=1e-7)
Constructor.
double mass_
Robot mass [kg].
std::shared_ptr< _StateSpaceModel > model_noncontact_
State-space model for non-contact phase.
std::shared_ptr< QpSolverCollection::QpSolver > qp_solver_
QP solver.
_StateSpaceModel::StateDimVector StateDimVector
Type of state vector.
QpSolverCollection::QpCoeff qp_coeff_
QP coefficients.
double force
Force weight.
double procOnce(const std::vector< std::shared_ptr< _StateSpaceModel >> &model_list, const StateDimVector ¤t_x, const Eigen::VectorXd &ref_pos_seq)
Process one step.
Eigen::Matrix< double, StateDim, 1 > StateDimVector
Type of state vector.
Linear MPC of translational z-component motion.
static constexpr int state_dim_
State dimension.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW LinearMpcZ(double mass, double horizon_dt, int horizon_steps, const WeightParam &weight_param=WeightParam(), QpSolverCollection::QpSolverType qp_solver_type=QpSolverCollection::QpSolverType::Any)
Constructor.
double pos
Position weight.
std::pair< double, double > force_range_
Min/max z-component force [N].
std::shared_ptr< _StateSpaceModel > model_contact_
State-space model for contact phase.
WeightParam weight_param_
Objective weight parameter.