wbc
JointPosPDController.hpp
Go to the documentation of this file.
1#ifndef WBC_JOINT_POS_PD_CONTROLLER_HPP
2#define WBC_JOINT_POS_PD_CONTROLLER_HPP
3
4#include "PosPDController.hpp"
5#include <base/commands/Joints.hpp>
6
7namespace wbc {
8
28protected:
29 base::commands::Joints control_output;
30 std::vector<std::string> joint_names;
31
32 void extractFeedback(const base::samples::Joints& feedback);
33 void extractSetpoint(const base::commands::Joints& setpoint);
34
35public:
36 JointPosPDController(const std::vector<std::string>& joint_names);
37
39 const base::commands::Joints& update(const base::commands::Joints& setpoint, const base::samples::Joints& feedback);
40};
41
42}
43#endif
The JointPosPDController class implements a PD Controller with feed forward on the base-Joints type....
Definition JointPosPDController.hpp:27
void extractFeedback(const base::samples::Joints &feedback)
Definition JointPosPDController.cpp:13
base::commands::Joints control_output
Definition JointPosPDController.hpp:29
void extractSetpoint(const base::commands::Joints &setpoint)
Definition JointPosPDController.cpp:28
std::vector< std::string > joint_names
Definition JointPosPDController.hpp:30
JointPosPDController(const std::vector< std::string > &joint_names)
Definition JointPosPDController.cpp:5
The PosPDController class implements the following two control scemes.
Definition PosPDController.hpp:24
void update()
Definition PosPDController.cpp:25
Definition ContactsAccelerationConstraint.cpp:3