- 3.0.2 rigid body dynamics module.
StateDependentMatrix.h
Go to the documentation of this file.
1 /* CPYHDR { */
2 /*
3  * This file is part of the 'iit-rbd' library.
4  * Copyright © 2015 2016, Marco Frigerio (marco.frigerio@iit.it)
5  *
6  * See the LICENSE file for more information.
7  */
8 /* } CPYHDR */
9 
10 #ifndef _IIT_RBD__STATE_DEPENDENT_MATRIX_H_
11 #define _IIT_RBD__STATE_DEPENDENT_MATRIX_H_
12 
13 #include <iostream>
14 
15 #include "rbd.h"
16 #include "StateDependentBase.h"
17 
18 namespace iit {
19 namespace rbd {
20 
21 
35 template<class State, int Rows, int Cols, class ActualMatrix>
37  public StateDependentBase<State, ActualMatrix>,
38  public PlainMatrix<typename State::Scalar, Rows, Cols>
39 {
40  private:
42  public:
43  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
45  typedef typename Base::Scalar Scalar;
47  typedef typename Base::Index Index;
49  typedef Base MatrixType;
50  public:
53 
54  template<typename OtherDerived>
56  this->Base::operator=(other);
57  return *this;
58  }
59 
61  using MatrixType::operator();
62  using MatrixType::setZero;
63 };
64 
65 
66 }
67 }
68 
69 
70 #endif /* _IIT_RBD__STATE_DEPENDENT_MATRIX_H_ */
Definition: StateDependentMatrix.h:36
Base::Index Index
Definition: StateDependentMatrix.h:47
Definition: StateDependentBase.h:32
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Base::Scalar Scalar
Definition: StateDependentMatrix.h:45
StateDependentMatrix()
Definition: StateDependentMatrix.h:51
Base MatrixType
Definition: StateDependentMatrix.h:49
~StateDependentMatrix()
Definition: StateDependentMatrix.h:52
Eigen::MatrixBase< Derived > MatrixBase
Definition: rbd.h:51
StateDependentMatrix & operator=(const MatrixBase< OtherDerived > &other)
Definition: StateDependentMatrix.h:55
Eigen::Matrix< Scalar, R, C > PlainMatrix
Definition: rbd.h:54