Fixes warning with _update_tracking_callback at shutdown#4985
Open
dengyuchenkit wants to merge 2 commits intoisaac-sim:developfrom
Open
Fixes warning with _update_tracking_callback at shutdown#4985dengyuchenkit wants to merge 2 commits intoisaac-sim:developfrom
dengyuchenkit wants to merge 2 commits intoisaac-sim:developfrom
Conversation
5a979e0 to
4430a46
Compare
Contributor
Greptile SummaryThis PR fixes a shutdown warning in Key points:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[omni.kit post-update event] --> B[lambda: obj._update_tracking_callback]
B --> C{weakref alive?}
C -- No --> D[ReferenceError\npropagates to omni.kit]
C -- Yes --> E[_update_tracking_callback]
E --> F{try block}
F --> G{origin_type == asset_root?}
G -- Yes --> H[update_view_to_asset_root]
G -- No --> I{origin_type == asset_body?}
I -- Yes --> J[update_view_to_asset_body]
I -- No --> K[no-op]
H --> L{AttributeError?}
J --> L
L -- Normal operation --> M[Camera view updated]
L -- Shutdown: attrs invalidated --> N[except AttributeError: pass\nsilently skip]
Last reviewed commit: 4430a46 |
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
Fixes warning with _update_tracking_callback at shutdown
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there