strawlab / python-pcl

Python bindings to the pointcloud library (pcl)
http://strawlab.github.com/python-pcl/
Other
2.02k stars 700 forks source link

the running errors of your example! #394

Open nonlinear1 opened 3 years ago

nonlinear1 commented 3 years ago

ubuntu16.04 pcl 1.7.2 Cython 0.21.2 I run your example

import numpy as np p = pcl.PointCloud(np.array([[1, 2, 3], [3, 4, 5]], dtype=np.float32)) seg = p.make_segmenter() seg.set_model_type(pcl.SACMODEL_PLANE) seg.set_method_type(pcl.SAC_RANSAC) indices, model = seg.segment()

in github and give me the follwoing errors: [pcl::SampleConsensusModel::getSamples] Can not select 0 unique points out of 2! [pcl::RandomSampleConsensus::computeModel] No samples could be selected! [pcl::SACSegmentation::segment] Error segmenting the model! No solution found.

Screenshot from 2021-05-15 01-39-18 Someone know how to solve this problem? Thanks a lot