32 static std::shared_ptr<PreintegrationParams>
Params() {
33 auto p = PreintegrationParams::MakeSharedD(
kGravity);
36 p->integrationCovariance = 0.0001 * I_3x3;
45 std::function<Rot3(const Vector3&, const Vector3&)> deltaRij =
52 std::function<Point3(const Vector3&, const Vector3&)> deltaPij =
59 std::function<Vector3(const Vector3&, const Vector3&)> deltaVij =
102 f = std::bind(&ManifoldPreintegration::computeError, pim,
103 std::placeholders::_1, std::placeholders::_2,
104 std::placeholders::_3,
nullptr,
nullptr,
Matrix3 delVdelBiasOmega() const
Matrix3 delPdelBiasOmega() const
static int runAllTests(TestResult &result)
static std::shared_ptr< PreintegrationParams > Params()
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
void integrateMeasurements(const vector< ImuMeasurement > &measurements, PIM *pim)
Some functions to compute numerical derivatives.
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
Common testing infrastructure.
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.
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 double kAccelSigma
Vector3 deltaPij() const override
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)
Vector3 deltaVij() const override
Test harness methods for expressions.
TEST(ManifoldPreintegration, BiasCorrectionJacobians)
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)
#define EXPECT(condition)
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)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Matrix3 delRdelBiasOmega() const
Matrix3 delPdelBiasAcc() const
static const Vector kZero
imuBias::ConstantBias Bias
Rot3 deltaRij() const override
Matrix3 delVdelBiasAcc() const
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(std::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
static std::shared_ptr< PreintegratedCombinedMeasurements::Params > Params(const Matrix3 &biasAccCovariance=Matrix3::Zero(), const Matrix3 &biasOmegaCovariance=Matrix3::Zero(), const Matrix6 &biasAccOmegaInt=Matrix6::Zero())
static const double kGyroSigma