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

Rename ProcessorBase::makeFrame --> emplaceFrame

parent 247f3be3
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ bool ProcessorBase::permittedKeyFrame() ...@@ -27,7 +27,7 @@ bool ProcessorBase::permittedKeyFrame()
return getProblem()->permitKeyFrame(shared_from_this()); return getProblem()->permitKeyFrame(shared_from_this());
} }
FrameBasePtr ProcessorBase::makeFrame(CaptureBasePtr _capture_ptr, FrameType _type) FrameBasePtr ProcessorBase::emplaceFrame(CaptureBasePtr _capture_ptr, FrameType _type)
{ {
std::cout << "Making " << (_type == KEY_FRAME? "key-" : "") << "frame" << std::endl; std::cout << "Making " << (_type == KEY_FRAME? "key-" : "") << "frame" << std::endl;
...@@ -37,7 +37,7 @@ FrameBasePtr ProcessorBase::makeFrame(CaptureBasePtr _capture_ptr, FrameType _ty ...@@ -37,7 +37,7 @@ FrameBasePtr ProcessorBase::makeFrame(CaptureBasePtr _capture_ptr, FrameType _ty
return new_frame_ptr; return new_frame_ptr;
} }
FrameBasePtr ProcessorBase::makeFrame(CaptureBasePtr _capture_ptr, const Eigen::VectorXs& _state, FrameType _type) FrameBasePtr ProcessorBase::emplaceFrame(CaptureBasePtr _capture_ptr, const Eigen::VectorXs& _state, FrameType _type)
{ {
std::cout << "Making " << (_type == KEY_FRAME? "key-" : "") << "frame" << std::endl; std::cout << "Making " << (_type == KEY_FRAME? "key-" : "") << "frame" << std::endl;
......
...@@ -59,7 +59,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce ...@@ -59,7 +59,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
* - Put it in the Trajectory, and * - Put it in the Trajectory, and
* - Add the provided capture on it. * - Add the provided capture on it.
*/ */
FrameBasePtr makeFrame(CaptureBasePtr _capture_ptr, FrameType _type = NON_KEY_FRAME); FrameBasePtr emplaceFrame(CaptureBasePtr _capture_ptr, FrameType _type = NON_KEY_FRAME);
/**\brief make a Frame with the provided Capture /**\brief make a Frame with the provided Capture
* *
* Provide the following functionality: * Provide the following functionality:
...@@ -67,7 +67,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce ...@@ -67,7 +67,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
* - Put it in the Trajectory, and * - Put it in the Trajectory, and
* - Add the provided capture on it. * - Add the provided capture on it.
*/ */
FrameBasePtr makeFrame(CaptureBasePtr _capture_ptr, const Eigen::VectorXs& _state, FrameType _type = NON_KEY_FRAME); FrameBasePtr emplaceFrame(CaptureBasePtr _capture_ptr, const Eigen::VectorXs& _state, FrameType _type = NON_KEY_FRAME);
virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) = 0; virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) = 0;
......
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