sot-core  4.11.2
Hierarchical task solver plug-in for dynamic-graph.
double-constant.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2019,
3  * Joseph Mirabel
4  *
5  * LAAS-CNRS
6  *
7  */
8 
9 #ifndef DYNAMICGRAPH_SOT_DOUBLE_CONSTANT_H
10 #define DYNAMICGRAPH_SOT_DOUBLE_CONSTANT_H
11 
12 #include <dynamic-graph/entity.h>
13 
14 #include <dynamic-graph/signal-time-dependent.h>
15 
16 namespace dynamicgraph {
17 namespace sot {
18 
19 class DoubleConstant : public Entity {
20 public:
21  static const std::string CLASS_NAME;
22  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
23 
24  DoubleConstant(const std::string &name);
25 
26  virtual ~DoubleConstant(void) {}
27 
28  SignalTimeDependent<double, int> SOUT;
29 
31  void setValue(const double &inValue);
32 };
33 
34 } // namespace sot
35 } // namespace dynamicgraph
36 
37 #endif // DYNAMICGRAPH_SOT_DOUBLE_CONSTANT_H
SignalTimeDependent< double, int > SOUT
Definition: double-constant.hh:28
static const std::string CLASS_NAME
Definition: double-constant.hh:21
Definition: double-constant.hh:19
DoubleConstant(const std::string &name)
virtual ~DoubleConstant(void)
Definition: double-constant.hh:26
virtual const std::string & getClassName(void) const
Definition: double-constant.hh:22
Definition: abstract-sot-external-interface.hh:17
void setValue(const double &inValue)
Set value of vector (and therefore of output signal)