-
Notifications
You must be signed in to change notification settings - Fork 46
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
[RTM] Free floating dynamics #488
Conversation
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.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Sciancisco)
.gitignore
line 97 at r2 (raw file):
# Remove other development artifacts examples/sandbox
weird...
Code quote:
examples/sandbox
bioptim/dynamics/dynamics_functions.py
line 476 at r2 (raw file):
""" DynamicsFunctions.apply_parameters(parameters, nlp) q = DynamicsFunctions.get(nlp.states["q"], states)
Add a raise is implicit
Code quote:
DynamicsFunctions.apply_parameters(parameters, nlp)
q = DynamicsFunctions.get(nlp.states["q"], states)
qdot = DynamicsFunctions.get(nlp.states["qdot"], states)
qddot_joints = DynamicsFunctions.get(nlp.states["qddot_joints"], controls)
Codecov Report
@@ Coverage Diff @@
## master #488 +/- ##
==========================================
- Coverage 80.25% 80.12% -0.13%
==========================================
Files 85 85
Lines 9268 9289 +21
==========================================
+ Hits 7438 7443 +5
- Misses 1830 1846 +16
Continue to review full report at Codecov.
|
this dynamic should now work
it worked before, just excrutiatingly slow
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.
Reviewable status: 1 of 7 files reviewed, 2 unresolved discussions (waiting on @pariterre and @Sciancisco)
bioptim/dynamics/dynamics_functions.py
line 476 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Add a raise is implicit
Done.
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.
Reviewed 2 of 3 files at r3, 4 of 6 files at r4, 2 of 3 files at r5, all commit messages.
Reviewable status: 7 of 8 files reviewed, 2 unresolved discussions (waiting on @pariterre and @Sciancisco)
tests/test_dynamics.py
line 1132 at r5 (raw file):
NonLinearProgram.add(ocp, "dynamics_type", Dynamics(DynamicsFcn.JOINTS_ACCELERATION_DRIVEN), False) np.random.seed(42)
love it!
check if nb_root > 0, otherwise this dynamic doesn't make sense
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.
Reviewed 1 of 3 files at r5, 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Sciancisco)
.gitignore
line 97 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
weird...
I still don't understand why you need it twice...
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pariterre)
tests/test_dynamics.py
line 1132 at r5 (raw file):
Previously, pariterre (Pariterre) wrote…
love it!
the answer
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Sciancisco)
All Submissions:
New Feature Submissions:
black . -l120 --exclude "external/*"
)?Changes to Core Features:
Related to #487
This change is