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 namespace dg = dynamicgraph;
16 
17 /* --------------------------------------------------------------------- */
18 /* --- MATRIX ---------------------------------------------------------- */
19 /* --------------------------------------------------------------------- */
20 
21 namespace dynamicgraph {
22 namespace sot {
23 namespace command {
24 namespace matrixConstant {
25 class Resize;
26 }
27 } // namespace command
28 
29 class MatrixConstant : public Entity {
31 
32 public:
33  static const std::string CLASS_NAME;
34  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
35 
36  int rows, cols;
37  double color;
38 
39  void setValue(const dg::Matrix &inValue);
40 
41 public:
42  MatrixConstant(const std::string &name);
43 
44  virtual ~MatrixConstant(void) {}
45 
46  SignalTimeDependent<dg::Matrix, int> SOUT;
47 };
48 
49 } // namespace sot
50 } // namespace dynamicgraph
dynamicgraph::sot::MatrixConstant::~MatrixConstant
virtual ~MatrixConstant(void)
Definition: matrix-constant.hh:44
dynamicgraph::sot::MatrixConstant::MatrixConstant
MatrixConstant(const std::string &name)
dynamicgraph
Definition: abstract-sot-external-interface.hh:17
dynamicgraph::sot::MatrixConstant
Definition: matrix-constant.hh:29
dynamicgraph::sot::MatrixConstant::rows
int rows
Definition: matrix-constant.hh:36
dynamicgraph::sot::MatrixConstant::setValue
void setValue(const dg::Matrix &inValue)
dynamicgraph::sot::MatrixConstant::SOUT
SignalTimeDependent< dg::Matrix, int > SOUT
Definition: matrix-constant.hh:46
dynamicgraph::sot::MatrixConstant::Resize
friend class command::matrixConstant::Resize
Definition: matrix-constant.hh:30
dynamicgraph::sot::MatrixConstant::CLASS_NAME
static const std::string CLASS_NAME
Definition: matrix-constant.hh:33
dynamicgraph::sot::MatrixConstant::getClassName
virtual const std::string & getClassName(void) const
Definition: matrix-constant.hh:34
dynamicgraph::sot::MatrixConstant::color
double color
Definition: matrix-constant.hh:37
dynamicgraph::sot::MatrixConstant::cols
int cols
Definition: matrix-constant.hh:36