From c90cb04fa6d05e66f72b9e0300bb1d686c15d619 Mon Sep 17 00:00:00 2001 From: Ignacio Vizzo Date: Fri, 27 Oct 2023 17:27:24 +0200 Subject: [PATCH 1/2] as long as no one consumes it it doesn't make sense to leave it there --- cpp/kiss_icp/core/Registration.cpp | 2 ++ cpp/kiss_icp/core/Registration.hpp | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/cpp/kiss_icp/core/Registration.cpp b/cpp/kiss_icp/core/Registration.cpp index c3e0d49c..b71d076f 100644 --- a/cpp/kiss_icp/core/Registration.cpp +++ b/cpp/kiss_icp/core/Registration.cpp @@ -32,7 +32,9 @@ #include namespace Eigen { +using Matrix6d = Eigen::Matrix; using Matrix3_6d = Eigen::Matrix; +using Vector6d = Eigen::Matrix; } // namespace Eigen namespace { diff --git a/cpp/kiss_icp/core/Registration.hpp b/cpp/kiss_icp/core/Registration.hpp index 05d1dc99..eb82d37b 100644 --- a/cpp/kiss_icp/core/Registration.hpp +++ b/cpp/kiss_icp/core/Registration.hpp @@ -28,18 +28,8 @@ #include "VoxelHashMap.hpp" -namespace Eigen { -using Matrix6d = Eigen::Matrix; -using Vector6d = Eigen::Matrix; -} // namespace Eigen - namespace kiss_icp { -std::tuple BuildLinearSystem( - const std::vector &source, - const std::vector &target, - double kernel); - Sophus::SE3d RegisterFrame(const std::vector &frame, const VoxelHashMap &voxel_map, const Sophus::SE3d &initial_guess, From 76a3725ecfca9437bb71a7ecc263ab9c7ee29963 Mon Sep 17 00:00:00 2001 From: Ignacio Vizzo Date: Fri, 27 Oct 2023 17:32:12 +0200 Subject: [PATCH 2/2] Move function inside unnames namespace --- cpp/kiss_icp/core/Registration.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cpp/kiss_icp/core/Registration.cpp b/cpp/kiss_icp/core/Registration.cpp index b71d076f..1d22bef0 100644 --- a/cpp/kiss_icp/core/Registration.cpp +++ b/cpp/kiss_icp/core/Registration.cpp @@ -65,10 +65,6 @@ void TransformPoints(const Sophus::SE3d &T, std::vector &points constexpr int MAX_NUM_ITERATIONS_ = 500; constexpr double ESTIMATION_THRESHOLD_ = 0.0001; -} // namespace - -namespace kiss_icp { - std::tuple BuildLinearSystem( const std::vector &source, const std::vector &target, @@ -105,6 +101,9 @@ std::tuple BuildLinearSystem( return std::make_tuple(JTJ, JTr); } +} // namespace + +namespace kiss_icp { Sophus::SE3d RegisterFrame(const std::vector &frame, const VoxelHashMap &voxel_map,