21 template <
typename MatrixType,
int UpLo = Eigen::Lower>
22 class Cholesky :
public Eigen::LLT<MatrixType, UpLo>
39 template <
typename Derived>
40 Cholesky&
setL(
const Eigen::MatrixBase<Derived>& matrix);
46 template <
typename Derived>
47 Cholesky&
setU(
const Eigen::MatrixBase<Derived>& matrix);
50 template <
size_t STATE_DIM,
typename SCALAR>
61 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
size_t OUTPUT_DIM,
typename SCALAR =
double>
65 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
74 static constexpr
size_t SigmaPointCount = 2 * STATE_DIM + 1;
76 template <
size_t SIZE>
77 using SigmaPoints = Eigen::Matrix<SCALAR, SIZE, SigmaPointCount>;
79 template <
size_t SIZE>
82 template <
size_t SIZE>
108 bool computeSigmaPoints();
111 template <
size_t SIZE>
112 bool computeCovarianceFromSigmaPoints(
const Eigen::Matrix<SCALAR, SIZE, 1>& mean,
121 Eigen::Matrix<SCALAR, STATE_DIM, OUTPUT_DIM>& K);
124 bool updateStateCovariance(
const Eigen::Matrix<SCALAR, STATE_DIM, OUTPUT_DIM>& K,
const Covariance<OUTPUT_DIM>& P);
137 void computeWeights();
151 template <
size_t DIM>
156 Eigen::Matrix<SCALAR, SigmaPointCount, 1> sigmaWeights_m_;
157 Eigen::Matrix<SCALAR, SigmaPointCount, 1> sigmaWeights_c_;
Cholesky & setU(const Eigen::MatrixBase< Derived > &matrix)
Set upper triangular part of the decomposition.
bool isIdentity() const
Check whether the decomposed matrix is the identity matrix.
Definition: UnscentedKalmanFilter-impl.h:30
ct::core::ControlVector< control_dim > u
Definition: LoadFromFileTest.cpp:21
Cholesky square root decomposition of a symmetric positive-definite matrix.
Definition: UnscentedKalmanFilter.h:22
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
const double dt
Definition: LQOCSolverTiming.cpp:18
Linear Measurement Model is an interface for linear measurement models most commonly used in practice...
Definition: LinearMeasurementModel.h:23
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Eigen::Matrix< SCALAR, SIZE, SigmaPointCount > SigmaPoints
Definition: UnscentedKalmanFilter.h:77
Cholesky()
Constructor.
Definition: UnscentedKalmanFilter-impl.h:12
Cholesky & setL(const Eigen::MatrixBase< Derived > &matrix)
Set lower triangular part of the decomposition.
System model is an interface that encapsulates the integrator to be able to propagate the system...
Definition: SystemModelBase.h:21
Estimator base.
Definition: EstimatorBase.h:21
StateVector< state_dim > x0
Definition: ConstrainedNLOCTest.cpp:14
Settings for setting up an UnscentedKF.
Definition: FilterSettings.h:182
Eigen::Matrix< SCALAR, SIZE, SIZE > Covariance
Definition: UnscentedKalmanFilter.h:80
Cholesky & setIdentity()
Set decomposition to identity.
Definition: UnscentedKalmanFilter-impl.h:22
Unscented Kalman Filter is a nonlinear estimator best suited for highly nonlinear systems...
Definition: UnscentedKalmanFilter.h:62