-
Notifications
You must be signed in to change notification settings - Fork 10
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 uniform distribution with bounding regions #322
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
0f1b39d
to
33b50e4
Compare
hidmic
reviewed
Feb 16, 2024
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.
Awesome work @nahueespinosa ! Left a couple questions.
beluga/include/beluga/random/multivariate_uniform_distribution.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
hidmic
approved these changes
Feb 17, 2024
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.
LGTM
This was referenced Feb 17, 2024
hidmic
added a commit
that referenced
this pull request
Feb 18, 2024
### Proposed changes Connected to #279. Follow-up to #322. This is a long due change, and as I was reworking sensor models I figured it was appropriate. This patch removes `make_random_state()` from sensor models. As we still support mixins, it relocates `make_random_state()` to the `RandomStateGenerator` mixin, which now takes both state and map as template parameters. #### Type of change - [ ] 🐛 Bugfix (change which fixes an issue) - [x] 🚀 Feature (change which adds functionality) - [ ] 📚 Documentation (change which fixes or extends documentation) 💥 **Breaking change!** Sensor models no longer have nor require a `make_random_state()` method. ### Checklist - [x] Lint and unit tests (if any) pass locally with my changes - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added necessary documentation (if appropriate) - [x] All commits have been signed for [DCO](https://developercertificate.org/) ### Additional comments I'm not super fond of these changes to `RandomStateGenerator`, but they are not unreasonable in context and it is arguably a temporary workaround. We also have to update https://github.com/Ekumen-OS/beluga-demos to match. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
nahueespinosa
pushed a commit
that referenced
this pull request
Feb 18, 2024
### Proposed changes Follow-up to #322 and #324. This patch turns `LandmarkMapBoundaries` into an `Eigen::AlignedBox3d` alias. #### Type of change - [ ] 🐛 Bugfix (change which fixes an issue) - [x] 🚀 Feature (change which adds functionality) - [ ] 📚 Documentation (change which fixes or extends documentation) 💥 **Breaking change!** This will allow us to use `LandmarkMap` limits as constraint for `MultivariateUniformDistribution` instances. ### Checklist - [x] Lint and unit tests (if any) pass locally with my changes - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added necessary documentation (if appropriate) - [x] All commits have been signed for [DCO](https://developercertificate.org/) ### Additional comments We have to update https://github.com/Ekumen-OS/beluga-demos too. Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
A follow-up to #319, implementing multivariate uniform distributions constrained by a bounding region. This is required for landmark maps support.
Related to #279.
Type of change
Checklist