From a89272ced5d9911fbe846ca506bcec2115cf2e9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Tue, 4 Jun 2019 15:03:54 +0200
Subject: [PATCH] bug fixed: added timestamps to captures in gtest_track_matrix

---
 test/gtest_track_matrix.cpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/test/gtest_track_matrix.cpp b/test/gtest_track_matrix.cpp
index d63f448a7..83ffdbd5e 100644
--- a/test/gtest_track_matrix.cpp
+++ b/test/gtest_track_matrix.cpp
@@ -25,13 +25,15 @@ class TrackMatrixTest : public testing::Test
         virtual void SetUp()
         {
             // unlinked captures
+            // Some warnings will be thrown "linking with nullptr" for emplacing without providing frame pointer
             C0 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
-            C1 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
-            C2 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
-            C3 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
-            C4 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
+            C1 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 1.0);
+            C2 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 2.0);
+            C3 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 3.0);
+            C4 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 4.0);
 
             // unlinked features
+            // Some warnings will be thrown "linking with nullptr" for emplacing without providing capture pointer
             f0 = FeatureBase::emplace<FeatureBase>(nullptr, "BASE", m, m_cov);
             f1 = FeatureBase::emplace<FeatureBase>(nullptr, "BASE", m, m_cov);
             f2 = FeatureBase::emplace<FeatureBase>(nullptr, "BASE", m, m_cov);
-- 
GitLab