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

[RTR] Torque driven free floating base dynamics #803

Closed
wants to merge 24 commits into from

Conversation

EveCharbie
Copy link
Collaborator

@EveCharbie EveCharbie commented Nov 13, 2023

All Submissions:

  • Have you followed the guidelines in our Contributing document [docs/contribution.md]?
  • Have you checked to ensure there aren't other open [Pull Requests] for the same update/change?
  • Have you opened/linked the issue related to your pull request? Issue # 773
  • Have you used the tag [WIP] for on-going changes, and removed it when the pull request was ready?
  • When ready to merge, have you sent a comment pinging @pariterre in it?

New Feature Submissions:

  1. Does your submission pass the tests (if not please explain why this is intended)?
  2. Did you write a proper documentation (docstrings and ReadMe)
  3. Have you linted your code locally prior to submission (using the command: black . -l120 --exclude "external/*")?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new examples for your core changes, as applicable?
  • Have you written new tests for your core changes, as applicable?

This change is Reviewable

@EveCharbie EveCharbie changed the title [WIP] torque driven free floating base dynamics [RTR] torque driven free floating base dynamics Nov 13, 2023
Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

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

Reviewed 18 of 18 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @EveCharbie)


bioptim/dynamics/dynamics_functions.py line 597 at r1 (raw file):

            else:
                raise RuntimeError(f"{key} not found in states or controls")
            return out

Should this be used everywhere?


bioptim/limits/penalty_controller.py line 366 at r1 (raw file):

    @property
    def qdot(self) -> OptimizationVariable:

Since q, qdot and tau are canonical in bioptim, I suggest that since you added q and qdot, that "tau" should be added as well for consistency

@pariterre pariterre changed the title [RTR] torque driven free floating base dynamics torque driven free floating base dynamics Nov 14, 2023
Copy link
Collaborator Author

@EveCharbie EveCharbie left a 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, 2 unresolved discussions (waiting on @pariterre)


bioptim/dynamics/dynamics_functions.py line 597 at r1 (raw file):

Previously, pariterre (Pariterre) wrote…

Should this be used everywhere?

I think yes. Can I put this function as a method of nlp?


bioptim/limits/penalty_controller.py line 366 at r1 (raw file):

Previously, pariterre (Pariterre) wrote…

Since q, qdot and tau are canonical in bioptim, I suggest that since you added q and qdot, that "tau" should be added as well for consistency

Done.

Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @EveCharbie)


bioptim/dynamics/dynamics_functions.py line 597 at r1 (raw file):

Previously, EveCharbie (Eve Charbonneau) wrote…

I think yes. Can I put this function as a method of nlp?

Sounds like a good idea!

Copy link
Collaborator Author

@EveCharbie EveCharbie left a comment

Choose a reason for hiding this comment

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

Reviewable status: 11 of 23 files reviewed, 1 unresolved discussion (waiting on @pariterre)


bioptim/dynamics/dynamics_functions.py line 597 at r1 (raw file):

Previously, pariterre (Pariterre) wrote…

Sounds like a good idea!

Done.

@EveCharbie EveCharbie changed the title torque driven free floating base dynamics [RTR] Torque driven free floating base dynamics Nov 16, 2023
pariterre
pariterre previously approved these changes Nov 16, 2023
Copy link
Member

@pariterre pariterre left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 13 of 13 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @EveCharbie)

@EveCharbie
Copy link
Collaborator Author

@pariterre I need help for either:

  • Fixing the tests on Ubuntu/Mac
  • Or if you have any ideas on how to make the test more stable on Windows

@pariterre
Copy link
Member

Close as it is a duplicate of #809

@pariterre pariterre closed this Jan 11, 2024
@EveCharbie EveCharbie deleted the root_tau_dynamics branch March 1, 2024 18:20
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.

2 participants