From e9b0bade038b349db8232f68cddfdfe3d8979b61 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Mon, 11 Jan 2010 00:53:53 +0000 Subject: [PATCH] Access to keys --- cpp/BetweenFactor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/BetweenFactor.h b/cpp/BetweenFactor.h index 62e3566c8..e35f62ba9 100644 --- a/cpp/BetweenFactor.h +++ b/cpp/BetweenFactor.h @@ -71,6 +71,10 @@ namespace gtsam { return square_root_inverse_covariance_ * logmap(hx,measured_); } + /** methods to retrieve both keys */ + inline const std::string& key1() const { return key1_;} + inline const std::string& key2() const { return key2_;} + /** keys as a list */ inline std::list keys() const { return keys_;}