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

Add uniform distribution with bounding regions #322

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

nahueespinosa
Copy link
Member

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

  • 🐛 Bugfix (change which fixes an issue)
  • 🚀 Feature (change which adds functionality)
  • 📚 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

@nahueespinosa nahueespinosa self-assigned this Feb 16, 2024
@nahueespinosa nahueespinosa added enhancement New feature or request cpp Related to C++ code labels Feb 16, 2024
Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
@nahueespinosa nahueespinosa force-pushed the nahuel/multivariate-uniform-distribution branch from 0f1b39d to 33b50e4 Compare February 16, 2024 02:52
Copy link
Collaborator

@hidmic hidmic left a 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.

Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nahueespinosa nahueespinosa merged commit f650653 into main Feb 17, 2024
8 checks passed
@nahueespinosa nahueespinosa deleted the nahuel/multivariate-uniform-distribution branch February 17, 2024 20:45
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
Labels
cpp Related to C++ code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants