27 "sotFeatureAbstract(" + name +
")::input(flag)::selec"),
29 NULL,
"sotFeatureAbstract(" + name +
")::input(vector)::errordotIN"),
32 "sotFeatureAbstract(" + name +
")::output(vector)::error"),
34 selectionSIN << errordotSIN,
35 "sotFeatureAbstract(" + name +
")::output(vector)::errordot")
41 "sotFeatureAbstract(" + name +
")::output(matrix)::jacobian"),
44 "sotFeatureAbstract(" + name +
")::output(uint)::dim") {
53 using namespace command;
57 "Give the name of the reference feature.\nInput: a string " 62 "Get the name of the reference feature.\nOutput: a string " 75 os <<
"\t\"" << asotFA->
getName() <<
"\" -> \"" <<
getName() <<
"\"" 76 <<
"[ color=darkseagreen4 ]" << std::endl;
78 std::cout <<
"asotFAT : 0" << std::endl;
100 unsigned int curr = 0;
103 sotDEBUG(25) <<
"Dim = " << dim << std::endl;
108 sotDEBUG(15) <<
"Err* = " << errdotDes;
109 if (errdotDes.size() < dim) {
112 "Error: dimension uncompatible with des->errorIN size." 113 " (while considering feature <%s>).",
117 for (
int i = 0;
i < errdotDes.size(); ++
i)
118 if (fl(
i)) res(curr++) = -errdotDes(
i);
std::string getReferenceByName(void) const
SignalPtr< Flags, int > selectionSIN
This vector specifies which dimension are used to perform the computation. For instance let us assume...
void setReferenceByName(const std::string &name)
virtual const FeatureAbstract * getReferenceAbstract(void) const =0
SignalTimeDependent< unsigned int, int > dimensionSOUT
Returns the dimension of the feature as an output signal.
void signalRegistration(const SignalArray< int > &signals)
virtual std::ostream & writeGraph(std::ostream &os) const
virtual bool isReferenceSet(void) const
static const std::string CLASS_NAME
Store the name of the class.
SignalTimeDependent< dynamicgraph::Matrix, int > jacobianSOUT
Jacobian of the error wrt the robot state: .
SignalPtr< dynamicgraph::Vector, int > errordotSIN
Derivative of the reference value.
virtual const T & access(const Time &t)
static PoolStorage * getInstance()
virtual void setReference(FeatureAbstract *sdes)=0
FeatureAbstract(const std::string &name)
Default constructor: the name of the class should be given.
virtual bool isPlugged() const
This class gives the abstract definition of a feature.
const std::string & getName() const
virtual dynamicgraph::Vector & computeErrorDot(dynamicgraph::Vector &res, int time)
virtual std::ostream & writeGraph(std::ostream &os) const
This method write a graph description on the file named FileName.
void featureRegistration(void)
Register the feature in the stack of tasks.
void addCommand(const std::string &name, command::Command *command)
SignalTimeDependent< dynamicgraph::Vector, int > errorSOUT
This signal returns the error between the desired value and the current value : . ...