Go2Py_SIM/locomotion/custom/include/Planner/ReactivePlanner.hpp

30 lines
605 B
C++
Raw Permalink Normal View History

2024-02-16 07:43:43 +08:00
#pragma once
#include "Planner/Planner.hpp"
class ReactivePlanner : public Planner {
public:
ReactivePlanner();
ReactivePlanner(std::string name);
~ReactivePlanner() {}
2024-03-12 08:55:41 +08:00
vec3 getDesiredFootPosition(const uint8_t&, const float&) override;
2024-02-16 07:43:43 +08:00
2024-03-12 08:55:41 +08:00
// void SetBaseTarget () override;
2024-02-16 07:43:43 +08:00
2024-03-12 08:55:41 +08:00
void setTarget() override;
void initClass();
2024-02-16 07:43:43 +08:00
private:
// std_msgs::Float32MultiArray m_p_cs_phi;
2024-03-12 08:55:41 +08:00
Eigen::MatrixXd getVPSPVertices(const float& t);
double getVPSPStabilityMargin();
2024-02-16 07:43:43 +08:00
std::string m_name;
bool use_vpsp = true;
2024-03-12 08:55:41 +08:00
bool m_use_capture_point_heuristic = true;
2024-02-16 07:43:43 +08:00
};