diff --git a/examples/ImuFactorExample2.cpp b/examples/ImuFactorExample2.cpp index b4ad5d574..25a6adf51 100644 --- a/examples/ImuFactorExample2.cpp +++ b/examples/ImuFactorExample2.cpp @@ -108,9 +108,9 @@ int main(int argc, char* argv[]) { initialEstimate.insert(biasKey, imuBias::ConstantBias()); } // Predict acceleration and gyro measurements in (actual) body frame - auto measuredAcc = scenario.acceleration_b(t) - - scenario.rotation(t).transpose() * params->n_gravity; - auto measuredOmega = scenario.omega_b(t); + Vector3 measuredAcc = scenario.acceleration_b(t) - + scenario.rotation(t).transpose() * params->n_gravity; + Vector3 measuredOmega = scenario.omega_b(t); accum.integrateMeasurement(measuredAcc, measuredOmega, delta_t); // Add Imu Factor