src
feature
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
>
18
#include <
sot/core/exception-feature.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
>
26
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN
(
FeatureTask
,
"FeatureTask"
);
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
}
task.hh
feature-task.hh
dynamicgraph::sot::FeatureTask::taskPtr
TaskAbstract * taskPtr
Definition:
feature-task.hh:51
exception-feature.hh
std
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeatureTask, "FeatureTask")
dynamicgraph::sot::FeatureTask
Definition:
feature-task.hh:43
debug.hh
dynamicgraph::Entity::getName
const std::string & getName() const
dynamicgraph::sot
dynamicgraph::sot::FeatureTask::display
virtual void display(std::ostream &os) const
Display the information related to this task implementation.
Definition:
feature-task.cpp:42
dynamicgraph::sot::FeatureGeneric
Class that defines a generic implementation of the abstract interface for features.
Definition:
feature-generic.hh:56
dynamicgraph
factory.hh
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26