Skip to content

Conversation

@joaogvcarneiro
Copy link
Contributor

@joaogvcarneiro joaogvcarneiro commented Sep 26, 2025

Description

The commits first run through spinningBodiesNDOF, and then move onto linearTranslationBodiesNDOF. First, all SpinningBody and TranslatingBody structures are made shared_ptr. Then, the .i files are changed appropriately to accommodate the use of shared pointers. Finally, a getter method is added for each body so that they can be changed in Python. Test changes are added at the end.

Verification

Added two new tests that set and retrieve the body parameters on the fly to make sure all data is kept in memory. All tests pass as expected.

Documentation

N/A.

Future work

N/A.

@joaogvcarneiro joaogvcarneiro requested a review from a team as a code owner September 26, 2025 21:34
@joaogvcarneiro joaogvcarneiro changed the title Feature/expose individual bodies n dof effector Expose individual bodies NDOF effector Sep 26, 2025
@joaogvcarneiro joaogvcarneiro marked this pull request as draft September 26, 2025 21:36
Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

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

Nice PR. Thanks for upgrading both effectors. Some todos:

  • need to deprecate the use of the all effector class name
  • I don't see any unit tests checking that we can change values on the fly. We should test this in a unit test for both effectors.

@joaogvcarneiro joaogvcarneiro self-assigned this Oct 10, 2025
@joaogvcarneiro joaogvcarneiro added the enhancement New feature or request label Oct 10, 2025
@joaogvcarneiro joaogvcarneiro force-pushed the feature/expose-individual-bodies-n-dof-effector branch from 64bbe88 to a6cec18 Compare October 10, 2025 22:20
@joaogvcarneiro joaogvcarneiro marked this pull request as ready for review October 10, 2025 22:21
@schaubh schaubh moved this to 👀 In review in Basilisk Oct 12, 2025
Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

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

Just need to fix the RST typo in the release notes, rebase, then you are good to push to origin.

@joaogvcarneiro joaogvcarneiro force-pushed the feature/expose-individual-bodies-n-dof-effector branch from a6cec18 to b0bce4a Compare October 13, 2025 01:31
@joaogvcarneiro joaogvcarneiro force-pushed the feature/expose-individual-bodies-n-dof-effector branch from b0bce4a to 41f378d Compare October 13, 2025 14:43
@joaogvcarneiro joaogvcarneiro merged commit 7f6cfff into develop Oct 13, 2025
12 checks passed
@joaogvcarneiro joaogvcarneiro deleted the feature/expose-individual-bodies-n-dof-effector branch October 13, 2025 22:33
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Basilisk Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants