Skip to content

Add the fixed background mesh to the collision world of the cuRobo reachability check - #1561

Merged
xyao-nv merged 2 commits into
mainfrom
xyao/feature/curobo_background_cuboids
Dec 2, 2026
Merged

xyao-nv merged 2 commits into
mainfrom
xyao/feature/curobo_background_cuboids

Conversation

@xyao-nv

@xyao-nv xyao-nv commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Add the fixed background mesh (e.g. kitchen cabinets, counters, appliances) to the collision world of the build-time cuRobo reachability check.

Why this change?

ReachabilityValidator accepts a placement layout only if cuRobo IK finds a collision-free arm pose for a top-down grasp on each target object. Its collision world held only the layout's objects, not the background. A layout could pass with an arm pose that goes through the kitchen fixtures.

What changes?

  • ReachabilityConfig.include_background_obstacles adds the background to the reachability check. It is off by default; Check reachability against the background ON in every kitchen_bench environment #1810 turns it on for every kitchen_bench environment.
  • The whole mesh is loaded once. CuroboIKSolver.load_background_mesh loads it as one cuRobo mesh obstacle and builds its collision structure once; every collision world of a batched solve shares it.
  • Each world only places it. load_collision_worlds writes the mesh's pose relative to each world's robot base, in place, so captured CUDA graphs stay valid.
  • (Highly vibe-coded debugger viz)The Rerun view shows the background. It draws the background within 1.4 m of the robot base and colors the triangle closest to each arm sphere: red for overlap, orange for within 5 cm.

Cost

OSMO, L40S, 67 kitchen_bench envs with 30 envs each, every version run twice on the same GPU per kitchen:

Per kitchen placement/validate 95% CI Mean validate time Whole placement
main → background off +0.6% +0.1% to +1.2% 42.1 → 42.1 s +0.6%
background off → on +4.2% +2.9% to +5.4% 42.1 → 44.0 s +2.2%
main → background on +4.8% +3.6% to +6.0% 42.1 → 44.0 s +2.8%

On my local 6000Ada, 30 envs, placement seed 0

Kitchen Triangles One-time load IK check per layout, background off → on
Replicator L-shape 15k 7 ms 9.2 → 10.2 ms
Replicator peninsula 17k 8 ms 8.9 → 10.0 ms
Replicator U-shape 26k 11 ms 8.6 → 9.8 ms
Lightwheel pick_and_place 188k 92 ms 9.0 → 12.4 ms
Lightwheel L-shaped scandinavian 263k 129 ms 9.9 → 12.4 ms
Lightwheel U farmhouse2 565k 287 ms 7.8 → 7.8 ms

Validation

  • Placer without vs with background checks on 6 kitchen specs (8,786 layouts): the background rejected 83 layouts that pass without it. 9 flipped the other way, within IK noise (two background-off runs disagree on 23).
  • On the 67 kitchen_bench envs, the background rejects 128 more of about 95,800 checked layouts. Batches and fallback envs are unchanged, and with it off the IK results match main in every kitchen.
  • Peninsula soup bowl env shows the penetration.
peninsula_layout37_sim_off_vs_on

@xyao-nv
xyao-nv force-pushed the xyao/feature/curobo_background_cuboids branch from 2dece54 to 0801a66 Compare October 30, 2026 02:45
@xyao-nv xyao-nv changed the title curobo background cuboids Add the fixed background mesh to the collision world of the build-time cuRobo reachability check Nov 11, 2026
@xyao-nv xyao-nv changed the title Add the fixed background mesh to the collision world of the build-time cuRobo reachability check Add the fixed background mesh to the collision world of the cuRobo reachability check Nov 11, 2026
@xyao-nv
xyao-nv marked this pull request as ready for review November 11, 2026 06:55
@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR changes build-time placement acceptance when the reachability check is enabled.

The PR appears safe to merge, with a non-blocking gap in tests for replacing a loaded background mesh.

Findings

  1. P2 Mesh replacement lacks test coverage ▶

Summary

Adds nearby fixed background geometry to the build-time reachability check.

  • Reachability checks now include nearby background fixtures.
  • Rerun shows the background mesh near each checked grasp.

Review checks were static; no tests were run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Candidate layout] --> B[Resolve robot base pose]
    B --> C{Base pose changed?}
    C -->|Yes| D[Crop and replace background mesh]
    C -->|No| E[Reuse loaded background]
    D --> F[Load layout cuboids]
    E --> F
    F --> G[Disable current target cuboid]
    G --> H[Solve grasp against remaining obstacles]
    H --> I[Enable target cuboid]
    I --> J{More targets?}
    J -->|Yes| G
    J -->|No| K[Accept only if every grasp passes]
Loading

Reviews (1) · Last reviewed commit: "Search only nearby background triangles ..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

The PR changed while this review was running. Please run /review to retry.

@xyao-nv

xyao-nv commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

Copy link
Copy Markdown
Contributor

The PR changed while this review was running. Please run /review to retry.

Requested in this comment.

@xyao-nv
xyao-nv force-pushed the xyao/feature/curobo_background_cuboids branch from 7c27f91 to 25da0c6 Compare November 12, 2026 19:47
@xyao-nv
xyao-nv force-pushed the xyao/feature/curobo_background_cuboids branch 2 times, most recently from 3bfd975 to d770bb6 Compare November 30, 2026 22:24
@xyao-nv

xyao-nv commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

Copy link
Copy Markdown
Contributor

The review did not return a complete result. Please run /review to retry.

Requested in this comment.

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

The code looks great. Really simple.

I'm wondering about what the end-to-end performance cost is. Reachability validation is currently the most expensive part of the placement pipeline, so I would run the full benchmark suite before we default it to "on".

Comment thread isaaclab_arena_curobo/ik_solver.py Resolved
Comment thread isaaclab_arena_curobo/ik_solver.py Resolved
…achability check

ReachabilityConfig.include_background_obstacles (default on) adds the placer's fixed background
mesh (e.g. kitchen cabinets and walls) to every IK collision world. The mesh's collision structure
is built once and shared by all worlds of a batched solve; each world only places it for its own
robot base. Scenes without a background load nothing.

The placement Rerun view draws the background near the robot base and highlights the triangles
the robot's collision spheres hit or nearly hit.

Signed-off-by: Xinjie Yao <[email protected]>
@xyao-nv
xyao-nv force-pushed the xyao/feature/curobo_background_cuboids branch from d770bb6 to eb4219f Compare December 1, 2026 17:01
- include_background_obstacles defaults to False; scenes that need it (kitchens) turn it on.
- The reachability validator asserts the fixed background does not change between batches, since its mesh is
  joined only on the first one.
- The solver's collision cache sizes are written inline, and the background placement docstring is reworded.
- The solver test also replaces the background mesh with a different one.

Signed-off-by: Xinjie Yao <[email protected]>

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xyao-nv
xyao-nv merged commit 9cd5fed into main Dec 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants