robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
periodic_com_ref.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_PERIODIC_COM_REF_HPP_
2#define ROBOTOC_PERIODIC_COM_REF_HPP_
3
4#include "Eigen/Core"
5
8
9
10namespace robotoc {
11
16class PeriodicCoMRef : public CoMRefBase {
17public:
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);
31
36
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);
50
51 void updateRef(const GridInfo& grid_info, Eigen::VectorXd& com_ref) const override;
52
53 bool isActive(const GridInfo& grid_info) const override;
54
55private:
56 Eigen::Vector3d com_ref0_, vcom_ref_;
57 double step_length_, t0_, period_active_, period_inactive_, period_;
58 bool is_first_move_half_;
59
60};
61
62} // namespace robotoc
63
64#endif // ROBOTOC_PERIODIC_COM_REF_HPP_
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