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

Fixes override constraint

parent 483f2464
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ class ProcessorMotion : public ProcessorBase
*/
FrameBasePtr setOrigin(const Eigen::VectorXs& _x_origin, const TimeStamp& _ts_origin);
virtual void setProblem(ProblemPtr);
virtual void setProblem(ProblemPtr) override;
MotionBuffer& getBuffer();
const MotionBuffer& getBuffer() const;
......
......@@ -200,7 +200,7 @@ class ProcessorTracker : public ProcessorBase
*
* WARNING! This function only votes! It does not create KeyFrames!
*/
virtual bool voteForKeyFrame() = 0;
virtual bool voteForKeyFrame() override = 0;
/** \brief Advance the incoming Capture to become the last.
*
......
......@@ -375,17 +375,17 @@ CaptureBasePtrList FrameBase::getCapturesOf(const SensorBasePtr _sensor_ptr)
FactorBasePtr FrameBase::getFactorOf(const ProcessorBasePtr _processor_ptr, const std::string& type)
{
for (const FactorBasePtr& constaint_ptr : getConstrainedByList())
if (constaint_ptr->getProcessor() == _processor_ptr && constaint_ptr->getType() == type)
return constaint_ptr;
for (const FactorBasePtr& factor_ptr : getConstrainedByList())
if (factor_ptr->getProcessor() == _processor_ptr && factor_ptr->getType() == type)
return factor_ptr;
return nullptr;
}
FactorBasePtr FrameBase::getFactorOf(const ProcessorBasePtr _processor_ptr)
{
for (const FactorBasePtr& constaint_ptr : getConstrainedByList())
if (constaint_ptr->getProcessor() == _processor_ptr)
return constaint_ptr;
for (const FactorBasePtr& factor_ptr : getConstrainedByList())
if (factor_ptr->getProcessor() == _processor_ptr)
return factor_ptr;
return nullptr;
}
......
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