Tetrapod Project
gait_controller.cpp
Go to the documentation of this file.
2 
4  int controller_freq, double gait_period,
5  std::function<Eigen::Vector3d(double)> fl_traj, std::function<Eigen::Vector3d(double)> fr_traj,
6  std::function<Eigen::Vector3d(double)> rl_traj, std::function<Eigen::Vector3d(double)> rr_traj) : GaitController::Controller(controller_freq)
7 {
8  this->gait_period = gait_period;
9 
10  this->fl_traj = fl_traj;
11 
12  this->fr_traj = fr_traj;
13 
14  this->rl_traj = rl_traj;
15 
16  this->rr_traj = rr_traj;
17 }
18 
20 {
22 }
23 
25 {
26  double t = double(iteration)/(controller_freq*gait_period);
27 
29 
31 
33 
35 }
Eigen::Vector3d fr_offset
Definition: controller.h:137
Eigen::Vector3d fl_offset
Definition: controller.h:135
Eigen::Vector3d rr_offset
Definition: controller.h:141
Eigen::Vector3d rl_position_body
Definition: controller.h:147
Eigen::Vector3d fl_position_body
Definition: controller.h:143
int controller_freq
Definition: controller.h:110
Eigen::Vector3d rr_position_body
Definition: controller.h:149
Eigen::Vector3d fr_position_body
Definition: controller.h:145
Eigen::Vector3d rl_offset
Definition: controller.h:139
std::function< Eigen::Vector3d(double)> rr_traj
std::function< Eigen::Vector3d(double)> fl_traj
void UpdateFeetReferences()
std::function< Eigen::Vector3d(double)> rl_traj
std::function< Eigen::Vector3d(double)> fr_traj
GaitController(int controller_freq, double gait_period, std::function< Eigen::Vector3d(double)> fl_traj, std::function< Eigen::Vector3d(double)> fr_traj, std::function< Eigen::Vector3d(double)> rl_traj, std::function< Eigen::Vector3d(double)> rr_traj)
Eigen::Vector3d Vector3d
Definition: kinematics.h:49