Skip to content
Snippets Groups Projects

Resolve "Frame/Capture/Feature/Landmark Other as list/vectors in FactorBase"

2 files
+ 240
240
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -17,11 +17,11 @@ class CheckLog
@@ -17,11 +17,11 @@ class CheckLog
is_consistent_ = true;
is_consistent_ = true;
explanation_ = "";
explanation_ = "";
}
}
CheckLog(bool consistent, std::string explanation)
CheckLog(bool _consistent, std::string _explanation)
{
{
is_consistent_ = consistent;
is_consistent_ = _consistent;
if (not consistent)
if (not _consistent)
explanation_ = explanation;
explanation_ = _explanation;
else
else
explanation_ = "";
explanation_ = "";
}
}
@@ -31,12 +31,12 @@ class CheckLog
@@ -31,12 +31,12 @@ class CheckLog
is_consistent_ = is_consistent_ and l.is_consistent_;
is_consistent_ = is_consistent_ and l.is_consistent_;
explanation_ = explanation_ + l.explanation_;
explanation_ = explanation_ + l.explanation_;
}
}
void addAssertion(bool condition, std::stringstream& stream)
void addAssertion(bool _condition, std::stringstream& _stream)
{
{
auto cl = CheckLog(condition, stream.str());
auto cl = CheckLog(_condition, _stream.str());
this->compose(cl);
this->compose(cl);
// Clear inconsistency_explanation
// Clear inconsistency_explanation
std::stringstream().swap(stream);
std::stringstream().swap(_stream);
}
}
};
};
} // namespace wolf
} // namespace wolf
Loading