From 8590e6e8e057adba4ec0083446d00268565bb444 Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Thu, 27 Oct 2016 12:29:37 -0700 Subject: [PATCH] Remove two checks from rotation.h This allows rotation.h to remove its dependency on glog. Change-Id: Ia6aede93ee51a4bd4039570dc8edd100a7045329 --- include/ceres/rotation.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/ceres/rotation.h b/include/ceres/rotation.h index e9496d772..b6a06f772 100644 --- a/include/ceres/rotation.h +++ b/include/ceres/rotation.h @@ -48,7 +48,6 @@ #include #include #include -#include "glog/logging.h" namespace ceres { @@ -418,7 +417,6 @@ template inline void EulerAnglesToRotationMatrix(const T* euler, const int row_stride_parameter, T* R) { - CHECK_EQ(row_stride_parameter, 3); EulerAnglesToRotationMatrix(euler, RowMajorAdapter3x3(R)); } @@ -496,7 +494,6 @@ void QuaternionToRotation(const T q[4], QuaternionToScaledRotation(q, R); T normalizer = q[0]*q[0] + q[1]*q[1] + q[2]*q[2] + q[3]*q[3]; - CHECK_NE(normalizer, T(0)); normalizer = T(1) / normalizer; for (int i = 0; i < 3; ++i) {