Commit 6473d3c
authored
Add standalone physics settle check over pooled layouts (#769)
## Summary
When a solver returns a pooled layouts, there are 2 types of
validations. One is analytical, fast, does not require SimApp, e.g.
check no overlapping & on relation (existing). The other involves
stepping physics, slow but more closely reflects how end user consumes,
e.g. physics stability.
In an ideal world, placement_enev shall only use valid layout everytime
thru `env.reset()`
## Detailed description
### Why
Agentic Env Gen requires a post-validation step to rule out envs with
unstable physics, and re-trigger generation if nothing valid. It has to
be automatic.
### How
`python isaaclab_arena/scripts/run_placement_pool_validation.py (--viz
kit --render) --num_envs 10 pick_and_place_maple_table`
The standalone script checks if physics settled by advancing physics
only, over the pool of layouts returned by the solver, and report
results.
### What
1. Refactored existing validation:
- added a `PlacementValidationChecklist` data class to contain each
individual validation check results;
- included a required/optional validation failures to let user decide
which optimized layouts shall be selected as the best-ranked.
2. Added `physics_settle.py` to execute physics stepping without
rendering, and check linear_vel, and ang_vel if below thresholds.
3. Added `placement_pool_validation.py` orchestras how many episodes
over how many envs needed for the fixed pool of layouts
4. Added user-interface `run_placement_pool_validation.py` to execute
the check
## Next
Add integration with Pool filling and lookup table.
Ideal pipeline:
Each time pool is filled (after solver, before placement event) ->
[Optional] run physics check for all env's pool unvalidated layouts &
log it down -> Select (valid) one to load in placement events
---------
Signed-off-by: Xinjie Yao <xyao@nvidia.com>1 parent e3c2353 commit 6473d3c
15 files changed
Lines changed: 999 additions & 61 deletions
File tree
- isaaclab_arena
- environments
- relations
- scripts
- tests
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
192 | | - | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
105 | 121 | | |
106 | 122 | | |
107 | 123 | | |
| |||
235 | 251 | | |
236 | 252 | | |
237 | 253 | | |
238 | | - | |
| 254 | + | |
239 | 255 | | |
240 | 256 | | |
241 | 257 | | |
| |||
257 | 273 | | |
258 | 274 | | |
259 | 275 | | |
260 | | - | |
| 276 | + | |
261 | 277 | | |
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
265 | 281 | | |
266 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
267 | 289 | | |
268 | 290 | | |
269 | 291 | | |
| |||
602 | 624 | | |
603 | 625 | | |
604 | 626 | | |
605 | | - | |
| 627 | + | |
606 | 628 | | |
607 | 629 | | |
608 | 630 | | |
609 | 631 | | |
610 | 632 | | |
611 | 633 | | |
612 | 634 | | |
613 | | - | |
| 635 | + | |
614 | 636 | | |
615 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
616 | 647 | | |
617 | 648 | | |
618 | 649 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
22 | 43 | | |
23 | 44 | | |
24 | 45 | | |
25 | 46 | | |
26 | 47 | | |
27 | 48 | | |
28 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
29 | 96 | | |
30 | 97 | | |
31 | 98 | | |
| |||
61 | 128 | | |
62 | 129 | | |
63 | 130 | | |
64 | | - | |
| 131 | + | |
65 | 132 | | |
66 | | - | |
67 | 133 | | |
68 | | - | |
69 | 134 | | |
70 | 135 | | |
71 | 136 | | |
72 | 137 | | |
73 | 138 | | |
74 | 139 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 140 | + | |
| 141 | + | |
0 commit comments