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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generic circular array container #320

Merged
merged 7 commits into from
Feb 14, 2024
Merged

Add generic circular array container #320

merged 7 commits into from
Feb 14, 2024

Conversation

hidmic
Copy link
Collaborator

@hidmic hidmic commented Feb 13, 2024

Proposed changes

This patch introduces a generic circular array container, ancillary to the upcoming functional form of motion models.

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

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic hidmic self-assigned this Feb 13, 2024
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

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

@hidmic This is looking amazing. I didn't finish the first pass yet, but I figured I'd leave some comments so you don't have to debug ranges::to.

beluga/include/beluga/circular_array.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/circular_array.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/circular_array.hpp Outdated Show resolved Hide resolved
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

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

@hidmic Just a couple more comments. Again, this is awesome!

beluga/include/beluga/circular_array.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/circular_array.hpp Outdated Show resolved Hide resolved
beluga/include/beluga/utility/indexing_iterator.hpp Outdated Show resolved Hide resolved
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Copy link
Member

@nahueespinosa nahueespinosa left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Collaborator Author

hidmic commented Feb 14, 2024

All green, going in!

@hidmic hidmic merged commit 318b4bc into main Feb 14, 2024
8 checks passed
@hidmic hidmic deleted the hidmic/circular-array branch February 14, 2024 02:45
hidmic added a commit that referenced this pull request Feb 14, 2024
### Proposed changes

This patch migrates motion models to a functional form. Combined with
#320, this affords:

```c++
beluga::actions::propagate(std::execution::par, motion(control_action_window << odom))
```

when propagating particles. 

#### Type of change

- [ ] 馃悰 Bugfix (change which fixes an issue)
- [x] 馃殌 Feature (change which adds functionality)
- [ ] 馃摎 Documentation (change which fixes or extends documentation)

### 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/)

---------

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants