Ai
1 Star 0 Fork 2

AIS/PythonRobotics

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_point_cloud_sampling.py 466 Bytes
一键复制 编辑 原始数据 按行查看 历史
Atsushi Sakai 提交于 2023-01-03 21:27 +08:00 . Adding point cloud sampling examples (#770)
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__)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aircraft-is-design/PythonRobotics.git
git@gitee.com:aircraft-is-design/PythonRobotics.git
aircraft-is-design
PythonRobotics
PythonRobotics
master

搜索帮助