Skip to content
Snippets Groups Projects
Commit a89272ce authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

bug fixed: added timestamps to captures in gtest_track_matrix

parent 406907e6
No related branches found
No related tags found
1 merge request!274Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
...@@ -25,13 +25,15 @@ class TrackMatrixTest : public testing::Test ...@@ -25,13 +25,15 @@ class TrackMatrixTest : public testing::Test
virtual void SetUp() virtual void SetUp()
{ {
// unlinked captures // unlinked captures
// Some warnings will be thrown "linking with nullptr" for emplacing without providing frame pointer
C0 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0); C0 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0);
C1 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0); C1 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 1.0);
C2 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0); C2 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 2.0);
C3 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0); C3 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 3.0);
C4 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 0.0); C4 = CaptureBase::emplace<CaptureBase>(nullptr, "BASE", 4.0);
// unlinked features // 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); f0 = FeatureBase::emplace<FeatureBase>(nullptr, "BASE", m, m_cov);
f1 = 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); f2 = FeatureBase::emplace<FeatureBase>(nullptr, "BASE", m, m_cov);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment