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