11 #ifndef __SOT_Control_PD_HH__ 12 #define __SOT_Control_PD_HH__ 19 #include <dynamic-graph/linear-algebra.h> 23 #include <dynamic-graph/signal-time-dependent.h> 24 #include <dynamic-graph/signal-ptr.h> 25 #include <dynamic-graph/entity.h> 33 # if defined (control_pd_EXPORTS) 34 # define PDController_EXPORT __declspec(dllexport) 36 # define PDController_EXPORT __declspec(dllimport) 39 # define PDController_EXPORT 62 static const double TIME_STEP_DEFAULT;
65 static const std::string CLASS_NAME;
66 virtual void display( std::ostream& os )
const;
67 virtual const std::string& getClassName(
void )
const {
return CLASS_NAME;}
79 SignalPtr<dg::Vector,int> KpSIN;
80 SignalPtr<dg::Vector,int> KdSIN;
81 SignalPtr<dg::Vector,int> positionSIN;
82 SignalPtr<dg::Vector,int> desiredpositionSIN;
83 SignalPtr<dg::Vector,int> velocitySIN;
84 SignalPtr<dg::Vector,int> desiredvelocitySIN;
85 SignalTimeDependent<dg::Vector,int> controlSOUT;
86 SignalTimeDependent<dg::Vector,int> positionErrorSOUT;
87 SignalTimeDependent<dg::Vector,int> velocityErrorSOUT;
93 double& setsize(
int dimension);
94 dg::Vector& computeControl( dg::Vector& tau,
int t );
95 dg::Vector position_error;
96 dg::Vector velocity_error;
97 dg::Vector& getPositionError( dg::Vector& position_error,
int t );
98 dg::Vector& getVelocityError( dg::Vector& velocity_error,
int t );
109 #endif // #ifndef __SOT_Control_PD_HH__ Definition: control_pd.hpp:49
Definition: ComImpedanceController.hpp:31