From 4f4d7c2af5d391bae3a3caff0b8f19573814199a Mon Sep 17 00:00:00 2001 From: Ellon Mendes Date: Fri, 11 Dec 2015 18:20:33 +0100 Subject: [PATCH] Add value_exists() and calculate_pose3_estimate to ISAM2 in python --- python/handwritten/nonlinear/ISAM2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/handwritten/nonlinear/ISAM2.cpp b/python/handwritten/nonlinear/ISAM2.cpp index 7155c679d..f80c5df99 100644 --- a/python/handwritten/nonlinear/ISAM2.cpp +++ b/python/handwritten/nonlinear/ISAM2.cpp @@ -20,6 +20,7 @@ #include #include "gtsam/nonlinear/ISAM2.h" +#include "gtsam/geometry/Pose3.h" using namespace boost::python; using namespace gtsam; @@ -59,6 +60,8 @@ class_("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, (arg("self"), arg("key")) ) + .def("value_exists", &ISAM2::valueExists) ; } \ No newline at end of file