From 24c824278211bb8d845217ba58c4af7d3a4f1d11 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Thu, 3 Sep 2009 16:51:31 +0000 Subject: [PATCH] added print as virtual method --- cpp/NonlinearFactor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/NonlinearFactor.h b/cpp/NonlinearFactor.h index 542ae31aa..7d2b4adbe 100644 --- a/cpp/NonlinearFactor.h +++ b/cpp/NonlinearFactor.h @@ -59,6 +59,9 @@ namespace gtsam { /** linearize to a LinearFactor */ virtual boost::shared_ptr linearize(const FGConfig& c) const = 0; + /** print to cout */ + virtual void print(const std::string& s = "") const = 0; + /** get functions */ double get_sigma() const {return sigma_;} Vector get_measurement() const {return z_;}