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

Remove obsolete methods computeFramePose()

parent 1b56f4b2
No related branches found
No related tags found
No related merge requests found
...@@ -83,12 +83,6 @@ class CaptureBase : public NodeLinked<FrameBase, FeatureBase> ...@@ -83,12 +83,6 @@ class CaptureBase : public NodeLinked<FrameBase, FeatureBase>
*/ */
virtual void process(); virtual void process();
// TODO Move it to ProcessorX class()
// Rename to computeFrameInitialGuess() ... for instance
// Another name could be provideFrameInitialGuess();
//Should be virtual in ProcessorBase with an empty/error message
virtual Eigen::VectorXs computeFramePose(const TimeStamp& _now) const {return Eigen::VectorXs::Zero(0);};
}; };
inline unsigned int CaptureBase::id() inline unsigned int CaptureBase::id()
......
...@@ -29,9 +29,5 @@ void CaptureFix::process() ...@@ -29,9 +29,5 @@ void CaptureFix::process()
//std::cout << "ConstraintFix added " << std::endl; //std::cout << "ConstraintFix added " << std::endl;
} }
Eigen::VectorXs CaptureFix::computeFramePose(const TimeStamp& _now) const
{
return data_;
}
} // namespace wolf } // namespace wolf
...@@ -32,7 +32,6 @@ class CaptureFix : public CaptureBase ...@@ -32,7 +32,6 @@ class CaptureFix : public CaptureBase
virtual void process(); virtual void process();
virtual Eigen::VectorXs computeFramePose(const TimeStamp& _now) const;
}; };
} //namespace wolf } //namespace wolf
......
...@@ -23,12 +23,4 @@ rawgpsutils::SatellitesObs &CaptureGPS::getData() ...@@ -23,12 +23,4 @@ rawgpsutils::SatellitesObs &CaptureGPS::getData()
} }
/*
* Dummy implementation of the method, only because it's pure virtual
*/
Eigen::VectorXs CaptureGPS::computeFramePose(const TimeStamp &_now) const
{
return Eigen::Vector3s(0, 0, 0);
}
} //namespace wolf } //namespace wolf
...@@ -27,10 +27,6 @@ public: ...@@ -27,10 +27,6 @@ public:
**/ **/
virtual ~CaptureGPS(); virtual ~CaptureGPS();
/*
* Dummy implementation of the method, only because it's pure virtual
*/
virtual Eigen::VectorXs computeFramePose(const TimeStamp &_now) const;
}; };
......
...@@ -32,14 +32,5 @@ void CaptureGPSFix::process() ...@@ -32,14 +32,5 @@ void CaptureGPSFix::process()
getFeatureListPtr()->front()->addConstraint(new ConstraintGPS2D(getFeatureListPtr()->front(), getFramePtr())); getFeatureListPtr()->front()->addConstraint(new ConstraintGPS2D(getFeatureListPtr()->front(), getFramePtr()));
} }
Eigen::VectorXs CaptureGPSFix::computeFramePose(const TimeStamp& _now) const
{
return data_;
}
//void CaptureGPSFix::printSelf(unsigned int _ntabs, std::ostream & _ost) const
//{
// return data_;
//}
} //namespace wolf } //namespace wolf
...@@ -31,8 +31,6 @@ class CaptureGPSFix : public CaptureBase ...@@ -31,8 +31,6 @@ class CaptureGPSFix : public CaptureBase
virtual void process(); virtual void process();
virtual Eigen::VectorXs computeFramePose(const TimeStamp& _now) const;
}; };
} //namespace wolf } //namespace wolf
......
...@@ -40,11 +40,4 @@ std::vector<cv::KeyPoint>& CaptureImage::getKeypoints() ...@@ -40,11 +40,4 @@ std::vector<cv::KeyPoint>& CaptureImage::getKeypoints()
} }
// TODO: This needs to go out some day
Eigen::VectorXs CaptureImage::computeFramePose(const TimeStamp& _now) const
{
return Eigen::VectorXs::Zero(7);
}
} // namespace wolf } // namespace wolf
...@@ -43,12 +43,6 @@ class CaptureImage : public CaptureBase ...@@ -43,12 +43,6 @@ class CaptureImage : public CaptureBase
virtual std::vector<cv::KeyPoint>& getKeypoints(); virtual std::vector<cv::KeyPoint>& getKeypoints();
// TODO: This needs to go out some day
virtual Eigen::VectorXs computeFramePose(const TimeStamp& _now) const;
}; };
} // namespace wolf } // namespace wolf
......
...@@ -13,9 +13,5 @@ CaptureVoid::~CaptureVoid() ...@@ -13,9 +13,5 @@ CaptureVoid::~CaptureVoid()
//std::cout << "deleting CaptureVoid " << nodeId() << std::endl; //std::cout << "deleting CaptureVoid " << nodeId() << std::endl;
} }
Eigen::VectorXs CaptureVoid::computeFramePose(const TimeStamp& _now) const
{
return Eigen::VectorXs::Zero(3);
}
} // namespace wolf } // namespace wolf
...@@ -20,7 +20,6 @@ class CaptureVoid : public CaptureBase ...@@ -20,7 +20,6 @@ class CaptureVoid : public CaptureBase
**/ **/
virtual ~CaptureVoid(); virtual ~CaptureVoid();
virtual Eigen::VectorXs computeFramePose(const TimeStamp& _now) const;
}; };
} // namespace wolf } // namespace wolf
......
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