10 #ifndef __SOT_TASK_H__
11 #define __SOT_TASK_H__
18 #include <dynamic-graph/linear-algebra.h>
34 #if defined task_EXPORTS
35 #define SOTTASK_EXPORT __declspec(dllexport)
37 #define SOTTASK_EXPORT __declspec(dllimport)
40 #define SOTTASK_EXPORT
80 DYNAMIC_GRAPH_ENTITY_DECL();
83 Task(
const std::string &n);
84 void initCommands(
void);
87 void addFeatureFromName(
const std::string &name);
88 void clearFeatureList(
void);
91 void setControlSelection(
const Flags &act);
92 void addControlSelection(
const Flags &act);
93 void clearControlSelection(
void);
95 void setWithDerivative(
const bool &s);
96 bool getWithDerivative(
void);
99 dynamicgraph::Vector &computeError(dynamicgraph::Vector &error,
int time);
102 dynamicgraph::Matrix &computeJacobian(dynamicgraph::Matrix &J,
int time);
103 dynamicgraph::Vector &computeErrorTimeDerivative(dynamicgraph::Vector &res,
111 dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int>
errorSOUT;
112 dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int>
116 void display(std::ostream &os)
const;
119 virtual std::ostream &writeGraph(std::ostream &os)
const;