pclpy
pclpy copied to clipboard
ImportError: cannot import name 'SimpleQueue'
import pclpy
from pclpy import pcl
point_cloud = pclpy.read("street.las", "PointXYZRGBA")
mls = pcl.surface.MovingLeastSquaresOMP.PointXYZRGBA_PointNormal()
tree = pcl.search.KdTree.PointXYZRGBA()
mls.setSearchRadius(0.05)
mls.setPolynomialFit(False)
mls.setNumberOfThreads(12)
mls.setInputCloud(point_cloud)
mls.setSearchMethod(tree)
mls.setComputeNormals(True)
output = pcl.PointCloud.PointNormal()
mls.process(output)
When I run the above code, I get this error:
Traceback (most recent call last):
File ".../test_pclpy/test_pcl01.py", line 1, in
Hi! I have the same problem, how do you solve it?
Follow your error path to find the copc.py。 from queue import Queue, SimpleQueue。 Modified as: from queue import Queue; from multiprocessing import SimpleQueue