From f515e45a160d92f127b1ed6d05ad886119655ca6 Mon Sep 17 00:00:00 2001 From: Dilkhush Date: Tue, 10 Sep 2024 19:14:22 +0530 Subject: [PATCH] Correct boolean expressions Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com> --- registration/include/pcl/registration/impl/ndt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registration/include/pcl/registration/impl/ndt.hpp b/registration/include/pcl/registration/impl/ndt.hpp index be8572f6930..b6df6802115 100644 --- a/registration/include/pcl/registration/impl/ndt.hpp +++ b/registration/include/pcl/registration/impl/ndt.hpp @@ -731,7 +731,7 @@ NormalDistributionsTransform::computeStepLengt // Thuente 1994] while (!interval_converged && step_iterations < max_step_iterations && (psi_t > 0 /*Sufficient Decrease*/ || - d_phi_t < -nu * d_phi_0 /*Curvature Condition*/)) { + d_phi_t > -nu * d_phi_0 /*Curvature Condition*/)) { // Use auxiliary function if interval I is not closed if (open_interval) { a_t = trialValueSelectionMT(a_l, f_l, g_l, a_u, f_u, g_u, a_t, psi_t, d_psi_t);