Various architectural and documentation changes#1376
Merged
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4f346d03a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4fdbe23 to
02d5eff
Compare
Contributor
Author
schaubh
requested changes
Apr 29, 2026
schaubh
left a comment
Contributor
There was a problem hiding this comment.
Nice work, almost there. Just a few small items to improve the documentation result
Moves meanRevertingNoise.h/.cpp to _GeneralModuleFiles where abstract base classes belong. Creates a dedicated MJMeanRevertingNoise SWIG module there so Python subclassing of the base class continues to work.
Moves StochasticAtmDensity out of meanRevertingNoise/ into its own folder with a dedicated MJStochasticAtmDensity SWIG module and .rst. Updates the unit test and scenarioStochasticDrag to import from the new module name.
Moves StochasticDragCoeff out of meanRevertingNoise/ into its own folder with a dedicated MJStochasticDragCoeff SWIG module, .rst, and a new unit test that validates OU statistics on drag coefficient.
Renames the folder, SWIG module (MJPIDControllers -> MJJointPIDController), and test file to match the single concrete class it contains. Adds JointPIDController.rst and updates scenarioBranchingPanels to import from the new module name.
02d5eff to
a8ccec9
Compare
schaubh
pushed a commit
that referenced
this pull request
May 1, 2026
Moves meanRevertingNoise.h/.cpp to _GeneralModuleFiles where abstract base classes belong. Creates a dedicated MJMeanRevertingNoise SWIG module there so Python subclassing of the base class continues to work.
schaubh
pushed a commit
that referenced
this pull request
May 1, 2026
Moves StochasticAtmDensity out of meanRevertingNoise/ into its own folder with a dedicated MJStochasticAtmDensity SWIG module and .rst. Updates the unit test and scenarioStochasticDrag to import from the new module name.
schaubh
pushed a commit
that referenced
this pull request
May 1, 2026
Moves StochasticDragCoeff out of meanRevertingNoise/ into its own folder with a dedicated MJStochasticDragCoeff SWIG module, .rst, and a new unit test that validates OU statistics on drag coefficient.
schaubh
pushed a commit
that referenced
this pull request
May 1, 2026
Renames the folder, SWIG module (MJPIDControllers -> MJJointPIDController), and test file to match the single concrete class it contains. Adds JointPIDController.rst and updates scenarioBranchingPanels to import from the new module name.
schaubh
pushed a commit
that referenced
this pull request
May 1, 2026
This file contains hidden or 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
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.
Description
Refactors
mujocoDynamicsmodule layout to follow BSK conventions (one module per folder, abstract base classes in_GeneralModuleFiles):MeanRevertingNoise(abstract base) moved to_GeneralModuleFileswith its ownMJMeanRevertingNoiseSWIG moduleStochasticAtmDensityandStochasticDragCoeffeach get their own folder and SWIG module (MJStochasticAtmDensity,MJStochasticDragCoeff)PIDControllers/renamed toJointPIDController/, SWIG module renamed toMJJointPIDControllerCommits are organized one module change per commit, with scenario import fixes bundled into the commit that caused them.
Verification
Existing unit tests cover
StochasticAtmDensityandJointPIDController. A new unit test was added forStochasticDragCoeff(previously untested). No logic was changed, only file organization and import paths.Documentation
Added missing
.rstpages forNBodyGravity,JointPIDController,StochasticAtmDensity, andStochasticDragCoeff. Updated path references in existing.rstfiles. Release note snippet added.Future work
None anticipated.