Go to the documentation of this file.
16 #include <dynamic-graph/factory.h>
31 #define __SOT_ControlPD_INIT
36 KpSIN(NULL,
"ControlPD(" +
name +
")::input(vector)::Kp"),
37 KdSIN(NULL,
"ControlPD(" +
name +
")::input(vector)::Kd"),
38 positionSIN(NULL,
"ControlPD(" +
name +
")::input(vector)::position"),
40 NULL,
"ControlPD(" +
name +
")::input(vector)::desired_position"),
41 velocitySIN(NULL,
"ControlPD(" +
name +
")::input(vector)::velocity"),
43 NULL,
"ControlPD(" +
name +
")::input(vector)::desired_velocity"),
45 KpSIN << KdSIN << positionSIN << desiredpositionSIN
46 << velocitySIN << desiredvelocitySIN,
47 "ControlPD(" +
name +
")::output(vector)::control"),
49 boost::bind(&
ControlPD::getPositionError, this, _1, _2), controlSOUT,
50 "ControlPD(" +
name +
")::output(vector)::position_error"),
52 boost::bind(&
ControlPD::getVelocityError, this, _1, _2), controlSOUT,
53 "ControlPD(" +
name +
")::output(vector)::velocity_error") {
72 os <<
"ControlPD " <<
getName();
114 return position_error;
121 return velocity_error;
SignalPtr< dynamicgraph::Vector, sigtime_t > positionSIN
ControlPD(const std::string &name)
SignalPtr< dynamicgraph::Vector, sigtime_t > velocitySIN
SignalPtr< dynamicgraph::Vector, sigtime_t > KdSIN
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > controlSOUT
SignalPtr< dynamicgraph::Vector, sigtime_t > desiredpositionSIN
dynamicgraph::Vector position_error_
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
const std::string & getName() const
#define sotDEBUGOUT(level)
void init(const double &step)
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > velocityErrorSOUT
static const double TIME_STEP_DEFAULT
#define sotDEBUGIN(level)
dynamicgraph::Vector & getVelocityError(dynamicgraph::Vector &velocity_error, sigtime_t t)
dynamicgraph::Vector & getPositionError(dynamicgraph::Vector &position_error, sigtime_t t)
dynamicgraph::Vector velocity_error_
SignalPtr< dynamicgraph::Vector, sigtime_t > desiredvelocitySIN
virtual void display(std::ostream &os) const
SignalPtr< dynamicgraph::Vector, sigtime_t > KpSIN
void signalRegistration(const SignalArray< sigtime_t > &signals)
dynamicgraph::Vector & computeControl(dynamicgraph::Vector &tau, sigtime_t t)
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > positionErrorSOUT
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31