control-toolbox icon indicating copy to clipboard operation
control-toolbox copied to clipboard

Coherency with StateMatrix StateVector ControlMatrix ControlVector types

Open markusgft opened this issue 5 years ago • 0 comments

@jcarius had reported the following

Many classes use their own typedefs such as

typedef Eigen::Matrix<SCALAR, STATE_DIM, STATE_DIM> state_matrix_t;

This will lead to implicit conversions between Eigen::Matrix and ct::core::StateMatrix.

Proposed solution As much as possible, re-use base-class typedef

typedef typename Base::state_matrix_t state_matrix_t;

If not available, use the CT type.

markusgft avatar May 18 '19 06:05 markusgft