Go to the documentation of this file.
31 TaskConti::TaskConti(
const std::string &
n)
33 timeRef(TIME_REF_UNSIGNIFICANT),
35 controlPrevSIN(NULL,
"sotTaskConti(" +
n +
")::input(double)::q0") {
54 if (
q0.size() != (
J.cols() - 6))
throw;
57 for (
size_type j = 6; j <
J.cols(); ++j) deref(
i) +=
J(
i, j) *
q0(j - 6);
64 sotDEBUG(10) <<
"Time not used. " << std::endl;
70 double contiGain =
exp(
dt);
71 double gain = (contiGain - 1) * lambda;
73 sotDEBUG(25) <<
"T: ref=" <<
timeRef <<
", cur=" << timecurr << std::endl;
74 sotDEBUG(25) <<
"Gains: l=" << lambda <<
", expmu=" << contiGain
76 sotDEBUG(25) <<
"e = " << deref << std::endl;
79 sotDEBUG(25) <<
"dedes: " << desvel << std::endl;
82 sotDEBUG(25) <<
"task: " << desvel << std::endl;
84 desvel2b.resize(desvel.size());
85 for (
size_type i = 0;
i < desvel.size(); ++
i) desvel2b[
i] = desvel(
i);
92 desvel2b.resize(desvel.size());
94 desvel2b[
i] = -gain * desvel(
i);
108 os <<
"TaskConti " <<
name <<
" [t=" <<
timeRef <<
"] "
110 os <<
"--- LIST --- " << std::endl;
112 for (FeatureList_t::const_iterator iter =
featureList.begin();
114 os <<
"-> " << (*iter)->getName() << endl;
dynamicgraph::SignalPtr< double, sigtime_t > controlGainSIN
std::vector< MultiBound > VectorMultiBound
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(TaskConti, "TaskConti")
FeatureList_t featureList
VectorMultiBound & computeContiDesiredVelocity(VectorMultiBound &task, const sigtime_t &time)
dynamicgraph::SignalTimeDependent< dynamicgraph::Matrix, sigtime_t > jacobianSOUT
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > errorSOUT
void display(std::ostream &os) const
dynamicgraph::SignalTimeDependent< VectorMultiBound, sigtime_t > taskSOUT
Class that defines the basic elements of a task.
void signalRegistration(const SignalArray< sigtime_t > &signals)
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > controlPrevSIN
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31