1#ifndef ROBOTOC_PERIODIC_COM_REF_HPP_
2#define ROBOTOC_PERIODIC_COM_REF_HPP_
28 PeriodicCoMRef(
const Eigen::Vector3d com_ref0,
const Eigen::Vector3d vcom_ref,
29 const double t0,
const double period_active,
30 const double period_inactive,
const bool is_first_move_half);
47 void setCoMRef(
const Eigen::Vector3d com_ref0,
const Eigen::Vector3d vcom_ref,
48 const double t0,
const double period_active,
49 const double period_inactive,
const bool is_first_move_half);
56 Eigen::Vector3d com_ref0_, vcom_ref_;
57 double step_length_, t0_, period_active_, period_inactive_, period_;
58 bool is_first_move_half_;
Base class of reference position of the center of mass (CoM).
Definition: com_ref_base.hpp:15
Periodic reference of the center of mass.
Definition: periodic_com_ref.hpp:16
PeriodicCoMRef(const Eigen::Vector3d com_ref0, const Eigen::Vector3d vcom_ref, const double t0, const double period_active, const double period_inactive, const bool is_first_move_half)
Constructor.
~PeriodicCoMRef()
Destructor.
void updateRef(const GridInfo &grid_info, Eigen::VectorXd &com_ref) const override
Computes the reference CoM position.
void setCoMRef(const Eigen::Vector3d com_ref0, const Eigen::Vector3d vcom_ref, const double t0, const double period_active, const double period_inactive, const bool is_first_move_half)
Sets parameters.
bool isActive(const GridInfo &grid_info) const override
Checks wheather the cost is active or not for the given grid info.
Definition: constraint_component_base.hpp:17
Grid information.
Definition: grid_info.hpp:24