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

Remove frame's time tolerance from all APIs

parent a95e7af5
No related branches found
No related tags found
3 merge requests!28release after RAL,!27After 2nd RAL submission,!26Resolve "Follow core 420"
......@@ -153,7 +153,7 @@ class ProcessorGnssFix : public ProcessorBase
*
* The ProcessorTracker only processes incoming captures (it is not called).
*/
void processKeyFrame(FrameBasePtr _keyframe_ptr, const double& _time_tolerance) override {};
void processKeyFrame(FrameBasePtr _keyframe_ptr) override {};
/** \brief trigger in capture
*
......@@ -165,7 +165,7 @@ class ProcessorGnssFix : public ProcessorBase
*
* The ProcessorTracker only processes incoming captures, then it returns false.
*/
bool triggerInKeyFrame(FrameBasePtr _keyframe_ptr, const double& _time_tolerance) const override {return false;}
bool triggerInKeyFrame(FrameBasePtr _keyframe_ptr) const override {return false;}
/** \brief store key frame
*
......
......@@ -110,7 +110,7 @@ class ProcessorGnssTdcp : public ProcessorBase
*
* The ProcessorTracker only processes incoming captures (it is not called).
*/
void processKeyFrame(FrameBasePtr _keyframe, const double& _time_tolerance) override;
void processKeyFrame(FrameBasePtr _keyframe) override;
/** \brief store key frame
*
......@@ -134,7 +134,7 @@ class ProcessorGnssTdcp : public ProcessorBase
*
* The ProcessorTracker only processes incoming captures, then it returns false.
*/
bool triggerInKeyFrame(FrameBasePtr _keyframe, const double& _time_tolerance) const override {return true;};
bool triggerInKeyFrame(FrameBasePtr _keyframe) const override {return true;};
bool voteForKeyFrame() const override;
......
......@@ -171,7 +171,7 @@ void ProcessorGnssFix::processCapture(CaptureBasePtr _capture)
// Notify if KF created
if (KF_created)
getProblem()->keyFrameCallback(new_frame, shared_from_this(), params_gnss_->time_tolerance);
getProblem()->keyFrameCallback(new_frame, shared_from_this());
}
FactorBasePtr ProcessorGnssFix::emplaceFactor(FeatureBasePtr _ftr)
......
......@@ -114,7 +114,7 @@ void ProcessorGnssTdcp::processCapture(CaptureBasePtr _capture)
*/
}
void ProcessorGnssTdcp::processKeyFrame(FrameBasePtr _keyframe, const double& _time_tolerance)
void ProcessorGnssTdcp::processKeyFrame(FrameBasePtr _keyframe)
{
WOLF_INFO("ProcessorGnssTdcp::processKeyFrame()");
......
......@@ -135,7 +135,7 @@ TEST(FactorGnssFix2dTest, configure_tree)
// Emplace a frame (FIXED)
Vector3d frame_pose = (Vector3d() << t_map_base(0), t_map_base(1), o_map_base(0)).finished();
frame_ptr = problem_ptr->emplaceFrame( TimeStamp(0), frame_pose);
problem_ptr->keyFrameCallback(frame_ptr, nullptr, 1.0);
problem_ptr->keyFrameCallback(frame_ptr, nullptr);
// Create & process GNSS Fix capture
CaptureGnssFixPtr cap_gnss_ptr = std::make_shared<CaptureGnssFix>(TimeStamp(0), gnss_sensor_ptr, t_ecef_antena, 1e-3*Matrix3d::Identity());
......
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