Repository navigation
Use OrientedBoundingBox for collision checks - #1480
Conversation
aaf7170 to
b1bebfc
Compare
c43326d to
78c30b3
Compare
b1bebfc to
1ff97e5
Compare
78c30b3 to
3e2045c
Compare
1ff97e5 to
69fb952
Compare
3e2045c to
e695eea
Compare
[Medium impact] The PR appears safe to merge. SummaryThe PR preserves rotated collision boxes through candidate solving and validation.
No actionable issues were found. Author Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Assigned object geometry and candidate rotations] --> B[Build enclosing and oriented bounds]
B --> C[Optimize positions with cached box projections]
C --> D[Apply FaceTo headings and rebuild bounds]
D --> E[Batched box checks and existing mesh checks]
E --> F[Rank validated candidates per environment]
Reviews (1) · Last reviewed commit: "fix docs and tests" · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR switches Design, Boundaries & Scope
Findings🟡 Warning: 🔵 Improvement: 🔵 Improvement: 🔵 Improvement: 🔵 Improvement: Test Coverage and CI Cost
VerdictMinor fixes needed |
alexmillane
left a comment
There was a problem hiding this comment.
LGTM.
The only functional issue is the one that the bot commented on about the loss being zero even when there's overlap in some cases.
My additional small comments are about breaking up some functions, moving some code to different places.
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
e695eea to
f2249a6
Compare
Signed-off-by: zhx06 <zihaox@nvidia.com>
Use oriented bounding boxes for placement collision loss and validation. Keep the existing interval calculation for axis-aligned boxes and batch collision checks across candidates. This builds on
OrientedBoundingBoxfrom #1477.Why this change?
Enclosing AABBs can overlap even when rotated objects are separate. Placement previously penalized and rejected those layouts, although the oriented geometry was available.
What changes?
clearance_m, and it equals the intersection volume for axis-aligned pairs.CachedOverlapVolumeUpperBoundcaches the rotation-dependent terms once per solve. Itscompute()still returns the smaller volume, a true upper bound.RelationSolverprepares pair routing for the box and mesh losses once per solve.collision_bboxesstores oriented geometry once per batch, and each candidate's enclosing AABBs are derived from it. Those AABBs remain available for relation constraints and mesh proxies. For rotated rows they can differ from the previous rotation code by up to about 2e-7 m.CollisionMode.BBOXuses this automatically. Arbitrary-yaw results can change, including existing clutter examples. Support containment and clutter release initialization remain AABB-based; the existing rotated-support andOn(overlap=True)containment issues need a separate correction.Results
The placement-success benchmark (#1497) ran every RoboLab and KitchenBench spec on main and on this branch, with 50 layouts × 3 seeds per spec.
throw_away_snacks: layout success goes from 28% to 100%, and valid candidates from 3% to 68%;marker_in_mug: valid candidates go from 7% to 82%.food_packing_1_boxesandfood_packing_1_cans(valid candidates 75% → 84%).Limitations
yaw_rad: 1.57in KitchenBench are not exact quarter turns, so those scenes take the oriented path. Positions matched main in a probe; only the cost differs.Performance
Per solver iteration: cost rises in rotated scenes, because each directed pair stores a rotation per candidate. Caching the rotation-dependent terms makes iterations 6–26% faster on CPU and lowers peak memory by 16–22%, compared with recomputing them. The harmonic mean adds 4–10% per iteration on CPU over the smaller volume.
Validation is batched across candidates, which offsets much of the solver cost.
Full-suite wall time was noisy on a shared machine. Random-yaw RoboLab went from 979 to 802 s. As authored, the median spec took 16% longer.
These are placement measurements, not physics-acceptance rates.
Validation
88f83c967awith this branch's final loss, before rebasing onto the Isaac Lab 3.0 update (Update Arena to Isaac Lab 3.0 release #1481). All 69 specs ran with no failures in both settings.16e712dce3, including both test jobs.