Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <pcl/io/ply_io.h>
  2.  
  3. int
  4. main (int argc, char *argv[])
  5. {
  6. if (argc < 2)
  7. return (-1);
  8.  
  9. pcl::PointCloud<pcl::PointXYZRGBA> cloud;
  10.  
  11. int rvalue;
  12. rvalue = pcl::io::loadPLYFile (argv[1], cloud); //generates a segmentation fault
  13. printf ("loadPLYFile = %dn", rvalue);
  14.  
  15. if (rvalue < 0)
  16. {
  17. PCL_ERROR ("Could not load file !n");
  18. return (-1);
  19. }
  20.  
  21. return (0);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement