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

Merge branch '10-factor-topologies' into 'devel'

Resolve "factor topologies"

Closes #10

See merge request !16
parents f7107bd2 56945640
No related branches found
No related tags found
3 merge requests!30Release after RAL,!29After 2nd RAL submission,!16Resolve "factor topologies"
...@@ -45,6 +45,11 @@ class FactorContainer: public FactorAutodiff<FactorContainer,3,2,1,2,1> ...@@ -45,6 +45,11 @@ class FactorContainer: public FactorAutodiff<FactorContainer,3,2,1,2,1>
virtual ~FactorContainer() = default; virtual ~FactorContainer() = default;
virtual std::string getTopology() const override
{
return std::string("LMK");
}
LandmarkContainerPtr getLandmark() LandmarkContainerPtr getLandmark()
{ {
return lmk_ptr_.lock(); return lmk_ptr_.lock();
......
...@@ -42,6 +42,11 @@ class FactorPoint2D: public FactorAutodiff<FactorPoint2D, 2,2,1,2,1,2> ...@@ -42,6 +42,11 @@ class FactorPoint2D: public FactorAutodiff<FactorPoint2D, 2,2,1,2,1,2>
virtual ~FactorPoint2D() = default; virtual ~FactorPoint2D() = default;
virtual std::string getTopology() const override
{
return std::string("LMK");
}
/** /**
* @brief getLandmarkPtr * @brief getLandmarkPtr
* @return * @return
......
...@@ -44,6 +44,11 @@ class FactorPointToLine2D: public FactorAutodiff<FactorPointToLine2D, 1,2,1,2,1, ...@@ -44,6 +44,11 @@ class FactorPointToLine2D: public FactorAutodiff<FactorPointToLine2D, 1,2,1,2,1,
virtual ~FactorPointToLine2D() = default; virtual ~FactorPointToLine2D() = default;
virtual std::string getTopology() const override
{
return std::string("GEOM");
}
LandmarkPolyline2DPtr getLandmark() LandmarkPolyline2DPtr getLandmark()
{ {
return std::static_pointer_cast<LandmarkPolyline2D>( landmark_other_ptr_.lock() ); return std::static_pointer_cast<LandmarkPolyline2D>( landmark_other_ptr_.lock() );
......
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