include
sot
core
task-pd.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_TASK_PD_H__
11
#define __SOT_TASK_PD_H__
12
13
/* --------------------------------------------------------------------- */
14
/* --- INCLUDE --------------------------------------------------------- */
15
/* --------------------------------------------------------------------- */
16
17
/* SOT */
18
#include <
sot/core/task.hh
>
19
20
/* --------------------------------------------------------------------- */
21
/* --- API ------------------------------------------------------------- */
22
/* --------------------------------------------------------------------- */
23
24
#if defined(WIN32)
25
#if defined(task_pd_EXPORTS)
26
#define SOTTASKPD_EXPORT __declspec(dllexport)
27
#else
28
#define SOTTASKPD_EXPORT __declspec(dllimport)
29
#endif
30
#else
31
#define SOTTASKPD_EXPORT
32
#endif
33
34
/* --------------------------------------------------------------------- */
35
/* --- CLASS ----------------------------------------------------------- */
36
/* --------------------------------------------------------------------- */
37
38
namespace
dynamicgraph
{
39
namespace
sot {
40
41
class
SOTTASKPD_EXPORT
TaskPD
:
public
Task
{
42
public
:
43
static
const
std::string
CLASS_NAME
;
44
virtual
const
std::string &
getClassName
(
void
)
const
{
return
CLASS_NAME; }
45
46
dynamicgraph::Vector
previousError
;
47
double
beta
;
48
49
public
:
50
TaskPD
(
const
std::string &
n
);
51
52
/* --- COMPUTATION --- */
53
dynamicgraph::Vector
&computeErrorDot(
dynamicgraph::Vector
&error,
54
sigtime_t
time);
55
VectorMultiBound
&computeTaskModif(
VectorMultiBound
&error,
sigtime_t
time);
56
57
/* --- SIGNALS ------------------------------------------------------------ */
58
public
:
59
dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, sigtime_t>
60
errorDotSOUT
;
61
dynamicgraph::SignalPtr<dynamicgraph::Vector, sigtime_t>
errorDotSIN
;
62
63
/* --- PARAMS --- */
64
void
initCommand(
void
);
65
};
66
67
}
/* namespace sot */
68
}
/* namespace dynamicgraph */
69
70
#endif
/* #ifndef __SOT_TASK_PD_H__ */
dynamicgraph::sot::TaskPD::errorDotSOUT
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > errorDotSOUT
Definition:
task-pd.hh:60
dynamicgraph::sot::TaskPD::beta
double beta
Definition:
task-pd.hh:47
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t >
dynamicgraph
dynamicgraph::sot::VectorMultiBound
std::vector< MultiBound > VectorMultiBound
Definition:
multi-bound.hh:72
task.hh
dynamicgraph::sot::TaskPD::getClassName
virtual const std::string & getClassName(void) const
Definition:
task-pd.hh:44
dynamicgraph::sot::TaskPD::CLASS_NAME
static const std::string CLASS_NAME
Definition:
task-pd.hh:43
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::TaskPD::errorDotSIN
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > errorDotSIN
Definition:
task-pd.hh:61
dynamicgraph::Vector
Eigen::VectorXd Vector
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::Task
Class that defines the basic elements of a task.
Definition:
task.hh:72
SOTTASKPD_EXPORT
#define SOTTASKPD_EXPORT
Definition:
task-pd.hh:31
dynamicgraph::sot::TaskPD
Definition:
task-pd.hh:41
n
Vec3f n
dynamicgraph::sot::TaskPD::previousError
dynamicgraph::Vector previousError
Definition:
task-pd.hh:46
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31