From 969a4376cf005e92eb569324c281c619f78d6eeb Mon Sep 17 00:00:00 2001 From: Markus Vieth Date: Tue, 9 Apr 2024 21:00:36 +0200 Subject: [PATCH] Fix minor issues in tests --- test/filters/test_filters.cpp | 2 +- test/geometry/test_mesh_common_functions.h | 1 + test/io/test_io.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/filters/test_filters.cpp b/test/filters/test_filters.cpp index ca342b57e78..be9837475bb 100644 --- a/test/filters/test_filters.cpp +++ b/test/filters/test_filters.cpp @@ -2491,7 +2491,7 @@ TEST (VoxelGridOcclusionEstimation, Filters) auto input_cloud = pcl::make_shared>(); input_cloud->emplace_back(0.0, 0.0, 0.0); input_cloud->emplace_back(9.9, 9.9, 9.9); // we want a nice bounding box from (0, 0, 0) to (10, 10, 10) - input_cloud->sensor_origin_ << -0.1, 0.5, 0.5; // just outside the bounding box. Most rays will enter at voxel (0, 0, 0) + input_cloud->sensor_origin_ << -0.1f, 0.5f, 0.5f, 0.0f; // just outside the bounding box. Most rays will enter at voxel (0, 0, 0) pcl::VoxelGridOcclusionEstimation vg; vg.setInputCloud (input_cloud); vg.setLeafSize (1.0, 1.0, 1.0); diff --git a/test/geometry/test_mesh_common_functions.h b/test/geometry/test_mesh_common_functions.h index 5f3d42f5f2b..0579b99e63d 100644 --- a/test/geometry/test_mesh_common_functions.h +++ b/test/geometry/test_mesh_common_functions.h @@ -40,6 +40,7 @@ #pragma once +#include // for setw #include #include diff --git a/test/io/test_io.cpp b/test/io/test_io.cpp index 53438b2e92f..be2f83c07af 100644 --- a/test/io/test_io.cpp +++ b/test/io/test_io.cpp @@ -49,6 +49,7 @@ #include #include #include +#include // for setprecision #include #include