25 #ifndef INCLUDED_PureVectorState_h_GUID_5347542B_F2F6_46A2_E49B_3EF0B0A9F9ED
26 #define INCLUDED_PureVectorState_h_GUID_5347542B_F2F6_46A2_E49B_3EF0B0A9F9ED
46 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 : m_state(x, y, z), m_errorCovariance(SquareMatrix::Zero()) {
49 static_assert(DIMENSION == 3,
"This constructor, which takes 3 "
50 "scalars, only works with a 3D "
54 PureVectorState(
double x,
double y,
double z,
55 SquareMatrix
const &covariance)
56 : m_state(x, y, z), m_errorCovariance(covariance) {
57 static_assert(DIMENSION == 3,
"This constructor, which takes 3 "
58 "scalars, only works with a 3D "
62 PureVectorState(StateVector
const &state,
63 SquareMatrix
const &covariance)
64 : m_state(state), m_errorCovariance(covariance) {}
68 void setStateVector(StateVector
const &state) { m_state = state; }
77 return m_errorCovariance;
85 SquareMatrix m_errorCovariance;
90 #endif // INCLUDED_PureVectorState_h_GUID_5347542B_F2F6_46A2_E49B_3EF0B0A9F9ED
Eigen::Matrix< Scalar, n, 1 > Vector
A vector of length n.
Eigen::Matrix< Scalar, n, n > SquareMatrix
A square matrix, n x n.
The main namespace for all C++ elements of the framework, internal and external.
StateVector const & stateVector() const
xhat
SquareMatrix const & errorCovariance() const
P.
std::size_t DimensionType
Type for dimensions.