feature-task.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 /* --------------------------------------------------------------------- */
11 /* --- INCLUDE --------------------------------------------------------- */
12 /* --------------------------------------------------------------------- */
13 
14 /* --- SOT --- */
15 #include <dynamic-graph/pool.h>
16 
17 #include <sot/core/debug.hh>
19 #include <sot/core/feature-task.hh>
20 #include <sot/core/task.hh>
21 using namespace std;
22 using namespace dynamicgraph::sot;
23 using namespace dynamicgraph;
24 
25 #include <sot/core/factory.hh>
27 
28 /* --------------------------------------------------------------------- */
29 /* --- CLASS ----------------------------------------------------------- */
30 /* --------------------------------------------------------------------- */
31 
32 FeatureTask::FeatureTask(const string &pointName) : FeatureGeneric(pointName) {}
33 
34 /* --------------------------------------------------------------------- */
35 /* --------------------------------------------------------------------- */
36 /* --------------------------------------------------------------------- */
37 
38 /* --------------------------------------------------------------------- */
39 /* --------------------------------------------------------------------- */
40 /* --------------------------------------------------------------------- */
41 
42 void FeatureTask::display(std::ostream &os) const {
43  os << "Feature from task <" << getName();
44  if (taskPtr) os << ": from task " << taskPtr->getName();
45  os << std::endl;
46 }
dynamicgraph::sot::FeatureTask::display
virtual void display(std::ostream &os) const
Display the information related to this task implementation.
Definition: feature-task.cpp:42
factory.hh
dynamicgraph
task.hh
dynamicgraph::sot::FeatureGeneric
Class that defines a generic implementation of the abstract interface for features.
Definition: feature-generic.hh:56
dynamicgraph::sot::FeatureTask::taskPtr
TaskAbstract * taskPtr
Definition: feature-task.hh:51
dynamicgraph::Entity::getName
const std::string & getName() const
debug.hh
feature-task.hh
exception-feature.hh
dynamicgraph::sot::FeatureTask
Definition: feature-task.hh:43
dynamicgraph::sot
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeatureTask, "FeatureTask")


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31