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

add one comment for rev iterating

parent c14c558b
No related branches found
No related tags found
No related merge requests found
Pipeline #2378 passed
...@@ -226,6 +226,8 @@ CaptureBasePtr SensorBase::lastCapture(const TimeStamp& _ts) ...@@ -226,6 +226,8 @@ CaptureBasePtr SensorBase::lastCapture(const TimeStamp& _ts)
// we search for the most recent Capture of this sensor before _ts // we search for the most recent Capture of this sensor before _ts
CaptureBasePtr capture = nullptr; CaptureBasePtr capture = nullptr;
FrameBaseList frame_list = getProblem()->getTrajectoryPtr()->getFrameList(); FrameBaseList frame_list = getProblem()->getTrajectoryPtr()->getFrameList();
// We iterate in reverse since we're likely to find it close to the rbegin() place.
FrameBaseRevIter frame_rev_it = frame_list.rbegin(); FrameBaseRevIter frame_rev_it = frame_list.rbegin();
while (frame_rev_it != frame_list.rend()) while (frame_rev_it != frame_list.rend())
{ {
......
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