From 0667cf4ea273c71dc02d230db01ad389e12dfcaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Wed, 25 May 2022 10:40:38 +0200
Subject: [PATCH] Initialize quaternions to unit length

---
 test/gtest_landmark_object.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/gtest_landmark_object.cpp b/test/gtest_landmark_object.cpp
index c23c6b6..6f571e8 100644
--- a/test/gtest_landmark_object.cpp
+++ b/test/gtest_landmark_object.cpp
@@ -26,7 +26,7 @@ class LandmarkObject_class : public testing::Test{
 
 TEST(LandmarkObject, getObjectType)
 {
-    Vector7d p;
+    Vector7d p; p << 1,2,3, 0,0,0,1;
     TimeStamp t;
     Matrix3d intrinsic;
     LandmarkObjectPtr l = std::make_shared<LandmarkObject>(p, "thetype", t, intrinsic); // pose, object_type, t
@@ -58,7 +58,7 @@ TEST(LandmarkObject, getImageCoord)
 
 TEST(LandmarkObject, getIntrinsic)
 {
-    Vector7d p;
+    Vector7d p; p << 1,2,3, 0,0,0,1;
     TimeStamp t;
     Matrix3d intrinsic;
     intrinsic << 1, 0, 0,
@@ -70,7 +70,7 @@ TEST(LandmarkObject, getIntrinsic)
 
 TEST(LandmarkObject, getInitTimestamp)
 {
-    Vector7d p;
+    Vector7d p; p << 1,2,3, 0,0,0,1;
     TimeStamp t;
     Matrix3d intrinsic;
     t.set(0.0);
-- 
GitLab