yayaneath / GeoGrasp

Fast geometry-based method for computing grasping points on 3D point clouds.
BSD 2-Clause "Simplified" License
28 stars 13 forks source link

pcd files not working #7

Open wjalex2000 opened 4 years ago

wjalex2000 commented 4 years ago

Hello,

So we are trying to input our own object segmented tabletop scenario pcd files to the GeoGrasp. However, it seems like we are getting the following errors: [pcl::SampleConsensusModel::getSamples] Can not select 0 unique points out of 0! [pcl::RandomSampleConsensus::computeModel] No samples could be selected! [pcl::SACSegmentation::segment] Error segmenting the model! No solution found. [pcl::KdTreeFLANN::setInputCloud] Cannot create a KDTree with an empty input cloud! We thought that this might be the issue with our files and tried some other downloaded pcd files but it seems like we are getting the same error message as well. Is it possible to get some possible solutions to this issue?

Thank you so much!

yayaneath commented 4 years ago

Hi, sorry for the late reply!

By "object segmented tabletop scenario" do you mean that your PCD only holds points belonging to the objects? Or does it also include points belonging to the table? The cloud_processor.cpp example code shows how to use a PCD that has not been already segmented. In case the table is already removed from your PCD, then you are getting these errors because this code is trying to find the table before it calls GeoGrasp. For that scenario, the cloud_processor.cpp has extra code that is not necessary for your use case.

Please, confirm me which is the case of your PCD so I can give you further support.