From 15fa87c6fe32c08dfb73fe9183cb150b437a4fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Wed, 7 Mar 2018 08:54:09 +0100 Subject: [PATCH] Make tmp variable for some efficiency gain --- src/processor_motion.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/processor_motion.cpp b/src/processor_motion.cpp index bb4380607..5e5262574 100644 --- a/src/processor_motion.cpp +++ b/src/processor_motion.cpp @@ -136,19 +136,20 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr) { // extract pack elements FrameBasePtr keyframe_from_callback = pack->key_frame; - TimeStamp ts_from_callback = keyframe_from_callback->getTimeStamp(); + TimeStamp ts_from_callback = keyframe_from_callback->getTimeStamp(); // Find the frame acting as the capture's origin auto keyframe_origin = last_ptr_->getOriginFramePtr(); // emplace a new motion capture to the new keyframe + VectorXs calib = last_ptr_->getCalibration(); auto capture_for_keyframe_callback = emplaceCapture(keyframe_from_callback, getSensorPtr(), ts_from_callback, Eigen::VectorXs::Zero(data_size_), last_ptr_->getDataCovariance(), - last_ptr_->getCalibration(), - last_ptr_->getCalibration(), + calib, + calib, keyframe_origin); // split the buffer -- GitLab