From 581c2d5ebd3b926ea391ebecb101797d52b4f3d2 Mon Sep 17 00:00:00 2001 From: Gerry Chen Date: Thu, 22 Dec 2022 23:13:30 -0500 Subject: [PATCH] Use new key version in Barometric --- gtsam/navigation/BarometricFactor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/navigation/BarometricFactor.cpp b/gtsam/navigation/BarometricFactor.cpp index 2f0ff7436d..2e87986aec 100644 --- a/gtsam/navigation/BarometricFactor.cpp +++ b/gtsam/navigation/BarometricFactor.cpp @@ -26,8 +26,8 @@ namespace gtsam { void BarometricFactor::print(const string& s, const KeyFormatter& keyFormatter) const { cout << (s.empty() ? "" : s + " ") << "Barometric Factor on " - << keyFormatter(key1()) << "Barometric Bias on " - << keyFormatter(key2()) << "\n"; + << keyFormatter(key<1>()) << "Barometric Bias on " + << keyFormatter(key<2>()) << "\n"; cout << " Baro measurement: " << nT_ << "\n"; noiseModel_->print(" noise model: ");