6 #ifndef __sot_torque_control_position_controller_H__
7 #define __sot_torque_control_position_controller_H__
14 #if defined(position_controller_EXPORTS)
15 #define SOTPOSITIONCONTROLLER_EXPORT __declspec(dllexport)
17 #define SOTPOSITIONCONTROLLER_EXPORT __declspec(dllimport)
20 #define SOTPOSITIONCONTROLLER_EXPORT
27 #include <pinocchio/fwd.hpp>
31 #include <dynamic-graph/signal-helper.h>
33 #include <boost/assign.hpp>
35 #include <sot/core/matrix-geometry.hh>
36 #include <sot/core/robot-utils.hh>
48 :
public ::dynamicgraph::Entity {
50 DYNAMIC_GRAPH_ENTITY_DECL();
53 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
58 void init(
const double& dt,
const std::string& robotRef);
72 dynamicgraph::Vector);
78 virtual void display(std::ostream& os)
const;
80 void sendMsg(
const std::string& msg, MsgType t = MSG_TYPE_INFO,
81 const char* =
"",
int = 0) {
82 logger_.stream(t) << (
"[PositionController-" + name +
"] " + msg) <<
'\n';
void sendMsg(const std::string &msg, MsgType t=MSG_TYPE_INFO, const char *="", int=0)
DECLARE_SIGNAL_IN(Kp, dynamicgraph::Vector)
Eigen::VectorXd m_e_integral
control loop time period
Eigen::VectorXd m_pwmDes
Robot Util.
RobotUtilShrPtr m_robot_util
DECLARE_SIGNAL_IN(jointsVelocities, dynamicgraph::Vector)
double m_dt
true if the entity has been successfully initialized
DECLARE_SIGNAL_OUT(pwmDes, dynamicgraph::Vector)
joint integral gains
DECLARE_SIGNAL_IN(Kd, dynamicgraph::Vector)
joint proportional gains
DECLARE_SIGNAL_IN(dqRef, dynamicgraph::Vector)
DECLARE_SIGNAL_IN(qRef, dynamicgraph::Vector)
DECLARE_SIGNAL_IN(base6d_encoders, dynamicgraph::Vector)
DECLARE_SIGNAL_IN(Ki, dynamicgraph::Vector)
joint derivative gains
DECLARE_SIGNAL_OUT(qError, dynamicgraph::Vector)
Kp*e_q + Kd*de_q + Ki*int(e_q)
AdmittanceController EntityClassName
#define SOTPOSITIONCONTROLLER_EXPORT