Go to the documentation of this file.
28 using namespace gtsam;
31 static constexpr
double k = 0.5;
35 Vector3 phi = Rot3::Logmap(
X, D_phi);
38 D_phi.row(2).setZero();
40 if (
H) *
H = -
k * D_phi;
54 const Rot3 R0 = Rot3::RzRyRx(0.1, -0.2, 0.3);
55 const Matrix3
P0 = Matrix3::Identity() * 0.1;
60 Matrix3
Q = Matrix3::Identity() * 0.01;
61 Matrix3 Rm = Matrix3::Identity() * 0.05;
63 cout <<
"=== Init ===\nR:\n"
69 cout <<
"--- After predict ---\nR:\n" << ekf.
state().
matrix() <<
"\n\n";
74 cout <<
"--- After update ---\nR:\n" << ekf.
state().
matrix() <<
"\n";
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
typedef and functions to augment Eigen's MatrixXd
Matrix3 skewSymmetric(double wx, double wy, double wz)
3D rotation represented as a rotation matrix or quaternion
Extended Kalman Filter derived class for Lie groups G.
const Covariance & covariance() const
Extended Kalman Filter on a Lie group G, derived from ManifoldEKF.
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
void predict(Dynamics &&f, double dt, const Covariance &Q)
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)
static const Vector3 m_world(0, 0, -1)
The quaternion class used to represent 3D orientations and rotations.
Vector3 dynamicsSO3(const Rot3 &X, OptionalJacobian< 3, 3 > H={})
Vector3 h_mag(const Rot3 &X, OptionalJacobian< 3, 3 > H={})
static constexpr double k
gtsam
Author(s):
autogenerated on Wed May 28 2025 03:01:18