From cad0dc7e49c29d6e34a58c19edb31af578de991b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Wed, 11 Oct 2017 00:37:39 +0200 Subject: [PATCH] Make resize() private --- src/motion_buffer.h | 1 + src/test/gtest_odom_3D.cpp | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/motion_buffer.h b/src/motion_buffer.h index 5bd1d3d5e..452e8ffb0 100644 --- a/src/motion_buffer.h +++ b/src/motion_buffer.h @@ -46,6 +46,7 @@ struct Motion const MatrixXs& _jac_delta_int, const MatrixXs& _jacobian_calib);// = MatrixXs::Zero(0,0)); ~Motion(); + private: void resize(Size _data_s, Size _delta_s, Size _delta_cov_s, Size _calib_s); }; ///< One instance of the buffered data, corresponding to a particular time stamp. diff --git a/src/test/gtest_odom_3D.cpp b/src/test/gtest_odom_3D.cpp index 544c4b47a..46b5984b1 100644 --- a/src/test/gtest_odom_3D.cpp +++ b/src/test/gtest_odom_3D.cpp @@ -316,10 +316,6 @@ TEST(ProcessorOdom3D, Interpolate1) // delta algebra test Dq_of = q_o.conjugate() * q_f; - R.resize(6,7,6,0); - F.resize(6,7,6,0); - I.resize(6,7,6,0); - // set ref R.ts_ = t_r; R.delta_ = dx_or; // origin to ref @@ -419,11 +415,6 @@ TEST(ProcessorOdom3D, Interpolate2) // timestamp out of bounds test prc.deltaPlusDelta(Dx_or, dx_rf, t_f - t_r, Dx_of); Dx_os = Dx_of; - R.resize(6,7,6,0); - I.resize(6,7,6,0); - S.resize(6,7,6,0); - F.resize(6,7,6,0); - // set ref R.ts_ = t_r; R.delta_ = dx_or; // origin to ref -- GitLab