-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Replaces PhysX schema interactions via pxr.PhysxSchema API helpers with direct prim schema apply/get calls
#4103
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
base: main
Are you sure you want to change the base?
Conversation
Greptile OverviewGreptile SummaryThis PR removes the dependency on Key Changes
Critical Issues Found
ImpactThe approach is sound and aligns with the stated goal, but the attribute naming bugs must be fixed before merge to prevent runtime failures in contact sensor activation. Confidence Score: 2/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant IsaacLab
participant USD_Prim
participant PhysX_Schema
Note over User,PhysX_Schema: Before PR: Using PhysxSchema API
User->>IsaacLab: Apply physics properties
IsaacLab->>PhysX_Schema: Import PhysxSchema
PhysX_Schema-->>IsaacLab: Return schema API objects
IsaacLab->>PhysX_Schema: PhysxArticulationAPI.Apply(prim)
PhysX_Schema->>USD_Prim: Apply schema to prim
IsaacLab->>PhysX_Schema: api.CreateAttribute().Set(value)
PhysX_Schema->>USD_Prim: Set attribute value
Note over User,PhysX_Schema: After PR: Direct USD string-based approach
User->>IsaacLab: Apply physics properties
IsaacLab->>USD_Prim: Check prim.GetAppliedSchemas()
USD_Prim-->>IsaacLab: Return list of schemas
IsaacLab->>USD_Prim: prim.AddAppliedSchema("PhysxArticulationAPI")
IsaacLab->>USD_Prim: prim.CreateAttribute(name, type)
IsaacLab->>USD_Prim: attr.Set(value)
Note over IsaacLab,USD_Prim: No dependency on PhysxSchema package
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 files reviewed, 2 comments
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: ooctipus <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: ooctipus <[email protected]>
pxr.PhysxSchema API helpers with direct prim schema apply/get calls
Signed-off-by: ooctipus <[email protected]>
AntoineRichard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks Octi!
Description
PhysxSchema is not a native package in pxr, and will not be importable without launched isaacsim
Newton reads the physxscheme directly from string, this pr makes sure we can alter change schema in similar string way without isaacsim dependency
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there