【发布时间】:2017-07-16 06:41:58
【问题描述】:
我是点云库 (PCL) 的新手,对指针如何工作的 C++ 知识有限。虽然我们可以从文件加载文件并将其可视化(使用 this 教程),但我们如何从 HTTP URL 读取它?
int main () {
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZRGBA>);
pcl::io::loadPCDFile ("my_point_cloud.pcd", *cloud);
pcl::visualization::CloudViewer viewer("Cloud Viewer");
//blocks until the cloud is actually rendered
viewer.showCloud(cloud);
//use the following functions to get access to the underlying more advanced/powerful
//PCLVisualizer
while (!viewer.wasStopped ())
{
}
return 0;
}
【问题讨论】:
-
C++ 没有直接从 HTTP URL 打开文件的本地工具。您需要使用第三方库。
标签: c++ pointers networking point-cloud-library