From 3e1522027674c39e805aa49022c1163f87982a2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Sun, 19 Jun 2022 16:42:58 +0200
Subject: [PATCH] Use list constructor for eigen Vector6d

---
 test/gtest_imu.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/gtest_imu.cpp b/test/gtest_imu.cpp
index b4ae8d286..4dccf7990 100644
--- a/test/gtest_imu.cpp
+++ b/test/gtest_imu.cpp
@@ -1549,7 +1549,8 @@ TEST_F(Process_Factor_Imu, bootstrap)
     problem->print(4, 0, 1, 0);
 
     // Vector6d data(0,0,9.806, 0,0,0); // gravity on Z
-    Vector6d data(0.0, 9.806, 0.0,  0.0, 0.0, 0.0); // gravity on Y
+    // Vector6d data(0.0, 9.806, 0.0,  0.0, 0.0, 0.0); // gravity on Y
+    Vector6d data{ 0.0, 9.806, 0.0,  0.0, 0.0, 0.0 } ; // gravity on Y
 
     capture_imu = std::make_shared<CaptureImu>(0.0, sensor_imu, data, Matrix6d::Identity());
 
-- 
GitLab