Skip to content
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

Added a new insertionOptions: 'noInvalidPoints' #8

Merged
merged 5 commits into from
Jan 17, 2014
Merged

Added a new insertionOptions: 'noInvalidPoints' #8

merged 5 commits into from
Jan 17, 2014

Conversation

mlopezantequera
Copy link
Contributor

Added a new insertionOptions 'noInvalidPoints' so that every point is kept when inserting a point map from a CObservation into a CColouredPointsMap or into a CSimplePointsMap.

I implemented this so that the cloud was still ordered after insertion from the CObservation.

I'm not sure of what to do about implementing this also into CWeightedPointsMap (or if it makes sense to do so), since it's readFromStream method doesn't have any version check like CSimplePointsMap & CColouredPointsMap.

@jlblancoc
Copy link
Member

Thanks, seems a reasonable feature.
I only have doubts with the name of the new parameter: the "no"+"invalid" seems confusing... what do you think about renaming it to "insertInvalidPoints" or alike? Please, add a new commit if you agree and I'll proceed with the merge.

On the weighted points map, it can be done, but don't worry. After your merge I think it's about time to give "insertionOptions" its own read/write to stream method to make things more maintainable; I'll do it.

@mlopezantequera
Copy link
Contributor Author

It was a terrible name indeed. fixed.

jlblancoc added a commit that referenced this pull request Jan 17, 2014
Added a new insertionOptions: 'noInvalidPoints'
@jlblancoc jlblancoc merged commit 09a4b82 into MRPT:master Jan 17, 2014
jlblancoc pushed a commit that referenced this pull request Aug 27, 2016
Use matplotlib for comparing translation errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants