include
sot
core
task-conti.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_TASKCONTI_H__
11
#define __SOT_TASKCONTI_H__
12
13
/* --------------------------------------------------------------------- */
14
/* --- INCLUDE --------------------------------------------------------- */
15
/* --------------------------------------------------------------------- */
16
17
/* Matrix */
18
#include <
dynamic-graph/linear-algebra.h
>
19
20
/* STD */
21
#include <string>
22
23
/* SOT */
24
#include <
sot/core/exception-task.hh
>
25
#include <
sot/core/feature-abstract.hh
>
26
#include <
sot/core/flags.hh
>
27
#include <
sot/core/task.hh
>
28
29
/* --------------------------------------------------------------------- */
30
/* --- API ------------------------------------------------------------- */
31
/* --------------------------------------------------------------------- */
32
33
#if defined(WIN32)
34
#if defined(task_conti_EXPORTS)
35
#define SOTTASKCONTI_EXPORT __declspec(dllexport)
36
#else
37
#define SOTTASKCONTI_EXPORT __declspec(dllimport)
38
#endif
39
#else
40
#define SOTTASKCONTI_EXPORT
41
#endif
42
43
/* --------------------------------------------------------------------- */
44
/* --- CLASS ----------------------------------------------------------- */
45
/* --------------------------------------------------------------------- */
46
47
namespace
dynamicgraph
{
48
namespace
sot {
49
50
class
SOTTASKCONTI_EXPORT
TaskConti
:
public
Task
{
51
protected
:
52
enum
TimeRefValues
{ TIME_REF_UNSIGNIFICANT = -1, TIME_REF_TO_BE_SET = -2 };
53
54
sigtime_t
timeRef
;
55
double
mu
;
56
dynamicgraph::Vector
q0
;
57
58
public
:
59
static
const
std::string
CLASS_NAME
;
60
virtual
const
std::string &
getClassName
(
void
)
const
{
return
CLASS_NAME; }
61
62
public
:
63
TaskConti
(
const
std::string &
n
);
64
65
void
referenceTime
(
const
sigtime_t
&
t
) { timeRef =
t
; }
66
const
sigtime_t
&
referenceTime
(
void
) {
return
timeRef; }
67
68
/* --- COMPUTATION --- */
69
VectorMultiBound
&computeContiDesiredVelocity(
VectorMultiBound
&task,
70
const
sigtime_t
&time);
71
72
/* --- SIGNALS ------------------------------------------------------------ */
73
public
:
74
dynamicgraph::SignalPtr<dynamicgraph::Vector, sigtime_t>
controlPrevSIN
;
75
76
/* --- DISPLAY ------------------------------------------------------------ */
77
void
display
(std::ostream &os)
const
;
78
};
79
80
}
/* namespace sot */
81
}
/* namespace dynamicgraph */
82
83
#endif
/* #ifndef __SOT_TASKCONTI_H__ */
dynamicgraph::sot::TaskConti::CLASS_NAME
static const std::string CLASS_NAME
Definition:
task-conti.hh:59
dynamicgraph::sot::TaskConti::referenceTime
const sigtime_t & referenceTime(void)
Definition:
task-conti.hh:66
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::TaskConti::getClassName
virtual const std::string & getClassName(void) const
Definition:
task-conti.hh:60
dynamicgraph
dynamicgraph::sot::VectorMultiBound
std::vector< MultiBound > VectorMultiBound
Definition:
multi-bound.hh:72
dynamicgraph::sot::TaskConti::q0
dynamicgraph::Vector q0
Definition:
task-conti.hh:56
task.hh
feature-abstract.hh
SOTTASKCONTI_EXPORT
#define SOTTASKCONTI_EXPORT
Definition:
task-conti.hh:40
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::TaskConti::TimeRefValues
TimeRefValues
Definition:
task-conti.hh:52
display
dynamicgraph::Vector
Eigen::VectorXd Vector
flags.hh
dynamicgraph::sot::TaskConti
Definition:
task-conti.hh:50
linear-algebra.h
exception-task.hh
dynamicgraph::sot::Task
Class that defines the basic elements of a task.
Definition:
task.hh:72
dynamicgraph::sot::TaskConti::referenceTime
void referenceTime(const sigtime_t &t)
Definition:
task-conti.hh:65
dynamicgraph::sot::TaskConti::mu
double mu
Definition:
task-conti.hh:55
t
Transform3f t
dynamicgraph::sot::TaskConti::controlPrevSIN
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > controlPrevSIN
Definition:
task-conti.hh:74
n
Vec3f n
dynamicgraph::sot::TaskConti::timeRef
sigtime_t timeRef
Definition:
task-conti.hh:54
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31