Commit 99f7d7b
Horde
Add MuJoCo tendon support to Newton physics replication
Newton's parse_usd has two interlocking constraints that prevented
MjcTendon prims from being parsed correctly in the multi-env cloner:
1. SchemaResolverMjc.validate_custom_attributes() raises if called on a
builder that has not had SolverMuJoCo.register_custom_attributes()
called first.
2. register_custom_attributes registers MJC custom frequencies, which
triggers Newton's stage-wide custom-frequency traversal (independent
of ignore_paths). On the main builder, this traversal finds MjcTendon
prims under /World/envs/... and tries to resolve their joint paths
against the main builder's empty joint_label (joints are excluded via
ignore_paths), producing "unknown joint path" warnings and dropping
all tendons.
Fix: exclude SchemaResolverMjc from the main builder's schema_resolvers.
The main builder loads only scene-level prims (ground, lights) that have
no MjcTendon prims, so the resolver is not needed there. Proto builders
include SchemaResolverMjc and call register_custom_attributes before
add_usd, so Newton correctly resolves MjcTendon joint paths against each
proto's fully populated joint_label. add_builder then propagates the
resolved entries into the main builder (N×T entries for N envs, T
tendons each), which SolverMuJoCo handles natively by filtering on
tendon_world == template_world.1 parent 640e71b commit 99f7d7b
3 files changed
Lines changed: 364 additions & 5 deletions
File tree
- source/isaaclab_newton
- changelog.d
- isaaclab_newton/cloner
- test/cloner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Lines changed: 31 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
61 | | - | |
| 74 | + | |
62 | 75 | | |
63 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
67 | 83 | | |
68 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
69 | 89 | | |
70 | 90 | | |
71 | 91 | | |
72 | 92 | | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
76 | | - | |
| 96 | + | |
77 | 97 | | |
78 | 98 | | |
79 | 99 | | |
| |||
112 | 132 | | |
113 | 133 | | |
114 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
115 | 141 | | |
116 | 142 | | |
117 | 143 | | |
| |||
0 commit comments