-
Notifications
You must be signed in to change notification settings - Fork 932
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
Caches PhysX view's joint paths when processing fixed articulation tendons #1347
Merged
Conversation
This file contains 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
Toni-SM
requested review from
jsmith-bdai,
Dhoeller19,
kellyguo11,
Mayankm96 and
jtigue-bdai
as code owners
October 30, 2024 22:11
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
Mayankm96
changed the title
Cache PhysX view's DOF paths when processing fixed articulation tendons to improve loading time
Caches PhysX view's joint paths when processing fixed articulation tendons
Oct 30, 2024
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Mayankm96
reviewed
Oct 31, 2024
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Mayankm96
approved these changes
Oct 31, 2024
jtigue-bdai
approved these changes
Oct 31, 2024
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
Mayankm96
reviewed
Nov 1, 2024
Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
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 ![Screenshot from 2024-10-28 13-30-07](https://github.com/user-attachments/assets/0bd61f3d-3013-49fb-8540-c08236b974cf) After cache PhysX view's DOF paths before looping (`self.root_physx_view.dof_paths` called only once) ![Screenshot from 2024-10-28 13-26-02](https://github.com/user-attachments/assets/6c2af86e-bd21-4b65-9c13-9610e6648e8d) ## 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_paths
when iterating over all joints to find tendons attached (inArticulation._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 callingself.root_physx_view.dof_paths
onceScreenshots
Without any change
After cache PhysX view's DOF paths before looping (
self.root_physx_view.dof_paths
called only once)Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there