mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed #137
This commit is contained in:
@@ -626,8 +626,9 @@ pcl::TextureMesh::Ptr createTextureMesh(
|
||||
pcl::fromPCLPointCloud2(textureMesh->cloud, *cloud);
|
||||
pcl::PointCloud<pcl::Normal>::Ptr normals = computeNormals(cloud, kNormalSearch);
|
||||
// Concatenate the XYZ and normal fields
|
||||
pcl::PointCloud<pcl::PointNormal>::Ptr cloudWithNormals;
|
||||
pcl::PointCloud<pcl::PointNormal>::Ptr cloudWithNormals(new pcl::PointCloud<pcl::PointNormal>);
|
||||
pcl::concatenateFields (*cloud, *normals, *cloudWithNormals);
|
||||
textureMesh->cloud = pcl::PCLPointCloud2();
|
||||
pcl::toPCLPointCloud2 (*cloudWithNormals, textureMesh->cloud);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user