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