Skip to content

Commit 3932e4e

Browse files
committed
pose graph interface fixed
1 parent 3e1ebad commit 3932e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/rgbd/src/large_kinfu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ bool LargeKinfuImpl<MatType>::updateT(const MatType& _depth, const Mat& _img)
386386
// TODO: Convert constraints to posegraph
387387
Ptr<detail::PoseGraph> poseGraph = submapMgr->MapToPoseGraph();
388388
CV_LOG_INFO(NULL, "Created posegraph");
389-
int iters = poseGraph->optimize();
390-
if (iters < 0)
389+
BaseLevMarq::Report r = poseGraph->optimize();
390+
if (!r.found)
391391
{
392392
CV_LOG_INFO(NULL, "Failed to perform pose graph optimization");
393393
return false;

0 commit comments

Comments
 (0)