-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add "binary" expression in file open of registration_with_OpenGR example #5290
Add "binary" expression in file open of registration_with_OpenGR example #5290
Conversation
`data/hippo1.ply` and `data/hippo2.ply` are in binary_little_endian format. So `read_ply_points` can't read them if they aren't opened in binary mode. Also add a specific error if a file can't be open and a new argument to pass the output filename
Add the ```c++ input.open(fname_in2, std::ios::binary); ``` expression in `registration_with_pointmatcher` and `registration_with_opengr_pointmatcher_pipeline` examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the proposed change (adding the std::ios::binary
tag) but the diff is way too large for such a small change. Please rewrite your commit without reindenting the whole files you modify (and please use spaces and not tabs for consistency with the rest of the files).
I have revert my changes and only add the |
@maxGimeno If you change the milestone to 5.3, the PR loses its purpose since this was fixed in the IO PR already. |
As the base branch of the PR includes commits from |
#5323 has the same diff, but targets 5.1. This PR can probably be closed. |
Sorry, I completely forgot about this PR, it could also have been rebased… |
Replaced by #5323. |
Summary of Changes
registration_with_OpenGR
example can't be compilled without this small change:std::ifstream input(fname_in1);
to
std::ifstream input(fname_in1, std::ios::binary);
data/hippo1.ply
anddata/hippo2.ply
are in binary_little_endian format. Soread_ply_points
can't read them if they aren't opened in binary mode.Also add a specific error if a file can't be open and a new argument to pass the output filename
Release Management