Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pcl/io/ply_io.h>
- int
- main (int argc, char *argv[])
- {
- if (argc < 2)
- return (-1);
- pcl::PointCloud<pcl::PointXYZRGBA> cloud;
- int rvalue;
- rvalue = pcl::io::loadPLYFile (argv[1], cloud); //generates a segmentation fault
- printf ("loadPLYFile = %dn", rvalue);
- if (rvalue < 0)
- {
- PCL_ERROR ("Could not load file !n");
- return (-1);
- }
- return (0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement