32 TaskUnilateral::TaskUnilateral(
const std::string &
n)
36 "sotTaskUnilateral(" + n +
")::input(vector)::position"),
38 NULL,
"sotTaskUnilateral(" + n +
")::input(vector)::referenceInf"),
40 NULL,
"sotTaskUnilateral(" + n +
")::input(vector)::referenceSup"),
41 dtSIN(NULL,
"sotTaskUnilateral(" + n +
")::input(double)::dt") {
62 sotDEBUG(35) <<
"position = " << position << endl;
66 res.resize(position.size());
67 for (
unsigned int i = 0;
i < res.size(); ++
i) {
69 (refSup(
i) - position(
i)) / dt);
73 sotDEBUG(15) <<
"taskU = " << res << std::endl;
83 os <<
"TaskUnilateral " <<
name <<
": " << endl;
void signalRegistration(const SignalArray< int > &signals)
dynamicgraph::SignalTimeDependent< VectorMultiBound, int > taskSOUT
VectorMultiBound & computeTaskUnilateral(VectorMultiBound &res, int time)
std::vector< MultiBound > VectorMultiBound
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > referenceSupSIN
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(TaskUnilateral, "TaskUnilateral")
dynamicgraph::SignalPtr< double, int > dtSIN
virtual void addDependency(const SignalBase< Time > &signal)
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > positionSIN
const std::string & getName() const
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > referenceInfSIN
Class that defines the basic elements of a task.
virtual void clearDependencies()
void display(std::ostream &os) const
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)