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