Commit 51642ea
Unify primitive mesh refinement controls (#7357)
## Description
- Add `MeshCfg.edge_refinement`, defaulting to `4.0`, to control surface
subdivision for all primitive mesh spawners using a
bounding-box-diagonal target.
- Forward `1.0 / edge_refinement` to automatic tetrahedralization for
volume deformables spawned through `MeshCfg` primitive spawners. Direct
callers of `define_deformable_body_properties` retain its existing
default factor of `0.1`.
- Document that values near `1.0` should be avoided for volume
deformables because they can make TetWild tetrahedralization
significantly slower.
- Replace `MeshRectangleCfg.resolution` with scalar `edge_refinement`.
This removes independent per-axis resolution control, and subdivision
counts can be discontinuous for non-power-of-two factors.
- Migrate existing cloth callsites and examples, and set the Franka
soft-lift cuboid refinement to `8.0`.
This is a breaking change. Unconfigured primitive surfaces now use an
edge-refinement factor of `4.0`, and unconfigured volume primitive
spawners use a tetrahedralization factor of `0.25` instead of `0.1`.
Rectangles now use the common recursive edge-length subdivision instead
of the previous per-axis grid.
## Type of change
- [x] Breaking change
- [x] New feature
## Release backport
- [x] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
## Testing
- [x] Ruff, format, compilation, and diff checks
- [x] Mesh-spawner integration suite: 21 tests
- [x] Newton surface-deformable initialization and freefall integration
test
- [x] PhysX deformables demo: completed setup and simulation
- [x] Franka cloth environment: 20 steps each on Newton, PhysX, and
OvPhysX
- [x] Franka cloth camera environment: 5 PhysX/RTX steps with image
observations
- [x] Scripted Franka cloth lift: 50 steps each on Newton and PhysX
- [x] Franka soft lift with refinement `8.0`: 10 steps each on Newton
and Isaac Sim PhysX
- [x] Seed-42 RSL-RL scratch smoke at 2,048 environments: 55 soft
updates and 11 cloth updates with finite losses
- [x] Seed-42 matched checkpoint continuation at 2,048 environments: 52
updates each on develop and the PR mesh; final-20 success was 67.1%
versus 81.5% for soft and 85.3% versus 87.6% for cloth
- [x] TetWild timing check for all five volume primitives at the default
factor of `0.25`
PhysX reports an invalid surface-deformable-view warning in the demo and
cloth environment. The same warning is present on untouched `develop`
with the same runtime and is not introduced by this change.
## Checklist
- [x] Changelog fragments added
- [x] Existing callsites migrated
(cherry picked from commit 3fbbd15)1 parent 5f7234e commit 51642ea
13 files changed
Lines changed: 153 additions & 75 deletions
File tree
- scripts/demos
- source
- isaaclab_contrib
- changelog.d
- test/deformable
- isaaclab_tasks
- changelog.d
- isaaclab_tasks/core/lift/config/franka_soft
- test/golden_images/franka_cloth
- isaaclab
- changelog.d
- isaaclab/sim
- schemas
- spawners/meshes
- test/sim
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2008 | 2008 | | |
2009 | 2009 | | |
2010 | 2010 | | |
| 2011 | + | |
2011 | 2012 | | |
2012 | 2013 | | |
2013 | 2014 | | |
| |||
2037 | 2038 | | |
2038 | 2039 | | |
2039 | 2040 | | |
| 2041 | + | |
| 2042 | + | |
2040 | 2043 | | |
2041 | 2044 | | |
2042 | 2045 | | |
| |||
2166 | 2169 | | |
2167 | 2170 | | |
2168 | 2171 | | |
2169 | | - | |
| 2172 | + | |
2170 | 2173 | | |
2171 | 2174 | | |
2172 | 2175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 105 | | |
110 | 106 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 107 | | |
116 | 108 | | |
117 | 109 | | |
| |||
302 | 294 | | |
303 | 295 | | |
304 | 296 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
310 | 304 | | |
311 | 305 | | |
312 | 306 | | |
313 | 307 | | |
314 | | - | |
| 308 | + | |
315 | 309 | | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | 313 | | |
348 | 314 | | |
349 | 315 | | |
350 | 316 | | |
351 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
352 | 341 | | |
353 | 342 | | |
354 | 343 | | |
| |||
405 | 394 | | |
406 | 395 | | |
407 | 396 | | |
| 397 | + | |
408 | 398 | | |
409 | 399 | | |
410 | 400 | | |
411 | 401 | | |
412 | 402 | | |
413 | 403 | | |
414 | 404 | | |
| 405 | + | |
| 406 | + | |
415 | 407 | | |
416 | 408 | | |
417 | 409 | | |
| |||
471 | 463 | | |
472 | 464 | | |
473 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
474 | 469 | | |
475 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
175 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
118 | 134 | | |
119 | 135 | | |
120 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
121 | 168 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
125 | 173 | | |
126 | 174 | | |
127 | 175 | | |
| |||
139 | 187 | | |
140 | 188 | | |
141 | 189 | | |
142 | | - | |
143 | 190 | | |
144 | | - | |
| 191 | + | |
145 | 192 | | |
146 | 193 | | |
147 | | - | |
| 194 | + | |
148 | 195 | | |
149 | 196 | | |
150 | 197 | | |
| |||
154 | 201 | | |
155 | 202 | | |
156 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
157 | 213 | | |
158 | 214 | | |
159 | 215 | | |
| |||
Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
Whitespace-only changes.
0 commit comments