From f8535c0bef7c792ad6d3a698541e408f79f9c861 Mon Sep 17 00:00:00 2001 From: Vadim Indelman Date: Wed, 2 May 2012 22:37:27 +0000 Subject: [PATCH] Project without having to provide Boost none for derivatives. --- gtsam/slam/ProjectionFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/slam/ProjectionFactor.h b/gtsam/slam/ProjectionFactor.h index 284d10a8c..d5e9048e5 100644 --- a/gtsam/slam/ProjectionFactor.h +++ b/gtsam/slam/ProjectionFactor.h @@ -87,7 +87,7 @@ namespace gtsam { /// Evaluate error h(x)-z and optionally derivatives Vector evaluateError(const Pose3& pose, const Point3& point, - boost::optional H1, boost::optional H2) const { + boost::optional H1 = boost::none, boost::optional H2 = boost::none) const { try { SimpleCamera camera(*K_, pose); Point2 reprojectionError(camera.project(point, H1, H2) - measured_);