Adding point cloud sampling examples (#770)

This commit is contained in:
Atsushi Sakai
2023-01-03 22:27:55 +09:00
committed by GitHub
parent e7710546c1
commit 3dc96997da
7 changed files with 254 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import conftest # Add root path to sys.path
from Mapping.point_cloud_sampling import point_cloud_sampling as m
def test_1(capsys):
m.do_plot = False
m.main()
captured = capsys.readouterr()
assert "voxel_sampling_points.shape=(27, 3)" in captured.out
assert "farthest_sampling_points.shape=(20, 3)" in captured.out
assert "poisson_disk_points.shape=(20, 3)" in captured.out
if __name__ == '__main__':
conftest.run_this_test(__file__)