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_FACTORY_ENTITY_PLUGIN(FeatureTask, "FeatureTask")
const std::string & getName() const
virtual void display(std::ostream &os) const
Display the information related to this task implementation.
Class that defines a generic implementation of the abstract interface for features.


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26