1 |
|
|
/* Copyright 2020 LAAS, CNRS |
2 |
|
|
* Joseph Mirabel |
3 |
|
|
* |
4 |
|
|
*/ |
5 |
|
|
|
6 |
|
|
#define ENABLE_RT_LOG |
7 |
|
|
|
8 |
|
|
#include <dynamic-graph/entity.h> |
9 |
|
|
#include <dynamic-graph/signal-ptr.h> |
10 |
|
|
#include <dynamic-graph/signal-time-dependent.h> |
11 |
|
|
|
12 |
|
|
#include <sstream> |
13 |
|
|
|
14 |
|
|
namespace dynamicgraph { |
15 |
|
|
class CustomEntity : public Entity { |
16 |
|
|
public: |
17 |
|
|
dynamicgraph::SignalPtr<double, int> m_sigdSIN; |
18 |
|
|
dynamicgraph::SignalTimeDependent<double, int> m_sigdTimeDepSOUT; |
19 |
|
|
|
20 |
|
|
DYNAMIC_GRAPH_ENTITY_DECL(); |
21 |
|
|
CustomEntity(const std::string n); |
22 |
|
|
|
23 |
|
|
void addSignal(); |
24 |
|
|
|
25 |
|
|
void rmValidSignal(); |
26 |
|
|
|
27 |
|
|
double &update(double &res, const int &inTime); |
28 |
|
|
|
29 |
|
|
void act(); |
30 |
|
|
}; |
31 |
|
|
} // namespace dynamicgraph |