From 570a44b7b2e5262624c7bba05d7c6cc3be3b15d6 Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco Claraco Date: Wed, 11 Aug 2021 01:27:14 +0200 Subject: [PATCH] Add missing getter --- gtsam/slam/ProjectionFactor.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtsam/slam/ProjectionFactor.h b/gtsam/slam/ProjectionFactor.h index 67100a0ac1..ada304f272 100644 --- a/gtsam/slam/ProjectionFactor.h +++ b/gtsam/slam/ProjectionFactor.h @@ -164,10 +164,15 @@ namespace gtsam { } /** return the calibration object */ - inline const boost::shared_ptr calibration() const { + const boost::shared_ptr calibration() const { return K_; } + /** return the (optional) sensor pose with respect to the vehicle frame */ + const boost::optional& body_P_sensor() const { + return body_P_sensor_; + } + /** return verbosity */ inline bool verboseCheirality() const { return verboseCheirality_; }