Skip to content
Snippets Groups Projects
Commit fe08cf8f authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

disable changing loss function for now (it's not handled by the solver)

parent bc95ea83
No related branches found
No related tags found
1 merge request!274Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
......@@ -136,7 +136,7 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa
/** \brief Gets the apply loss function flag
*/
void setApplyLossFunction(const bool _apply);
//void setApplyLossFunction(const bool _apply);
/** \brief Returns a pointer to the frame constrained to
**/
......
......@@ -131,20 +131,11 @@ void FactorBase::setStatus(FactorStatus _status)
status_ = _status;
}
void FactorBase::setApplyLossFunction(const bool _apply)
{
if (apply_loss_function_ != _apply)
{
if (getProblem() == nullptr)
std::cout << "factor not linked with Problem, apply loss function change not notified" << std::endl;
else
{
FactorBasePtr this_c = shared_from_this();
getProblem()->removeFactor(this_c);
getProblem()->addFactor(this_c);
}
}
}
//void FactorBase::setApplyLossFunction(const bool _apply)
//{
// apply_loss_function_ = _apply;
//}
void FactorBase::link(FeatureBasePtr _ftr_ptr)
{
if (this->getFeature() != _ftr_ptr)
......
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