include
sot
core
task-abstract.hh
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
#ifndef __SOT_TASKABSTRACT_H__
11
#define __SOT_TASKABSTRACT_H__
12
13
/* --------------------------------------------------------------------- */
14
/* --- INCLUDE --------------------------------------------------------- */
15
/* --------------------------------------------------------------------- */
16
17
/* Matrix */
18
#include <
dynamic-graph/linear-algebra.h
>
19
20
#include <Eigen/SVD>
21
22
/* STD */
23
#include <string>
24
25
/* SOT */
26
#include <
dynamic-graph/all-signals.h
>
27
#include <dynamic-graph/entity.h>
28
29
#include <
sot/core/multi-bound.hh
>
30
31
#include "
sot/core/api.hh
"
32
33
/* --------------------------------------------------------------------- */
34
/* --- CLASS ----------------------------------------------------------- */
35
/* --------------------------------------------------------------------- */
36
37
namespace
dynamicgraph
{
38
namespace
sot {
39
50
51
class
SOT_CORE_EXPORT
TaskAbstract
:
public
dynamicgraph::Entity
{
52
public
:
53
/* Use a derivative of this class to store computational memory. */
54
class
MemoryTaskAbstract
{
55
public
:
56
int
timeLastChange
;
57
58
public
:
59
MemoryTaskAbstract
(
void
) : timeLastChange(0){};
60
virtual
~MemoryTaskAbstract
(
void
){};
61
62
public
:
63
virtual
void
display
(std::ostream &os)
const
= 0;
64
friend
std::ostream &
operator<<
(std::ostream &os,
65
const
MemoryTaskAbstract
&tcm) {
66
tcm.
display
(os);
67
return
os;
68
}
69
};
70
71
public
:
72
MemoryTaskAbstract
*
memoryInternal
;
73
74
protected
:
75
void
taskRegistration(
void
);
76
77
public
:
78
TaskAbstract
(
const
std::string &
n
);
79
80
public
:
/* --- SIGNALS --- */
81
dynamicgraph::SignalTimeDependent<VectorMultiBound, int>
taskSOUT
;
82
dynamicgraph::SignalTimeDependent<dynamicgraph::Matrix, int>
jacobianSOUT
;
83
};
84
85
}
/* namespace sot */
86
}
/* namespace dynamicgraph */
87
88
#endif
/* #ifndef __SOT_TASKABSTRACT_H__ */
display
n
Vec3f n
dynamicgraph::Entity
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract
Definition:
task-abstract.hh:54
multi-bound.hh
dynamicgraph::sot::TaskAbstract::taskSOUT
dynamicgraph::SignalTimeDependent< VectorMultiBound, int > taskSOUT
Definition:
task-abstract.hh:81
dynamicgraph::SignalTimeDependent< VectorMultiBound, int >
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract::timeLastChange
int timeLastChange
Definition:
task-abstract.hh:56
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract::display
virtual void display(std::ostream &os) const =0
SOT_CORE_EXPORT
#define SOT_CORE_EXPORT
Definition:
api.hh:20
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract::MemoryTaskAbstract
MemoryTaskAbstract(void)
Definition:
task-abstract.hh:59
linear-algebra.h
dynamicgraph::sot::TaskAbstract
Definition:
task-abstract.hh:51
dynamicgraph::sot::TaskAbstract::jacobianSOUT
dynamicgraph::SignalTimeDependent< dynamicgraph::Matrix, int > jacobianSOUT
Definition:
task-abstract.hh:82
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract::operator<<
friend std::ostream & operator<<(std::ostream &os, const MemoryTaskAbstract &tcm)
Definition:
task-abstract.hh:64
all-signals.h
dynamicgraph::sot::TaskAbstract::MemoryTaskAbstract::~MemoryTaskAbstract
virtual ~MemoryTaskAbstract(void)
Definition:
task-abstract.hh:60
dynamicgraph
dynamicgraph::sot::TaskAbstract::memoryInternal
MemoryTaskAbstract * memoryInternal
Definition:
task-abstract.hh:72
api.hh
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26