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

Add getLastKeyFrameCovariance()

parent 0649efeb
No related branches found
No related tags found
No related merge requests found
...@@ -511,6 +511,12 @@ Eigen::MatrixXs Problem::getFrameCovariance(FrameBasePtr _frame_ptr) ...@@ -511,6 +511,12 @@ Eigen::MatrixXs Problem::getFrameCovariance(FrameBasePtr _frame_ptr)
return covariance; return covariance;
} }
Eigen::MatrixXs Problem::getLastKeyFrameCovariance()
{
FrameBasePtr frm = getLastKeyFramePtr();
return getFrameCovariance(frm);
}
bool Problem::getLandmarkCovariance(LandmarkBasePtr _landmark_ptr, Eigen::MatrixXs& _covariance) bool Problem::getLandmarkCovariance(LandmarkBasePtr _landmark_ptr, Eigen::MatrixXs& _covariance)
{ {
return getCovarianceBlock(_landmark_ptr->getPPtr(), _landmark_ptr->getPPtr(), _covariance, 0, 0) && return getCovarianceBlock(_landmark_ptr->getPPtr(), _landmark_ptr->getPPtr(), _covariance, 0, 0) &&
......
...@@ -231,6 +231,7 @@ class Problem : public std::enable_shared_from_this<Problem> ...@@ -231,6 +231,7 @@ class Problem : public std::enable_shared_from_this<Problem>
const int _col=0); const int _col=0);
bool getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _covariance); bool getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _covariance);
Eigen::MatrixXs getFrameCovariance(FrameBasePtr _frame_ptr); Eigen::MatrixXs getFrameCovariance(FrameBasePtr _frame_ptr);
Eigen::MatrixXs getLastKeyFrameCovariance();
bool getLandmarkCovariance(LandmarkBasePtr _landmark_ptr, Eigen::MatrixXs& _covariance); bool getLandmarkCovariance(LandmarkBasePtr _landmark_ptr, Eigen::MatrixXs& _covariance);
Eigen::MatrixXs getLandmarkCovariance(LandmarkBasePtr _landmark_ptr); Eigen::MatrixXs getLandmarkCovariance(LandmarkBasePtr _landmark_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