Category : pcl

P.S. I’m sorry for the long code and error message. This is my first time posting a problem here. environment: ubuntu18 pcl1.8.0 some code as follow: // Greedy Projection triangulation pcl::PolygonMesh triangulationGreedyProjection(pcl::PointCloud<pcl::PointXYZ>::Ptr xyzCloud) { pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal> normalEstimation; pcl::PointCloud<pcl::Normal>::Ptr normals(new pcl::PointCloud<pcl::Normal>); pcl::search::KdTree<pcl::PointXYZ>::Ptr tree(new pcl::search::KdTree<pcl::PointXYZ>); tree->setInputCloud(xyzCloud); normalEstimation.setInputCloud(xyzCloud); normalEstimation.setSearchMethod(tree); normalEstimation.setKSearch(20); normalEstimation.compute(*normals); pcl::PointCloud<pcl::PointNormal>::Ptr cloudWithNormals(new pcl::PointCloud<pcl::PointNormal>); // 将已获得的点数据和法向数据拼接 pcl::concatenateFields(*xyzCloud, *normals, ..

Read more

I’m trying to concatenate a pcl::PolygonMesh triangulation variable (triang) to a "buffer" pcl::PolygonMesh triangulation variable (triang_buffer). I’ve tried to do it by: triang_buffer += triang; and by: bool pcl::PolygonMesh::concatenate(triang_buffer, triang); but when I compile it, it appears these errors respectively: error: no match for ‘operator+=’ (operand types are ‘pcl::PolygonMesh’ and ‘pcl::PolygonMesh’) triang_buffer += triang; and ..

Read more

When I run this code, code outputs sometimes, do you have any idea, why it is happening? ? #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> __global__ void voxelGrid(int *d_x) { int a = d_x[0]; printf("%d",a); } int main() { pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>); if (pcl::io::loadPCDFile<pcl::PointXYZ> ("C:Usersb84193943Desktopbatuprojectdatabatu.pcd", *cloud) == -1) //* load ..

Read more