25 #include <boost/bind.hpp> 31 static boost::shared_ptr<PreintegrationParams>
Params() {
32 auto p = PreintegrationParams::MakeSharedD(
kGravity);
35 p->integrationCovariance = 0.0001 * I_3x3;
44 boost::function<Rot3(const Vector3&, const Vector3&)> deltaRij =
51 boost::function<Point3(const Vector3&, const Vector3&)> deltaPij =
58 boost::function<Vector3(const Vector3&, const Vector3&)> deltaVij =
101 boost::bind(&ManifoldPreintegration::computeError, pim, _1, _2, _3,
102 boost::none, boost::none, boost::none);
Matrix3 delRdelBiasOmega() const
static int runAllTests(TestResult &result)
void integrateMeasurements(const vector< ImuMeasurement > &measurements, PIM *pim)
internal::FixedSizeMatrix< Y, X3 >::type numericalDerivative33(boost::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
Some functions to compute numerical derivatives.
Pose3 x2(Rot3::Ypr(0.0, 0.0, 0.0), l2)
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative31(boost::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const boost::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
Common testing infrastructure.
Matrix3 delPdelBiasAcc() const
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.
Matrix3 delPdelBiasOmega() const
Matrix3 delVdelBiasOmega() const
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative32(boost::function< Y(const X1 &, const X2 &, const X3 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, double delta=1e-5)
Vector3 deltaPij() const override
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(boost::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
Vector3 deltaVij() const override
static const double kAccelSigma
Test harness methods for expressions.
TEST(ManifoldPreintegration, BiasCorrectionJacobians)
#define EXPECT(condition)
static const Vector3 kZero
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static boost::shared_ptr< PreintegratedCombinedMeasurements::Params > Params()
Matrix3 delVdelBiasAcc() const
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
imuBias::ConstantBias Bias
Rot3 deltaRij() const override
static const double kGyroSigma