Skip to content
Snippets Groups Projects
Commit 5779e3cb authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Transfer method to .cpp

parent fdc2673f
No related branches found
No related tags found
1 merge request!157Kfpackmanager
......@@ -136,4 +136,14 @@ void KFPackBuffer::print(void)
std::cout << "]" << std::endl;
}
bool KFPackBuffer::checkTimeTolerance(const TimeStamp& _time_stamp1, const Scalar& _time_tolerance1,
const TimeStamp& _time_stamp2, const Scalar& _time_tolerance2)
{
Scalar time_diff = std::fabs(_time_stamp1 - _time_stamp2);
Scalar time_tol = std::min(_time_tolerance1, _time_tolerance2);
bool pass = time_diff <= time_tol;
return pass;
return (std::fabs(_time_stamp1 - _time_stamp2) <= std::min(_time_tolerance1, _time_tolerance2));
}
} // namespace wolf
......@@ -181,11 +181,6 @@ inline KFPackBuffer::~KFPackBuffer(void)
}
inline bool KFPackBuffer::checkTimeTolerance(const TimeStamp& _time_stamp1, const Scalar& _time_tolerance1, const TimeStamp& _time_stamp2, const Scalar& _time_tolerance2)
{
return (std::fabs(_time_stamp1 - _time_stamp2) < std::min(_time_tolerance1, _time_tolerance2) );
}
inline void KFPackBuffer::clear()
{
container_.clear();
......
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