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 */
19 
20 /* STD */
21 #include <string>
22 
23 /* SOT */
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 
51  protected:
52  enum TimeRefValues { TIME_REF_UNSIGNIFICANT = -1, TIME_REF_TO_BE_SET = -2 };
53 
54  int timeRef;
55  double mu;
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 unsigned int &t) { timeRef = t; }
66  const int &referenceTime(void) { return timeRef; }
67 
68  /* --- COMPUTATION --- */
69  VectorMultiBound &computeContiDesiredVelocity(VectorMultiBound &task,
70  const int &time);
71 
72  /* --- SIGNALS ------------------------------------------------------------ */
73  public:
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__ */
Eigen::VectorXd Vector
Vec3f n
#define SOTTASKCONTI_EXPORT
Definition: task-conti.hh:40
std::vector< MultiBound > VectorMultiBound
Definition: multi-bound.hh:71
virtual const std::string & getClassName(void) const
Definition: task-conti.hh:60
void referenceTime(const unsigned int &t)
Definition: task-conti.hh:65
dynamicgraph::Vector q0
Definition: task-conti.hh:56
static const std::string CLASS_NAME
Definition: task-conti.hh:59
Transform3f t
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > controlPrevSIN
Definition: task-conti.hh:74
Class that defines the basic elements of a task.
Definition: task.hh:72
const int & referenceTime(void)
Definition: task-conti.hh:66


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