From f25e4a9774b192822dd2e24c688ef1f479539a26 Mon Sep 17 00:00:00 2001 From: Fan Jiang Date: Tue, 28 Apr 2020 20:08:22 -0400 Subject: [PATCH] Fix uninitialized variable usage --- gtsam/navigation/tests/testAHRSFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/navigation/tests/testAHRSFactor.cpp b/gtsam/navigation/tests/testAHRSFactor.cpp index dd216ce34..74acf69da 100644 --- a/gtsam/navigation/tests/testAHRSFactor.cpp +++ b/gtsam/navigation/tests/testAHRSFactor.cpp @@ -342,7 +342,7 @@ TEST( AHRSFactor, fistOrderExponential ) { //****************************************************************************** TEST( AHRSFactor, FirstOrderPreIntegratedMeasurements ) { // Linearization point - Vector3 bias; ///< Current estimate of rotation rate bias + Vector3 bias = Vector3::Zero(); ///< Current estimate of rotation rate bias Pose3 body_P_sensor(Rot3::Expmap(Vector3(0, 0.1, 0.1)), Point3(1, 0, 1));