-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Caches PhysX view's joint paths when processing fixed articulation tendons #1347
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
Merged
Conversation
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
Mayankm96
reviewed
Oct 30, 2024
source/extensions/omni.isaac.lab/omni/isaac/lab/assets/articulation/articulation.py
Outdated
Show resolved
Hide resolved
Mayankm96
reviewed
Oct 30, 2024
source/extensions/omni.isaac.lab/omni/isaac/lab/assets/articulation/articulation.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Mayank Mittal <[email protected]>
Mayankm96
reviewed
Oct 31, 2024
Signed-off-by: Mayank Mittal <[email protected]>
Mayankm96
approved these changes
Oct 31, 2024
jtigue-bdai
approved these changes
Oct 31, 2024
Mayankm96
reviewed
Nov 1, 2024
Signed-off-by: Mayank Mittal <[email protected]>
iamdrfly
pushed a commit
to iamdrfly/IsaacLab
that referenced
this pull request
Nov 21, 2024
…ndons (isaac-sim#1347) # Description Cache PhysX view's DOF paths before looping when processing fixed articulation tendons to improve loading time. For the Shadow Hand task, calling `self.root_physx_view.dof_paths` when iterating over all joints to find tendons attached (in `Articulation._process_fixed_tendons` method) is an "expensive" operation. Timing can be reduced from 2.2 seconds to 300 milliseconds (13th Gen Intel® Core™ i9-13950HX × 32, RTX 5000) by calling `self.root_physx_view.dof_paths` once ## Screenshots Without any change  After cache PhysX view's DOF paths before looping (`self.root_physx_view.dof_paths` called only once)  ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
adrian-sch
pushed a commit
to adrian-sch/IsaacLab
that referenced
this pull request
Dec 6, 2024
…ndons (isaac-sim#1347) # Description Cache PhysX view's DOF paths before looping when processing fixed articulation tendons to improve loading time. For the Shadow Hand task, calling `self.root_physx_view.dof_paths` when iterating over all joints to find tendons attached (in `Articulation._process_fixed_tendons` method) is an "expensive" operation. Timing can be reduced from 2.2 seconds to 300 milliseconds (13th Gen Intel® Core™ i9-13950HX × 32, RTX 5000) by calling `self.root_physx_view.dof_paths` once ## Screenshots Without any change  After cache PhysX view's DOF paths before looping (`self.root_physx_view.dof_paths` called only once)  ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
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
Cache PhysX view's DOF paths before looping when processing fixed articulation tendons to improve loading time.
For the Shadow Hand task, calling
self.root_physx_view.dof_pathswhen iterating over all joints to find tendons attached (inArticulation._process_fixed_tendonsmethod) is an "expensive" operation. Timing can be reduced from 2.2 seconds to 300 milliseconds (13th Gen Intel® Core™ i9-13950HX × 32, RTX 5000) by callingself.root_physx_view.dof_pathsonceScreenshots
Without any change

After cache PhysX view's DOF paths before looping (

self.root_physx_view.dof_pathscalled only once)Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there