GCC Code Coverage Report


Directory: ./
File: include/sot/core/task-conti.hh
Date: 2024-11-13 12:35:17
Exec Total Coverage
Lines: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
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 int 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 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:
74 dynamicgraph::SignalPtr<dynamicgraph::Vector, int> 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__ */
84