Repository navigation
Add the fixed background mesh to the collision world of the cuRobo reachability check - #1561
Conversation
2dece54 to
0801a66
Compare
[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
SummaryAdds nearby fixed background geometry to the build-time reachability check.
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]
Reviews (1) · Last reviewed commit: "Search only nearby background triangles ..." · Reviewed by Greptile |
|
The PR changed while this review was running. Please run |
|
/review |
|
The PR changed while this review was running. Please run Requested in this comment. |
7c27f91 to
25da0c6
Compare
3bfd975 to
d770bb6
Compare
|
/review |
|
The review did not return a complete result. Please run Requested in this comment. |
alexmillane
left a comment
There was a problem hiding this comment.
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".
…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]>
d770bb6 to
eb4219f
Compare
- 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]>
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_obstaclesadds 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.CuroboIKSolver.load_background_meshloads it as one cuRobo mesh obstacle and builds its collision structure once; every collision world of a batched solve shares it.load_collision_worldswrites the mesh's pose relative to each world's robot base, in place, so captured CUDA graphs stay valid.Cost
OSMO, L40S, 67 kitchen_bench envs with 30 envs each, every version run twice on the same GPU per kitchen:
placement/validateOn my local 6000Ada, 30 envs, placement seed 0
Validation