Go to the documentation of this file.
32 #include <Eigen/Dense>
35 #include <type_traits>
85 "Template parameter M must be a GTSAM Manifold.");
90 if (
P0.rows() !=
n_ ||
P0.cols() !=
n_) {
91 throw std::invalid_argument(
92 "ManifoldEKF: Initial covariance P0 dimensions (" +
93 std::to_string(
P0.rows()) +
"x" + std::to_string(
P0.cols()) +
94 ") do not match state's tangent space dimension (" +
95 std::to_string(
n_) +
").");
130 if (
F.rows() !=
n_ ||
F.cols() !=
n_ ||
Q.rows() !=
n_ ||
Q.cols() !=
n_) {
131 throw std::invalid_argument(
132 "ManifoldEKF::predict: Dynamic F/Q dimensions must match state dimension " +
133 std::to_string(
n_) +
".");
138 P_ =
F *
P_ *
F.transpose() +
Q;
151 template <
typename Measurement>
158 "Template parameter Measurement must be a GTSAM Manifold for LocalCoordinates.");
166 throw std::invalid_argument(
167 "ManifoldEKF::update: Dynamic measurement 'prediction' and 'z' have different dimensions.");
169 if (
H.rows() != m_runtime ||
H.cols() !=
n_ ||
R.rows() != m_runtime ||
R.cols() != m_runtime) {
170 throw std::invalid_argument(
171 "ManifoldEKF::update: Jacobian H or Noise R dimensions mismatch for dynamic measurement.");
177 if (
H.cols() !=
n_) {
178 throw std::invalid_argument(
179 "ManifoldEKF::update: Jacobian H columns must match state dimension " + std::to_string(
n_) +
".");
205 I_n = Jacobian::Identity(
n_,
n_);
208 I_n = Jacobian::Identity();
213 P_ = I_KH *
P_ * I_KH.transpose() +
K *
R *
K.transpose();
228 template <
typename Measurement,
typename MeasurementFunction>
232 "Template parameter Measurement must be a GTSAM Manifold.");
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate set rrange[*:*] noreverse nowriteback set trange[*:*] noreverse nowriteback set urange[*:*] noreverse nowriteback set vrange[*:*] noreverse nowriteback set xlabel matrix size set x2label set timefmt d m y n H
int n_
Runtime tangent space dimension of M.
typename traits< G >::TangentVector TangentVector
Tangent vector type for the manifold M.
typedef and functions to augment Eigen's VectorXd
ManifoldEKF(const M &X0, const Covariance &P0)
typedef and functions to augment Eigen's MatrixXd
M X_
Manifold state estimate.
void predict(const M &X_next, const Jacobian &F, const Covariance &Q)
virtual ~ManifoldEKF()=default
This is the base class for all measurement types.
const Covariance & covariance() const
Covariance P_
Covariance (Eigen::Matrix<double, Dim, Dim>).
void update(MeasurementFunction &&h, const Measurement &z, const Eigen::Matrix< double, traits< Measurement >::dimension, traits< Measurement >::dimension > &R)
Base class and basic functions for Manifold types.
Special class for optional Jacobian arguments.
void update(const Measurement &prediction, const Eigen::Matrix< double, traits< Measurement >::dimension, Dim > &H, const Measurement &z, const Eigen::Matrix< double, traits< Measurement >::dimension, traits< Measurement >::dimension > &R)
The quaternion class used to represent 3D orientations and rotations.
Extended Kalman Filter on a generic manifold M.
static constexpr int Dim
Compile-time dimension of the manifold M.
abc_eqf_lib::State< N > M
Rot2 R(Rot2::fromAngle(0.1))
gtsam
Author(s):
autogenerated on Wed May 28 2025 03:01:44