diff --git a/gtsam/geometry/SphericalCamera.h b/gtsam/geometry/SphericalCamera.h index 738ecd18c..01b749df4 100644 --- a/gtsam/geometry/SphericalCamera.h +++ b/gtsam/geometry/SphericalCamera.h @@ -30,21 +30,13 @@ namespace gtsam { class GTSAM_EXPORT EmptyCal { - protected: - Matrix3 K_; public: - - ///< shared pointer to calibration object - EmptyCal() - : K_(Matrix3::Identity()) { - } - /// Default destructor + EmptyCal(){} virtual ~EmptyCal() = default; using shared_ptr = boost::shared_ptr; void print(const std::string& s) const { std::cout << "empty calibration: " << s << std::endl; } - Matrix3 K() const {return K_;} }; /** diff --git a/gtsam/slam/tests/testSmartProjectionFactorP.cpp b/gtsam/slam/tests/testSmartProjectionFactorP.cpp index 85797cf66..557a220df 100644 --- a/gtsam/slam/tests/testSmartProjectionFactorP.cpp +++ b/gtsam/slam/tests/testSmartProjectionFactorP.cpp @@ -1148,7 +1148,6 @@ TEST( SmartProjectionFactorP, optimization_3poses_sphericalCamera ) { -0.000986635786, 0.0314107591, -0.999013364, -0.0313952598), Point3(0.1, -0.1, 1.9)), values.at(x3))); - graph.print("graph\n"); DOUBLES_EQUAL(0.1584588987292, graph.error(values), 1e-9); Values result;