This commit is contained in:
matlabbe
2016-11-30 14:25:01 -05:00
parent 4d585cbb11
commit d879491a58
4 changed files with 17 additions and 17 deletions

View File

@@ -523,10 +523,6 @@ std::map<int, Transform> OptimizerG2O::optimize(
}
}
}
optimizer.clear();
g2o::Factory::destroy();
g2o::OptimizationAlgorithmFactory::destroy();
g2o::HyperGraphActionLibrary::destroy();
}
else if(poses.size() == 1 || iterations() <= 0)
{

View File

@@ -19,9 +19,10 @@ using namespace Eigen;
EdgeSE2Switchable::EdgeSE2Switchable() : g2o::BaseMultiEdge<3, g2o::SE2>()
{
resize(3);
_jacobianOplus[0].resize(3,3);
_jacobianOplus[1].resize(3,3);
_jacobianOplus[2].resize(3,1);
_jacobianOplus.clear();
_jacobianOplus.push_back(JacobianType(0, 3, 3));
_jacobianOplus.push_back(JacobianType(0, 3, 3));
_jacobianOplus.push_back(JacobianType(0, 3, 1));
}
// ================================================

View File

@@ -22,9 +22,10 @@ using namespace Eigen;
EdgeSE3Switchable::EdgeSE3Switchable() : g2o::BaseMultiEdge<6, Eigen::Isometry3d>()
{
resize(3);
_jacobianOplus[0].resize(6,6);
_jacobianOplus[1].resize(6,6);
_jacobianOplus[2].resize(6,1);
_jacobianOplus.clear();
_jacobianOplus.push_back(JacobianType(0, 6, 6));
_jacobianOplus.push_back(JacobianType(0, 6, 6));
_jacobianOplus.push_back(JacobianType(0, 6, 1));
}
// ================================================