Fixes CPU pipeline stage initialization in PhysxManager#4675
Open
kellyguo11 wants to merge 4 commits intoisaac-sim:developfrom
Open
Fixes CPU pipeline stage initialization in PhysxManager#4675kellyguo11 wants to merge 4 commits intoisaac-sim:developfrom
kellyguo11 wants to merge 4 commits intoisaac-sim:developfrom
Conversation
Contributor
Greptile SummaryThis PR fixes a CPU collision detection bug introduced during the PhysicsManager refactoring (#4564). The recent refactoring added an unconditional call to Key changes:
The fix aligns with the original behavior where the old SimulationManager never called Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[_warmup_and_create_views called] --> B{Check device type}
B -->|GPU pipeline<br/>cuda in device| C[attach_stage]
B -->|CPU pipeline<br/>cpu device| D[Skip attach_stage]
C --> E[force_load_physics_from_usd]
D --> E
E --> F[start_simulation]
F --> G[update_simulation]
G --> H[Create SimulationView]
H --> I[Physics Ready]
C -.->|Prevents| J[GPU buffer allocation issues]
D -.->|Prevents| K[CPU broadphase MBP<br/>double-initialization]
K -.->|Would cause| L[Objects fall through surfaces]
Last reviewed commit: 90894d0 |
ooctipus
approved these changes
Feb 21, 2026
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
In recent PhysicsManager refactoring, behavior in the PhysxManager changed to call attatch_stage by default for initialization.
This triggered a side effect in CPU pipeline that caused objects to miss contacts and collisions.
It appears that attach stage to PhysX before loading/starting is only needed for GPU pipeline. So in this change, we are guarding this call to run on GPU pipeline only and avoid it on CPU pipeline to avoid issues in collisions.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there