From 0081548bad20878d60ae206f8aaef5d0ce1addc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Sun, 19 Jun 2022 21:33:52 +0200 Subject: [PATCH] Use initializer list --- 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 faa4a99ed..fceec6fc8 100644 --- a/test/gtest_imu.cpp +++ b/test/gtest_imu.cpp @@ -1550,7 +1550,8 @@ TEST_F(Process_Factor_Imu, bootstrap) // 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; + 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