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_);