From 4f044eb7af45a1cbf1f6e0fa47d091b39c5c4171 Mon Sep 17 00:00:00 2001 From: enricocovili Date: Thu, 19 Dec 2024 10:34:57 +0100 Subject: [PATCH] fixed sized Eigen vectors to fix crash at startup --- cpp/patchworkpp/include/patchwork/patchworkpp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/patchworkpp/include/patchwork/patchworkpp.h b/cpp/patchworkpp/include/patchwork/patchworkpp.h index ebdde5e..a42685c 100755 --- a/cpp/patchworkpp/include/patchwork/patchworkpp.h +++ b/cpp/patchworkpp/include/patchwork/patchworkpp.h @@ -176,10 +176,10 @@ class PatchWorkpp { double d_; - Eigen::VectorXf normal_; - Eigen::VectorXf singular_values_; + Eigen::Vector3f normal_; + Eigen::Vector2f singular_values_; Eigen::Matrix3f cov_; - Eigen::VectorXf pc_mean_; + Eigen::Vector3f pc_mean_; vector min_ranges_; vector sector_sizes_;