24 using namespace gtsam;
51 : acc(acc), gyro(gyro), dt(dt) {}
56 template <
typename PIM>
59 for (
const auto&
m : measurements)
60 pim->integrateMeasurement(
m.acc,
m.gyro,
m.dt);
66 const double dt = 0.01, pi100 =
M_PI / 100;
69 for (
int i = 1;
i < 100;
i++) {
70 emplace_back(
Vector3(0.05, 0.09, 0.01),
71 Vector3(pi100, pi100 * 3, 2 * pi100), dt);
static const Bias kZeroBiasHat
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
ImuMeasurement(const Vector3 &acc, const Vector3 &gyro, double dt)
void integrateMeasurements(const vector< ImuMeasurement > &measurements, PIM *pim)
static const Vector3 kGravityAlongNavZDown(0, 0, kGravity)
Matrix< SCALARB, Dynamic, Dynamic > B
static const Vector3 kNonZeroOmegaCoriolis(0, 0.1, 0.1)
static const Bias kZeroBias
static const double kGravity
static const Vector3 kZeroOmegaCoriolis(0, 0, 0)
static const double kAccelSigma
static const Vector3 kZero
imuBias::ConstantBias Bias
static const double kGyroSigma