Go to the documentation of this file.
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 (std::size_t
i = 0;
i <
res.size(); ++
i) {
69 (refSup(
i) - position(
i)) /
dt);
83 os <<
"TaskUnilateral " <<
name <<
": " << endl;
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > positionSIN
std::vector< MultiBound > VectorMultiBound
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > referenceSupSIN
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > referenceInfSIN
dynamicgraph::SignalPtr< double, sigtime_t > dtSIN
const std::string & getName() const
VectorMultiBound & computeTaskUnilateral(VectorMultiBound &res, sigtime_t time)
virtual void addDependency(const SignalBase< Time > &signal)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(TaskUnilateral, "TaskUnilateral")
dynamicgraph::SignalTimeDependent< VectorMultiBound, sigtime_t > taskSOUT
Class that defines the basic elements of a task.
void display(std::ostream &os) const
virtual void clearDependencies()
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