//cloudType::PointType p;
//p.x = 1; p.y = 2; p.z = 3;
//cloud->push_back(p);
//std::cout << p.x << " " << p.y << " " << p.z << std::endl;
//cloudType::Ptr cloud2(new cloudType);
//copyPointCloud(*cloud, *cloud2);
//cloudType::PointType p_retrieved = cloud2->points[0];
//std::cout << p_retrieved.x << " " << p_retrieved.y << " " << p_retrieved.z << std::endl;
using CloudType = pcl::PointCloud<pcl::PointXYZ>;
CloudType::Ptr cloud(new CloudType);
CloudType::PointType p;
p.x = 1; p.y = 2; p.z = 3;
cloud->push_back(p);
std::cout << p.x << " " << p.y << " " << p.z << std::endl;
//PointNormal 是存储XYZ数据的point结构体,并且包括采样点对应法线和曲率
using CloudType2 = pcl::PointCloud<pcl::PointNormal>;
CloudType2::Ptr cloud2(new CloudType2);
copyPointCloud(*cloud, *cloud2);
CloudType2::PointType p_retrieved = cloud2->points[0];
std::cout << p_retrieved.x << " " << p_retrieved.y << " " << p_retrieved.z << std::endl;