sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
vector-constant.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 DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
11 #define DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
12 
13 #include <dynamic-graph/all-signals.h>
14 #include <dynamic-graph/entity.h>
15 
16 /* Matrix */
17 #include <dynamic-graph/linear-algebra.h>
18 
19 /* --------------------------------------------------------------------- */
20 /* --- VECTOR ---------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 namespace dynamicgraph {
23 namespace sot {
24 
25 namespace command {
26 namespace vectorConstant {
27 class Resize;
28 }
29 } // namespace command
30 
31 class VectorConstant : public Entity {
33  int rows;
34 
35  public:
36  static const std::string CLASS_NAME;
37  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
38 
39  VectorConstant(const std::string &name);
40 
41  virtual ~VectorConstant(void) {}
42 
43  SignalTimeDependent<dynamicgraph::Vector, int> SOUT;
44 
46  void setValue(const dynamicgraph::Vector &inValue);
47 };
48 
49 } // namespace sot
50 } // namespace dynamicgraph
51 
52 #endif // DYNAMICGRAPH_SOT_VECTOR_CONSTANT_H
Definition: vector-constant.hh:31
friend class command::vectorConstant::Resize
Definition: vector-constant.hh:32
SignalTimeDependent< dynamicgraph::Vector, int > SOUT
Definition: vector-constant.hh:43
virtual ~VectorConstant(void)
Definition: vector-constant.hh:41
virtual const std::string & getClassName(void) const
Definition: vector-constant.hh:37
static const std::string CLASS_NAME
Definition: vector-constant.hh:36
VectorConstant(const std::string &name)
void setValue(const dynamicgraph::Vector &inValue)
Set value of vector (and therefore of output signal)
Definition: abstract-sot-external-interface.hh:17