From 0f03ee1f7635f186cd6082dbc36b146b7d56fba7 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Tue, 5 Jan 2021 14:43:43 -0500 Subject: [PATCH] remove exception print, add TODO --- gtsam/slam/GeneralSFMFactor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/slam/GeneralSFMFactor.h b/gtsam/slam/GeneralSFMFactor.h index 1e48571e3..c9639d4d5 100644 --- a/gtsam/slam/GeneralSFMFactor.h +++ b/gtsam/slam/GeneralSFMFactor.h @@ -130,7 +130,7 @@ public: catch( CheiralityException& e) { if (H1) *H1 = JacobianC::Zero(); if (H2) *H2 = JacobianL::Zero(); - std::cerr << e.what() << std::endl; + //TODO Print the exception via logging return Z_2x1; } } @@ -152,7 +152,7 @@ public: H1.setZero(); H2.setZero(); b.setZero(); - std::cerr << e.what() << std::endl; + //TODO Print the exception via logging } // Whiten the system if needed