Skip to content

Commit

Permalink
[OCTREE] Be able to read PLY file. Use the 'load' function to read in…
Browse files Browse the repository at this point in the history
…put file.
  • Loading branch information
frozar committed Aug 30, 2017
1 parent f8a2acd commit 3d39470
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/octree_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* \author Raphael Favier
* */

#include <pcl/io/pcd_io.h>
#include <pcl/io/auto_io.h>
#include <pcl/common/time.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/point_cloud_handlers.h>
Expand Down Expand Up @@ -175,9 +175,8 @@ class OctreeViewer
{
std::cout << "Loading file " << filename.c_str() << std::endl;
//read cloud
if (pcl::io::loadPCDFile(filename, *cloud))
if (pcl::io::load (filename, *cloud))
{
std::cerr << "ERROR: Cannot open file " << filename << "! Aborting..." << std::endl;
return false;
}

Expand Down

0 comments on commit 3d39470

Please sign in to comment.