wbc
JointTorquePIDController.hpp
Go to the documentation of this file.
1#ifndef WBC_CONTROLLERS_JOINTTORQUEPIDCONTROLLER_HPP
2#define WBC_CONTROLLERS_JOINTTORQUEPIDCONTROLLER_HPP
3
4#include "PIDController.hpp"
5#include <base/commands/Joints.hpp>
6
7namespace wbc{
8
10protected:
11 base::commands::Joints control_output_joints;
12 std::vector<std::string> joint_names;
13
14 void extractFeedback(const base::samples::Joints& feedback);
15 void extractSetpoint(const base::commands::Joints& setpoint);
16public:
17 JointTorquePIDController(const std::vector<std::string>& joint_names);
19
21 const base::commands::Joints& update(const base::commands::Joints& setpoint, const base::samples::Joints& feedback, const double& dt);
22
23};
24
25}
26
27#endif // WBC_CONTROLLERS_JOINTTORQUEPIDCONTROLLER_HPP
Definition JointTorquePIDController.hpp:9
base::commands::Joints control_output_joints
Definition JointTorquePIDController.hpp:11
void extractSetpoint(const base::commands::Joints &setpoint)
Definition JointTorquePIDController.cpp:24
void extractFeedback(const base::samples::Joints &feedback)
Definition JointTorquePIDController.cpp:13
virtual ~JointTorquePIDController()
Definition JointTorquePIDController.hpp:18
const base::commands::Joints & update(const base::commands::Joints &setpoint, const base::samples::Joints &feedback, const double &dt)
Definition JointTorquePIDController.cpp:39
std::vector< std::string > joint_names
Definition JointTorquePIDController.hpp:12
JointTorquePIDController(const std::vector< std::string > &joint_names)
Definition JointTorquePIDController.cpp:5
The PIDController class implements an n-dimensional PID controller.
Definition PIDController.hpp:30
base::VectorXd setpoint
Definition PIDController.hpp:41
base::VectorXd feedback
Definition PIDController.hpp:42
Definition ContactsAccelerationConstraint.cpp:3