robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
trot_swing_foot_ref.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_TROT_SWING_FOOT_REF_HPP_
2#define ROBOTOC_TROT_SWING_FOOT_REF_HPP_
3
4#include <string>
5
6#include "Eigen/Core"
7
9#include "robotoc/cost/swing_foot_cost.hpp"
10
11
12namespace robotoc {
13
18class TrotSwingFootRef : public SwingFootRefBase {
19public:
30 TrotSwingFootRef(const int contact_index,
31 const int x_ref_foot_contact_index,
32 const int y_ref_foot_contact_index,
33 const double step_length, const double step_height);
34
46 TrotSwingFootRef(const Robot& robot, const std::string& contact_frame_name,
47 const int x_ref_foot_contact_index,
48 const int y_ref_foot_contact_index,
49 const double step_length, const double step_height);
50
55
56 void updateRef(const ContactStatus& contact_status,
57 Eigen::VectorXd& x3d_ref) const override;
58
59private:
60 int contact_index_, x_ref_foot_contact_index_, y_ref_foot_contact_index_;
61 double step_length_, step_height_;
62
63};
64
65} // namespace robotoc
66
67#endif // ROBOTOC_TROT_SWING_FOOT_REF_HPP_
Contact status of robot model.
Definition: contact_status.hpp:32
Dynamics and kinematics model of robots. Wraps pinocchio::Model and pinocchio::Data....
Definition: robot.hpp:32
Periodic reference of the foot position.
Definition: trot_swing_foot_ref.hpp:18
~TrotSwingFootRef()
Destructor.
void updateRef(const ContactStatus &contact_status, Eigen::VectorXd &x3d_ref) const override
TrotSwingFootRef(const int contact_index, const int x_ref_foot_contact_index, const int y_ref_foot_contact_index, const double step_length, const double step_height)
Constructor.
TrotSwingFootRef(const Robot &robot, const std::string &contact_frame_name, const int x_ref_foot_contact_index, const int y_ref_foot_contact_index, const double step_length, const double step_height)
Constructor.
Definition: constraint_component_base.hpp:17