-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLY reader can't parse header correctly #2763
Comments
Found the issue, minor spelling mistake in my file name. For reference, error messages like this are terribly uninformative and misleading. Plyreader should output an error to the effect of "Unable to find file with that name", rather than "unable to read header" which implies that the reader was able to find and open the file, but not read it. |
Sorry for the trouble, good point. I've started an issue so that this is not lost. |
Thanks! This was 100% my own fault because I wasn't careful enough, but unhelpful error messages are a personal bugbear of mine. |
I noticed a problem on the parsing of the header as well, |
The PCL ply reader often fails to read some point clouds, for a reason I haven't been able to pin down yet. The error message suggests the header is at fault, and yet it will load clouds with a virtually identical header just fine.
Your Environment
Context
I'm trying to load a variety of point clouds for testing other problems within PCL (see this github issue). However the ply reader occasionally refuses to read the header, and normally I've been able to resolve the issue by just loading the file in cloud compare and saving it again with less information (i.e. but saving without colour or intensity info). But now its failing to read even a basic .ply file.
It WILL load this cloud: bunny.ply with the following header:
But it will NOT load this cloud: carpark_rear.ply with this header:
Expected Behavior
I expect the reader to load every ply with an appropriate header
Current Behavior
It fails to load the carpark cloud and produces this error:
Code to Reproduce
These are the two lines of code I'm using:
Possible Solution
The error message is being generated by this line in ply_parser.cpp so I think it has something to do with
istream
failing to read the first line of the file -ply
. However from what I can tell there aren't any hidden characters at the end of this line... so I'm not sure why this is failing.The text was updated successfully, but these errors were encountered: