robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
periodic_swing_foot_ref.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_PERIODIC_SWING_FOOT_REF_HPP_
2#define ROBOTOC_PERIODIC_SWING_FOOT_REF_HPP_
3
4#include "Eigen/Core"
5
8
9
10namespace robotoc {
11
17public:
29 PeriodicSwingFootRef(const Eigen::Vector3d& x3d0,
30 const Eigen::Vector3d& step_length,
31 const double step_height, const double t0,
32 const double period_swing, const double period_stance,
33 const bool is_first_step_half);
34
39
51 void setFootTrackRef(const Eigen::Vector3d& x3d0,
52 const Eigen::Vector3d& step_length,
53 const double step_height, const double t0,
54 const double period_swing, const double period_stance,
55 const bool is_first_step_half=false);
56
57 void updateRef(const GridInfo& grid_info, Eigen::VectorXd& x3d_ref) const override;
58
59 bool isActive(const GridInfo& grid_info) const override;
60
61private:
62 Eigen::Vector3d x3d0_, step_length_;
63 double step_height_, t0_, period_swing_, period_stance_, period_;
64 bool is_first_step_half_;
65
66};
67
68} // namespace robotoc
69
70#endif // ROBOTOC_PERIODIC_SWING_FOOT_REF_HPP_
Periodic reference of the swing foot position.
Definition: periodic_swing_foot_ref.hpp:16
PeriodicSwingFootRef(const Eigen::Vector3d &x3d0, const Eigen::Vector3d &step_length, const double step_height, const double t0, const double period_swing, const double period_stance, const bool is_first_step_half)
Constructor.
bool isActive(const GridInfo &grid_info) const override
Checks wheather the cost is active or not at the specified time.
void setFootTrackRef(const Eigen::Vector3d &x3d0, const Eigen::Vector3d &step_length, const double step_height, const double t0, const double period_swing, const double period_stance, const bool is_first_step_half=false)
Sets parameters.
void updateRef(const GridInfo &grid_info, Eigen::VectorXd &x3d_ref) const override
Computes the reference task-space position.
Base class of reference task space position.
Definition: task_space_3d_ref_base.hpp:15
Definition: constraint_component_base.hpp:17
Grid information.
Definition: grid_info.hpp:24