Read .ply files from URL instead of local files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Read .ply files from URL instead of local files

This post was updated on .
I'm new to Point Cloud library (PCL) and have limited C++ knowledge about how pointers work. While we can load a file from a file and visualize it (using this tutorial), how can we read it from a 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

    //use the following functions to get access to the underlying more advanced/powerful

    while (!viewer.wasStopped ())
    return 0;