Class that defines the basic elements of a task. More...
#include "Definition"
Public Types | |
typedef std::list< FeatureAbstract * > | FeatureList_t |
Public Types inherited from dynamicgraph::Entity | |
typedef std::map< const std::string, command::Command *> | CommandMap_t |
typedef std::map< std::string, SignalBase< int > *> | SignalMap |
Public Member Functions | |
void | addControlSelection (const Flags &act) |
void | addFeature (FeatureAbstract &s) |
void | addFeatureFromName (const std::string &name) |
void | clearControlSelection (void) |
void | clearFeatureList (void) |
dynamicgraph::Vector & | computeError (dynamicgraph::Vector &error, int time) |
dynamicgraph::Vector & | computeErrorTimeDerivative (dynamicgraph::Vector &res, int time) |
dynamicgraph::Matrix & | computeJacobian (dynamicgraph::Matrix &J, int time) |
VectorMultiBound & | computeTaskExponentialDecrease (VectorMultiBound &errorRef, int time) |
void | display (std::ostream &os) const |
FeatureList_t & | getFeatureList (void) |
bool | getWithDerivative (void) |
void | initCommands (void) |
void | setControlSelection (const Flags &act) |
void | setWithDerivative (const bool &s) |
Task (const std::string &n) | |
virtual std::ostream & | writeGraph (std::ostream &os) const |
Public Member Functions inherited from dynamicgraph::sot::TaskAbstract | |
TaskAbstract (const std::string &n) | |
Public Member Functions inherited from dynamicgraph::Entity | |
std::ostream & | displaySignalList (std::ostream &os) const |
Entity (const std::string &name) | |
virtual const std::string & | getClassName () const |
const std::string & | getCommandList () const |
virtual std::string | getDocString () const |
LoggerVerbosity | getLoggerVerbosityLevel () |
LoggerVerbosity | getLoggerVerbosityLevel () |
const std::string & | getName () const |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
CommandMap_t | getNewStyleCommandMap () |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
SignalMap | getSignalMap () const |
double | getStreamPrintPeriod () |
double | getStreamPrintPeriod () |
double | getTimeSample () |
double | getTimeSample () |
bool | hasSignal (const std::string &signame) const |
Logger & | logger () |
Logger const & | logger () const |
Logger & | logger () |
Logger const & | logger () const |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
bool | setStreamPrintPeriod (double t) |
bool | setStreamPrintPeriod (double t) |
bool | setTimeSample (double t) |
bool | setTimeSample (double t) |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual | ~Entity () |
Public Attributes | |
dynamicgraph::SignalPtr< double, int > | controlGainSIN |
dynamicgraph::SignalPtr< Flags, int > | controlSelectionSIN |
dynamicgraph::SignalPtr< double, int > | dampingGainSINOUT |
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > | errorSOUT |
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > | errorTimeDerivativeSOUT |
Public Attributes inherited from dynamicgraph::sot::TaskAbstract | |
dynamicgraph::SignalTimeDependent< dynamicgraph::Matrix, int > | jacobianSOUT |
MemoryTaskAbstract * | memoryInternal |
dynamicgraph::SignalTimeDependent< VectorMultiBound, int > | taskSOUT |
Protected Member Functions | |
DYNAMIC_GRAPH_ENTITY_DECL () | |
Protected Member Functions inherited from dynamicgraph::sot::TaskAbstract | |
void | taskRegistration (void) |
Protected Member Functions inherited from dynamicgraph::Entity | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityDeregistration () |
void | entityRegistration () |
void | signalDeregistration (const std::string &name) |
void | signalRegistration (const SignalArray< int > &signals) |
Protected Attributes | |
FeatureList_t | featureList |
bool | withDerivative |
Protected Attributes inherited from dynamicgraph::Entity | |
CommandMap_t | commandMap |
Logger | logger_ |
std::string | name |
SignalMap | signalMap |
Class that defines the basic elements of a task.
A task is defined as where is a set of features and the actuated joints of the robot.
It is assumes that . Moreover as it assumed that this task can provide: It then possible to compute with , and the desired feature and the one currently measured.
It is possible to add features or clear the list of features. This class makes also possible to select some of the listed of features to compute the control law through setControlSelection, addControlSelection, clearControlSelection.
typedef std::list<FeatureAbstract *> dynamicgraph::sot::Task::FeatureList_t |
void Task::addFeature | ( | FeatureAbstract & | s | ) |
dynamicgraph::Vector & Task::computeError | ( | dynamicgraph::Vector & | error, |
int | time | ||
) |
dynamicgraph::Vector & Task::computeErrorTimeDerivative | ( | dynamicgraph::Vector & | res, |
int | time | ||
) |
dynamicgraph::Matrix & Task::computeJacobian | ( | dynamicgraph::Matrix & | J, |
int | time | ||
) |
VectorMultiBound & Task::computeTaskExponentialDecrease | ( | VectorMultiBound & | errorRef, |
int | time | ||
) |
|
virtual |
Reimplemented from dynamicgraph::Entity.
|
protected |
|
inline |
|
virtual |
Reimplemented from dynamicgraph::Entity.
dynamicgraph::SignalPtr<double, int> dynamicgraph::sot::Task::controlGainSIN |
dynamicgraph::SignalPtr<Flags, int> dynamicgraph::sot::Task::controlSelectionSIN |
dynamicgraph::SignalPtr<double, int> dynamicgraph::sot::Task::dampingGainSINOUT |
dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int> dynamicgraph::sot::Task::errorSOUT |
dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int> dynamicgraph::sot::Task::errorTimeDerivativeSOUT |
|
protected |