diff --git a/src/processor/processor_motion.cpp b/src/processor/processor_motion.cpp index 3b11415f7a77574291e20802b2a9a7949cc178fe..cc51c7e70b6064e36a202d973b55b1b97ecabf90 100644 --- a/src/processor/processor_motion.cpp +++ b/src/processor/processor_motion.cpp @@ -708,9 +708,11 @@ CaptureMotionPtr ProcessorMotion::findCaptureContainingTimeStamp(const TimeStamp // 1. See that the KF contains a CaptureMotion // 2. See that the TS is smaller than the KF's TS // 3. See that the TS is bigger than the first Motion in the CaptureMotion's buffer (if any) + FrameBasePtr frame = nullptr; CaptureBasePtr capture = nullptr; CaptureMotionPtr capture_motion = nullptr; + for (auto frame_rev_iter = getProblem()->getTrajectory()->getFrameList().rbegin(); frame_rev_iter != getProblem()->getTrajectory()->getFrameList().rend(); ++frame_rev_iter) @@ -808,7 +810,7 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep() void ProcessorMotion::setProblem(ProblemPtr _problem) { std::string str = "Processor works with " + std::to_string(dim_) + "D but problem is " + std::to_string(_problem->getDim()) + "D"; - assert((dim_ == 0 or dim_ == _problem->getDim()) && str.c_str()); + assert( ( (dim_ == 0) or (dim_ == _problem->getDim() ) ) && str.c_str() ); if (_problem == nullptr or _problem == this->getProblem()) return;