mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-11 14:00:20 +08:00
Ported PCL 1.11 deprecated changes to PCL 1.10 (#550)
This commit is contained in:
@@ -1007,7 +1007,7 @@ pcl::TextureMesh::Ptr concatenateTextureMeshes(const std::list<pcl::TextureMesh:
|
||||
// append point cloud
|
||||
int polygonStep = output->cloud.height * output->cloud.width;
|
||||
pcl::PCLPointCloud2 tmp;
|
||||
#if PCL_VERSION_COMPARE(>=, 1, 11, 0)
|
||||
#if PCL_VERSION_COMPARE(>=, 1, 10, 0)
|
||||
pcl::concatenate(output->cloud, iter->get()->cloud, tmp);
|
||||
#else
|
||||
pcl::concatenatePointCloud(output->cloud, iter->get()->cloud, tmp);
|
||||
@@ -3206,14 +3206,14 @@ pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr mls(
|
||||
mls.setComputeNormals (true);
|
||||
if(polygonialOrder > 0)
|
||||
{
|
||||
#if PCL_VERSION_COMPARE(<, 1, 11, 0)
|
||||
#if PCL_VERSION_COMPARE(<, 1, 10, 0)
|
||||
mls.setPolynomialFit (true);
|
||||
#endif
|
||||
mls.setPolynomialOrder(polygonialOrder);
|
||||
}
|
||||
else
|
||||
{
|
||||
#if PCL_VERSION_COMPARE(<, 1, 11, 0)
|
||||
#if PCL_VERSION_COMPARE(<, 1, 10, 0)
|
||||
mls.setPolynomialFit (false);
|
||||
#else
|
||||
mls.setPolynomialOrder(1);
|
||||
|
||||
Reference in New Issue
Block a user