Go to the documentation of this file.
28 using namespace std::placeholders;
32 static std::shared_ptr<PreintegrationParams>
Params() {
33 auto p = PreintegrationParams::MakeSharedD(
kGravity);
36 p->integrationCovariance = 0.0001 * I_3x3;
102 f = std::bind(&ManifoldPreintegration::computeError, pim,
103 std::placeholders::_1, std::placeholders::_2,
104 std::placeholders::_3,
nullptr,
nullptr,
115 auto p = std::make_shared<PreintegratedRotationParams>();
119 const double omega = 0.1;
121 const Vector3 biasOmega(1, 2, 3);
123 const double deltaT = 0.5;
127 const Vector biasOmegaHat = biasOmega;
141 const double delta = 0.05;
158 expected3 << Rot3::Logmap(expected2),
Z_3x1,
Z_3x1;
165 EXPECT(assert_equal<Matrix>(numericalDerivative11<Vector9, Vector3>(
g, bias_i.gyroscope()),
static int runAllTests(TestResult &result)
virtual void integrateMeasurement(const Vector3 &measuredAcc, const Vector3 &measuredOmega, const double dt)
Version without derivatives.
internal::FixedSizeMatrix< Y, X3 >::type numericalDerivative33(std::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
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
static const double kGyroSigma
const Matrix3 & delRdelBiasOmega() const
static const double kAccelSigma
Array< double, 1, 3 > e(1./3., 0.5, 2.)
#define EXPECT(condition)
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
void integrateGyroMeasurement(const Vector3 &measuredOmega, const Vector3 &biasHat, double deltaT, OptionalJacobian< 3, 3 > F={})
Calculate an incremental rotation given the gyro measurement and a time interval, and update both del...
const Rot3 & deltaRij() const
Matrix3 delVdelBiasAcc() const
Rot3 deltaRij() const override
const Vector3 bias(1, 2, 3)
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(std::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
void integrateMeasurements(const vector< ImuMeasurement > &measurements, PIM *pim)
#define EQUALITY(expected, actual)
static std::shared_ptr< PreintegrationParams > Params()
const Vector3 trueOmega(omega, 0, 0)
static const double deltaT
Some functions to compute numerical derivatives.
Common expressions, both linear and non-linear.
const Vector3 measuredOmega
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative32(std::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
Matrix3 delPdelBiasOmega() const
Vector3 deltaVij() const override
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative31(std::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
Matrix3 delRdelBiasOmega() const
Matrix3 delVdelBiasOmega() const
void g(const string &key, int i)
Matrix3 delPdelBiasAcc() const
Test harness methods for expressions.
Common testing infrastructure.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
TEST(ManifoldPreintegration, BiasCorrectionJacobians)
Vector9 computeError(const NavState &state_i, const NavState &state_j, const imuBias::ConstantBias &bias_i, OptionalJacobian< 9, 9 > H1, OptionalJacobian< 9, 9 > H2, OptionalJacobian< 9, 6 > H3) const
Calculate error given navStates.
std::vector< double > measurements
imuBias::ConstantBias Bias
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const std::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
static const Vector kZero
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Vector3 deltaPij() const override
Vector9 biasCorrectedDelta(const imuBias::ConstantBias &bias_i, OptionalJacobian< 9, 6 > H={}) const override
static std::shared_ptr< PreintegratedCombinedMeasurements::Params > Params(const Matrix3 &biasAccCovariance=Matrix3::Zero(), const Matrix3 &biasOmegaCovariance=Matrix3::Zero(), const Matrix6 &biasAccOmegaInt=Matrix6::Zero())
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Rot3 biascorrectedDeltaRij(const Vector3 &biasOmegaIncr, OptionalJacobian< 3, 3 > H={}) const
Return a bias corrected version of the integrated rotation.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:56