Skip to content

Commit

Permalink
Add value_exists() and calculate_pose3_estimate to ISAM2 in python
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellon committed Dec 11, 2015
1 parent 3839869 commit 4f4d7c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/handwritten/nonlinear/ISAM2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <numpy_eigen/NumpyEigenConverter.hpp>

#include "gtsam/nonlinear/ISAM2.h"
#include "gtsam/geometry/Pose3.h"

using namespace boost::python;
using namespace gtsam;
Expand Down Expand Up @@ -59,6 +60,8 @@ class_<ISAM2>("ISAM2")
// TODO(Ellon): wrap all optional values of update
.def("update",&ISAM2::update, update_overloads())
.def("calculate_estimate", calculateEstimate_0)
.def("calculate_pose3_estimate", &ISAM2::calculateEstimate<Pose3>, (arg("self"), arg("key")) )
.def("value_exists", &ISAM2::valueExists)
;

}

0 comments on commit 4f4d7c2

Please sign in to comment.