24 using namespace gtsam;
34 static const Bias kZeroBiasHat, kZeroBias;
37 static const Vector3 kNonZeroOmegaCoriolis(0, 0.1, 0.1);
40 static const Vector3 kGravityAlongNavZDown(0, 0, kGravity);
44 auto radians = [](
double t) {
return t *
M_PI / 180; };
45 static const double kGyroSigma = radians(0.5) / 60;
53 : acc(acc), gyro(gyro), dt(dt) {}
58 template <
typename PIM>
61 for (
const auto&
m : measurements)
62 pim->integrateMeasurement(
m.acc,
m.gyro,
m.dt);
68 const double dt = 0.01, pi100 =
M_PI / 100;
71 for (
int i = 1;
i < 100;
i++) {
72 emplace_back(
Vector3(0.05, 0.09, 0.01),
73 Vector3(pi100, pi100 * 3, 2 * pi100), dt);
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
static const Eigen::MatrixBase< Vector3 >::ConstantReturnType Z_3x1
ImuMeasurement(const Vector3 &acc, const Vector3 &gyro, double dt)
Vector3 kZeroOmegaCoriolis(0, 0, 0)
void integrateMeasurements(const vector< ImuMeasurement > &measurements, PIM *pim)
static const double kAccelSigma
static const Vector kZero
imuBias::ConstantBias Bias
static const double kGyroSigma