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

Add getTopologyString() method

parent dff5b245
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #13764 passed
...@@ -123,6 +123,31 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa ...@@ -123,6 +123,31 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa
return topology_; return topology_;
} }
std::string getTopologyString() const
{
switch (topology_)
{
case TOP_GEOM:
return "GEOM";
break;
case TOP_ABS:
return "ABS";
break;
case TOP_LMK:
return "LMK";
break;
case TOP_LOOP:
return "LOOP";
break;
case TOP_OTHER:
return "OTHER";
break;
default:
return "UNDEFINED";
}
}
/** \brief Evaluate the factor given the input parameters and returning the residuals and jacobians /** \brief Evaluate the factor given the input parameters and returning the residuals and jacobians
**/ **/
virtual bool evaluate(double const* const* _parameters, double* _residuals, double** _jacobians) const = 0; virtual bool evaluate(double const* const* _parameters, double* _residuals, double** _jacobians) const = 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