diff --git a/gtsam/navigation/PreintegrationParams.h b/gtsam/navigation/PreintegrationParams.h index f2b2c0fef..b929a753c 100644 --- a/gtsam/navigation/PreintegrationParams.h +++ b/gtsam/navigation/PreintegrationParams.h @@ -56,6 +56,7 @@ struct PreintegrationParams: PreintegratedRotationParams { const Matrix3& getAccelerometerCovariance() const { return accelerometerCovariance; } const Matrix3& getIntegrationCovariance() const { return integrationCovariance; } + const Vector3& getGravity() const { return n_gravity; } bool getUse2ndOrderCoriolis() const { return use2ndOrderCoriolis; } protected: