feat(usd): import NewtonJointAPI broadcast limit/damping/velocity attributes - #3
Closed
andrewkaufman wants to merge 1 commit into
Closed
feat(usd): import NewtonJointAPI broadcast limit/damping/velocity attributes#3andrewkaufman wants to merge 1 commit into
andrewkaufman wants to merge 1 commit into
Conversation
andrewkaufman
force-pushed
the
import-newton-joint-api
branch
from
June 29, 2026 19:56
fd23df8 to
4da6422
Compare
andrewkaufman
commented
Jun 29, 2026
andrewkaufman
left a comment
Owner
Author
There was a problem hiding this comment.
There should also be rst docs changes. See https://github.com/newton-physics/newton/pull/3005/files for an example
andrewkaufman
commented
Jun 29, 2026
andrewkaufman
commented
Jun 29, 2026
Owner
Author
|
CI fails with |
andrewkaufman
force-pushed
the
import-newton-joint-api
branch
3 times, most recently
from
June 29, 2026 23:46
307fabd to
0832f6a
Compare
Add importer support for the NewtonJointAPI schema, resolving its six per-joint attributes (armature, damping, friction, limitStiffness, limitDamping, velocityLimit) and broadcasting them uniformly across all DOFs of revolute, prismatic, and D6 joints. Sentinel semantics: - limitStiffness = inf → hard limit (limit_ke = 1e8) - limitStiffness = -inf → use builder default - limitDamping = -inf → use builder default - limitDamping ignored when limitStiffness = inf - velocityLimit = inf → use builder default Schema resolver additions: - Six new Newton JOINT keys with priority over PhysX/MuJoCo equivalents for armature, velocity_limit, and friction - Deprecation warnings for 10 legacy newton:* per-DOF state attrs Closes newton-physics#3271
andrewkaufman
force-pushed
the
import-newton-joint-api
branch
from
June 29, 2026 23:52
0832f6a to
e5a2c60
Compare
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.
Summary
Import the six
NewtonJointAPIschema attributes and broadcast them uniformly across all DOFs of revolute, prismatic, and D6 joints.newton:armaturearmaturenewton:dampingdampingnewton:frictionfrictionnewton:limitStiffnesslimit_keinf= hard limit (1e8),-inf= builder defaultnewton:limitDampinglimit_kdlimitStiffness = inf;-inf= builder defaultnewton:velocityLimitvelocity_limitinf= builder default; overrides PhysX if authoredChanges
newton/_src/usd/schemas.pyNewtonJointAPIattrs in the Newton schema resolver (JOINT prim type)_newton_legacy_joint_state_attr()deprecation getter for 10 legacy per-DOF state attrsnewton/_src/utils/import_usd.pylimit_ke/limit_kd/velocity_limitfrom the resolver_resolve_newton_limit_ke()and_resolve_newton_limit_kd()helpers for sentinel handlingdocs/concepts/usd_parsing.rstTests
test_import_usd.py: 5 new tests — basic revolute, prismatic, D6 mixed, hard-limit, velocity_limit=inftest_schema_resolver.py: comprehensive cross-resolver ordering tests (all 6 permutations of Newton/PhysX/MuJoCo), deprecation warning testsCloses
Closes newton-physics#3271