11 template <
size_t STATE_DIM,
class SCALAR =
double>
12 class StateVector :
public Eigen::Matrix<SCALAR, STATE_DIM, 1>
15 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
17 typedef Eigen::Matrix<SCALAR, STATE_DIM, 1>
Base;
18 static const size_t DIM = STATE_DIM;
23 template <
typename OtherDerived>
24 StateVector(
const Eigen::MatrixBase<OtherDerived>& other) : Base(other)
29 template <
typename OtherDerived>
32 this->Base::operator=(other);
static const size_t DIM
Definition: StateVector.h:18
StateVector(const Eigen::MatrixBase< OtherDerived > &other)
This constructor allows you to construct MyVectorType from Eigen expressions.
Definition: StateVector.h:24
Base & toImplementation()
get underlying Eigen type
Definition: StateVector.h:37
virtual ~StateVector()
Definition: StateVector.h:21
Definition: StateVector.h:12
StateVector()
Definition: StateVector.h:20
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Eigen::Matrix< SCALAR, STATE_DIM, 1 > Base
Definition: StateVector.h:17
StateVector & operator=(const Eigen::MatrixBase< OtherDerived > &other)
This method allows you to assign Eigen expressions to MyVectorType.
Definition: StateVector.h:30
const Base & toImplementation() const
get const underlying Eigen type
Definition: StateVector.h:39