From e58ba2d2afb5de8d6a677dba01a0a337f1ce44af Mon Sep 17 00:00:00 2001 From: AndreiCostinescu Date: Sun, 16 Dec 2018 17:47:00 -0500 Subject: [PATCH] Fixed possibly uninitialized warnings in ImuFactorExample2.cpp --- examples/ImuFactorExample2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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