Go to the documentation of this file.
21 #include <dynamic-graph/factory.h>
37 #define __SOT_ControlGR_INIT
42 matrixASIN(NULL,
"ControlGR(" +
name +
")::input(matrix)::matrixA"),
44 "ControlGR(" +
name +
")::input(vector)::acceleration"),
45 gravitySIN(NULL,
"ControlGR(" +
name +
")::input(vector)::gravity"),
47 matrixASIN << accelerationSIN << gravitySIN,
48 "ControlGR(" +
name +
")::output(vector)::control") {
69 os <<
"ControlGR " <<
getName();
106 tau = matrixA * acceleration;
107 sotDEBUG(15) <<
"torque = A*ddot(q)= " << matrixA * acceleration << std::endl;
116 sotDEBUG(15) <<
"matrixA =" << matrixA << std::endl;
117 sotDEBUG(15) <<
"acceleration =" << acceleration << std::endl;
119 sotDEBUG(15) <<
"gravity compensation torque =" <<
tau << std::endl;
SignalPtr< dynamicgraph::Vector, sigtime_t > accelerationSIN
void init(const double &step)
ControlGR__INIT ControlGR_initiator
SignalPtr< dynamicgraph::Matrix, sigtime_t > matrixASIN
SignalPtr< dynamicgraph::Vector, sigtime_t > gravitySIN
dynamicgraph::Vector & computeControl(dynamicgraph::Vector &tau, sigtime_t t)
double & setsize(size_type dimension)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
const std::string & getName() const
virtual void display(std::ostream &os) const
#define sotDEBUGOUT(level)
#define sotDEBUGIN(level)
static const double TIME_STEP_DEFAULT
ControlGR(const std::string &name)
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > controlSOUT
static void openFile(const char *filename=DEBUG_FILENAME_DEFAULT)
void signalRegistration(const SignalArray< sigtime_t > &signals)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31