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

Rename kfCallback() to new version

parent cdd7048d
No related branches found
No related tags found
1 merge request!157Kfpackmanager
This commit is part of merge request !157. Comments created here will be created in the context of that merge request.
......@@ -45,7 +45,7 @@ FrameBasePtr ProcessorBase::emplaceFrame(FrameType _type, CaptureBasePtr _captur
return new_frame_ptr;
}
void ProcessorBase::keyFrameCallbackNew(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
void ProcessorBase::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
{
if (_keyframe_ptr != nullptr)
kf_pack_buffer_.add(_keyframe_ptr,_time_tol_other);
......
......@@ -162,9 +162,9 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
*/
FrameBasePtr emplaceFrame(FrameType _type, CaptureBasePtr _capture_ptr, const Eigen::VectorXs& _state);
virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) = 0;
// virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) = 0;
void keyFrameCallbackNew(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other);
void keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other);
SensorBasePtr getSensorPtr();
const SensorBasePtr getSensorPtr() const;
......
......@@ -346,9 +346,9 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
//std::cout << "-----End of process():" << std::endl;
}
bool ProcessorTracker::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
{
WOLF_TRACE("This callback doing nothing!!! ");
//bool ProcessorTracker::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
//{
// WOLF_TRACE("This callback doing nothing!!! ");
// WOLF_DEBUG( "PT: KF" , _keyframe_ptr->id() , " callback received at ts= " , _keyframe_ptr->getTimeStamp().get() );
//
// assert((last_ptr_ == nullptr || last_ptr_->getFramePtr() != nullptr) && "ProcessorTracker::keyFrameCallback: last_ptr_ must have a frame always");
......
......@@ -99,7 +99,7 @@ class ProcessorTracker : public ProcessorBase
void setMaxNewFeatures(const unsigned int& _max_new_features);
unsigned int getMaxNewFeatures();
virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other);
// virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other);
bool checkTimeTolerance(const TimeStamp& _ts1, const TimeStamp& _ts2);
bool checkTimeTolerance(const CaptureBasePtr _cap, const TimeStamp& _ts);
......
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