centroidal_control_collection
|
Go to the documentation of this file.
5 #include <SpaceVecAlg/SpaceVecAlg>
7 #include <mc_rtc/Configuration.h>
113 double horizon_duration,
119 weight_param.toPreviewControlWeightParam())
125 double procOnce(
const Eigen::VectorXd & ref_output_seq,
128 double control_dt)
const;
143 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
152 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
155 sva::MotionVecd
pos = sva::MotionVecd::Zero();
158 sva::ForceVecd
wrench = sva::ForceVecd::Zero();
164 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
167 sva::MotionVecd
pos = sva::MotionVecd::Zero();
170 sva::MotionVecd
vel = sva::MotionVecd::Zero();
173 sva::MotionVecd
acc = sva::MotionVecd::Zero();
184 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
204 WeightParam(
const sva::MotionVecd & _pos = sva::MotionVecd(Eigen::Vector3d(1e2, 1e2, 1e2),
205 Eigen::Vector3d(2e2, 2e2, 2e2)),
206 const sva::ForceVecd & _wrench = sva::ForceVecd(Eigen::Vector3d(5e-3, 5e-3, 5e-3),
207 Eigen::Vector3d(5e-4, 5e-4, 5e-4)),
208 const sva::MotionVecd & _jerk = sva::MotionVecd(Eigen::Vector3d::Constant(1e-8),
209 Eigen::Vector3d::Constant(1e-8)),
210 const mc_rtc::Configuration & _wrench_dist_config = {})
230 const Eigen::Vector3d & moment_of_inertia,
231 double horizon_duration,
233 const WeightParam & weight_param = WeightParam());
243 sva::ForceVecd
planOnce(
const MotionParam & motion_param,
244 const std::function<RefData(
double)> & ref_data_func,
245 const InitialParam & initial_param,
247 double control_dt = -1)
const;
sva::ForceVecd wrench
Wrench weight.
CentroidalModel1d(double inertia_param)
Constructor.
sva::MotionVecd vel
CoM velocity [m/s] and base link angular velocity [rad/s].
mc_rtc::Configuration wrench_dist_config_
Configuration of wrench distribution.
mc_rtc::Configuration wrench_dist_config
Configuration of wrench distribution.
double procOnce(const Eigen::VectorXd &ref_output_seq, const InitialParam &initial_param, double current_time, double control_dt) const
Process one step.
double wrench
Wrench weight.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW sva::MotionVecd pos
CoM position [m] and base link orientation [rad].
std::array< std::shared_ptr< PreviewControlCentroidal1d >, 6 > preview_control_1d_
List of one-dimensional preview control.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW sva::MotionVecd pos
CoM position [m] and base link orientation [rad].
PreviewControlCentroidal(double mass, const Eigen::Vector3d &moment_of_inertia, double horizon_duration, double horizon_dt, const WeightParam &weight_param=WeightParam())
Constructor.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW std::vector< std::shared_ptr< ForceColl::Contact > > contact_list
Contact list.
double pos
Position weight.
sva::ForceVecd planOnce(const MotionParam &motion_param, const std::function< RefData(double)> &ref_data_func, const InitialParam &initial_param, double current_time, double control_dt=-1) const
Plan one step.
PreviewControl< 3, 1, 2 >::WeightParam toPreviewControlWeightParam() const
Convert to PreviewControl::WeightParam.
State-space model of one-dimensional centroidal dynamics with jerk input and position and wrench outp...
PreviewControlCentroidal1d::InitialParam toInitialParam1d(int idx) const
Convert to PreviewControlCentroidal1d::InitialParam.
Eigen::Vector2d RefData
Reference data.
sva::MotionVecd jerk
Jerk weight.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW sva::MotionVecd pos
Position weight.
sva::ForceVecd wrench
Force [N] and moment [Nm].
WeightParam(const sva::MotionVecd &_pos=sva::MotionVecd(Eigen::Vector3d(1e2, 1e2, 1e2), Eigen::Vector3d(2e2, 2e2, 2e2)), const sva::ForceVecd &_wrench=sva::ForceVecd(Eigen::Vector3d(5e-3, 5e-3, 5e-3), Eigen::Vector3d(5e-4, 5e-4, 5e-4)), const sva::MotionVecd &_jerk=sva::MotionVecd(Eigen::Vector3d::Constant(1e-8), Eigen::Vector3d::Constant(1e-8)), const mc_rtc::Configuration &_wrench_dist_config={})
Constructor.
PreviewControlCentroidal1d::WeightParam toWeightParam1d(int idx) const
Convert to PreviewControlCentroidal1d::WeightParam.
WeightParam(double _pos=2e2, double _wrench=5e-4, double _jerk=1e-8)
Constructor.
Preview control for one-dimensional centroidal model.
PreviewControlCentroidal1d(double inertia_param, double horizon_duration, double horizon_dt, const WeightParam &weight_param=WeightParam())
Constructor.
PreviewControl< 3, 1, 2 >::StateDimVector InitialParam
Initial parameter.
Preview control for centroidal model.
sva::MotionVecd acc
CoM acceleration [m/s^2] and base link angular acceleration [rad/s^2].