centroidal_control_collection
Classes | Public Member Functions | Public Attributes | List of all members
CCC::PreviewControlZmp Class Reference

Preview control for CoM-ZMP model. More...

#include <PreviewControlZmp.h>

Classes

struct  InitialParam
 Initial parameter. More...
 

Public Member Functions

 PreviewControlZmp (double com_height, double horizon_duration, double horizon_dt, const PreviewControlZmp1d::WeightParam &weight_param=PreviewControlZmp1d::WeightParam())
 Constructor. More...
 
Eigen::Vector2d planOnce (const std::function< Eigen::Vector2d(double)> &ref_zmp_func, const InitialParam &initial_param, double current_time, double control_dt=-1) const
 Plan one step. More...
 

Public Attributes

std::shared_ptr< PreviewControlZmp1dpreview_control_1d_
 One-dimensional preview control. More...
 

Detailed Description

Preview control for CoM-ZMP model.

See the following for a detailed formulation.

Definition at line 92 of file PreviewControlZmp.h.

Constructor & Destructor Documentation

◆ PreviewControlZmp()

CCC::PreviewControlZmp::PreviewControlZmp ( double  com_height,
double  horizon_duration,
double  horizon_dt,
const PreviewControlZmp1d::WeightParam weight_param = PreviewControlZmp1d::WeightParam() 
)
inline

Constructor.

Parameters
com_heightheight of robot CoM [m]
horizon_durationhorizon duration [sec]
horizon_dtdiscretization timestep in horizon [sec]
weight_paramobjective weight parameter

Definition at line 117 of file PreviewControlZmp.h.

Member Function Documentation

◆ planOnce()

Eigen::Vector2d CCC::PreviewControlZmp::planOnce ( const std::function< Eigen::Vector2d(double)> &  ref_zmp_func,
const InitialParam initial_param,
double  current_time,
double  control_dt = -1 
) const

Plan one step.

Parameters
ref_zmp_funcfunction of reference ZMP [m]
initial_paraminitial parameter
current_timecurrent time (i.e., start time of horizon) [sec]
control_dtcontrol timestep used to calculate ZMP (if omitted, horizon_dt is used)
Returns
planned ZMP

Member Data Documentation

◆ preview_control_1d_

std::shared_ptr<PreviewControlZmp1d> CCC::PreviewControlZmp::preview_control_1d_

One-dimensional preview control.

Definition at line 139 of file PreviewControlZmp.h.


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