mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
Adding point cloud sampling examples (#770)
This commit is contained in:
15
tests/test_point_cloud_sampling.py
Normal file
15
tests/test_point_cloud_sampling.py
Normal 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__)
|
||||
Reference in New Issue
Block a user