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

Try an EPS tolerance

parent edc94bf4
No related branches found
No related tags found
1 merge request!402Resolve "Check sensor->getIntrinsic(time) for time = KF_time"
Pipeline #6122 passed
...@@ -263,7 +263,7 @@ CaptureBasePtr SensorBase::findLastCaptureBefore(const TimeStamp& _ts) const ...@@ -263,7 +263,7 @@ CaptureBasePtr SensorBase::findLastCaptureBefore(const TimeStamp& _ts) const
TrajectoryRevIter frame_rev_it = trajectory->rbegin(); TrajectoryRevIter frame_rev_it = trajectory->rbegin();
while (frame_rev_it != trajectory->rend()) while (frame_rev_it != trajectory->rend())
{ {
if ((*frame_rev_it)->getTimeStamp() <= _ts) if ((*frame_rev_it)->getTimeStamp() <= _ts + Constants::EPS)
{ {
auto capture = (*frame_rev_it)->getCaptureOf(shared_from_this()); auto capture = (*frame_rev_it)->getCaptureOf(shared_from_this());
if (capture) if (capture)
......
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