pcl::PointCloud 점 클라우드 형식 변환

PointCloud::Ptr 변환 pcl::PointCloudpcl::PointXYZ::Ptr
PointCloud::Ptr cloud (new PointCloud);
pcl::PointCloud<:pointxyz>::Ptr out_cloud(new pcl::PointCloud<:pointxyz>);
pcl::copyPointCloud(*cloud, *out_cloud);

sensor_msgs::PointCloud 변환 pcl::PointCloudpcl::PointXYZ::Ptr
  sensor_msgs::PointCloud2 cloud;
  pcl::PointCloud<:pointxyz>::Ptr out_cloud(new pcl::PointCloud<:pointxyz>);
  pcl::PCLPointCloud2 pcl_pc2;
  pcl_conversions::toPCL(cloud,pcl_pc2);
  pcl::fromPCLPointCloud2(pcl_pc2,*out_cloud);

pcl::PCLPointCloud2::Ptr변환pcl::PointCloudpcl::PointXYZ: Ptr
 pcl::PCLPointCloud2::Ptr cloud_blob (new pcl::PCLPointCloud2), cloud (new pcl::PCLPointCloud2);
 pcl::PointCloud<:pointxyz>::Ptr out_cloud (new pcl::PointCloud<:pointxyz>);
 pcl::fromPCLPointCloud2 (*cloud, *out_cloud);

좋은 웹페이지 즐겨찾기