Go to the documentation of this file.
29 FeatureGeneric::FeatureGeneric(
const string &pointName)
32 errorSIN(NULL,
"sotFeatureGeneric(" +
name +
")::input(vector)::errorIN"),
34 "sotFeatureGeneric(" +
name +
")::input(matrix)::jacobianIN")
48 assert(SP::isReferenceSet());
54 assert(SP::isReferenceSet());
88 "Error: dimension uncompatible with des->errorIN size."
89 " (while considering feature <%s>).",
99 if (errDes.size() <
dim) {
102 "Error: dimension uncompatible with des->errorIN size."
103 " (while considering feature <%s>).",
109 if (fl(
i))
res(curr++) =
err(
i) - errDes(
i);
125 std::size_t curr = 0;
126 res.resize(
dim, Jac.cols());
128 for (std::size_t
i = 0; curr <
dim; ++
i)
130 for (
size_type j = 0; j < Jac.cols(); ++j)
res(curr, j) = Jac(
i, j);
143 os <<
"Generic <" <<
name <<
">: " << std::endl;
virtual void addDependenciesFromReference(void)=0
virtual const T & accessCopy() const
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > errorSOUT
This signal returns the error between the desired value and the current value : .
FeatureGeneric * getReference(void)
dynamicgraph::SignalPtr< dynamicgraph::Matrix, sigtime_t > jacobianSIN
Input for the Jacobian.
virtual dynamicgraph::Matrix & computeJacobian(dynamicgraph::Matrix &res, sigtime_t time)
Compute the Jacobian of the value according to the robot state..
virtual void display(std::ostream &os) const
Display the information related to this generic implementation.
SignalPtr< Flags, sigtime_t > selectionSIN
This vector specifies which dimension are used to perform the computation. For instance let us assume...
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeatureGeneric, "FeatureGeneric")
Class that defines a generic implementation of the abstract interface for features.
SignalTimeDependent< dynamicgraph::Matrix, sigtime_t > jacobianSOUT
Jacobian of the error wrt the robot state: .
This class gives the abstract definition of a feature.
const std::string & getName() const
virtual const T & access(const Time &t)
#define sotDEBUGOUT(level)
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > errordotSOUT
Derivative of the error with respect to time: .
virtual void addDependency(const SignalBase< Time > &signal)
#define sotDEBUGIN(level)
dynamicgraph::Vector::Index dimensionDefault
virtual void removeDependency(const SignalBase< Time > &signal)
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > errorSIN
Input for the error.
virtual void removeDependenciesFromReference(void)=0
virtual dynamicgraph::Vector & computeError(dynamicgraph::Vector &res, sigtime_t time)
Compute the error between the desired value and the value itself.
size_type getDimension(void) const
Shortest method.
SignalTimeDependent< size_type, sigtime_t > dimensionSOUT
Returns the dimension of the feature as an output signal.
SignalPtr< dynamicgraph::Vector, sigtime_t > errordotSIN
Derivative of the reference value.
virtual const char * what() const
virtual bool isReferenceSet(void) const
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