From d0bb3a246d833ef5a4bddced1a80fc9b21d933a4 Mon Sep 17 00:00:00 2001 From: Markus Vieth Date: Sat, 17 Feb 2024 14:41:37 +0100 Subject: [PATCH] metslib tests --- pcl_config.h.in | 2 ++ recognition/include/pcl/recognition/impl/hv/hv_go.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pcl_config.h.in b/pcl_config.h.in index 13d04c3fbfc..eaceec37299 100644 --- a/pcl_config.h.in +++ b/pcl_config.h.in @@ -54,6 +54,8 @@ #cmakedefine HAVE_ZLIB +#cmakedefine HAVE_METSLIB + /* Precompile for a minimal set of point types instead of all. */ #cmakedefine PCL_ONLY_CORE_POINT_TYPES diff --git a/recognition/include/pcl/recognition/impl/hv/hv_go.hpp b/recognition/include/pcl/recognition/impl/hv/hv_go.hpp index e4d6ceee372..61317a660fd 100644 --- a/recognition/include/pcl/recognition/impl/hv/hv_go.hpp +++ b/recognition/include/pcl/recognition/impl/hv/hv_go.hpp @@ -453,7 +453,9 @@ void pcl::GlobalHypothesesVerification::SAOptimize(std::vector sa (model, best_recorder, neigh, noimprove, linear_cooling, initial_temp_, 1e-7, 2); +#if !defined(HAVE_METSLIB) sa.setApplyAndEvaluate(true); +#endif { pcl::ScopeTime t ("SA search...");