Skip to content
Snippets Groups Projects
Commit 63b7e877 authored by cont-integration's avatar cont-integration
Browse files

[skip ci] applied clang format

parent bb5ca261
No related branches found
No related tags found
1 merge request!448Draft: Resolve "Implementation of new nodes creation"
Pipeline #16931 skipped
......@@ -97,7 +97,7 @@ class ProcessorTracker : public ProcessorBase
FeatureBasePtrList
new_features_incoming_; ///< list of the new features of \b last successfully tracked in \b incoming
FeatureBasePtrList
known_features_last_; ///< list of the known features in previous captures successfully tracked in \b last
known_features_last_; ///< list of the known features in previous captures successfully tracked in \b last
FeatureBasePtrList
known_features_incoming_; ///< list of the known features in \b last successfully tracked in \b incoming
StateKeys state_keys_; ///< Keys of frames created or used by this processor
......
......@@ -119,7 +119,7 @@ TEST_F(ProcessorTrackerFeatureDummyTest, processNew)
CaptureBasePtr inc_cap = std::make_shared<CaptureVoid>(1, sensor);
processor->setInc(inc_cap);
auto n_new_feat = processor->callProcessNew(10); // detect 10 features
auto n_new_feat = processor->callProcessNew(10); // detect 10 features
ASSERT_EQ(n_new_feat, 10); // detected 10 features
ASSERT_EQ(processor->getLast()->getFeatureList().size(), 10); // detected 10 features
......@@ -140,13 +140,13 @@ TEST_F(ProcessorTrackerFeatureDummyTest, processKnown)
CaptureBasePtr inc_cap = std::make_shared<CaptureVoid>(1, sensor);
processor->setInc(inc_cap);
processor->callProcessNew(15); // detect 15 features, 1 track lost per tracking
processor->callProcessNew(15); // detect 15 features, 1 track lost per tracking
ASSERT_EQ(processor->getLast()->getFeatureList().size(), 15); // detected 15 features
ASSERT_EQ(processor->getIncoming()->getFeatureList().size(), 14); // 1 track lost
ASSERT_EQ(processor->getMatchesLastFromIncoming().size(), 14); // 1 track lost
processor->callReset(); // now incoming is last and last is origin
processor->callReset(); // now incoming is last and last is origin
// Put a capture on last_ptr_
CaptureBasePtr new_cap = std::make_shared<CaptureVoid>(0, sensor);
......@@ -203,13 +203,13 @@ TEST_F(ProcessorTrackerFeatureDummyTest, establishFactors)
CaptureBasePtr inc_cap = CaptureBase::emplace<CaptureVoid>(inc_frm, 1, sensor);
processor->setInc(inc_cap);
processor->callProcessNew(15); // detect 15 features, 1 track lost per tracking
processor->callProcessNew(15); // detect 15 features, 1 track lost per tracking
ASSERT_EQ(processor->getLast()->getFeatureList().size(), 15); // detected 15 features
ASSERT_EQ(processor->getIncoming()->getFeatureList().size(), 14); // 1 track lost
ASSERT_EQ(processor->getMatchesLastFromIncoming().size(), 14); // 1 track lost
processor->callReset(); // now incoming is last and last is origin
processor->callReset(); // now incoming is last and last is origin
// test establishFactors()
processor->callEstablishFactors();
......
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