Skip to content

Remove RandomAroundSolution - #1494

Merged
alexmillane merged 2 commits into
mainfrom
alex/refactor/remove_random_around_solution
Oct 21, 2026
Merged

alexmillane merged 2 commits into
mainfrom
alex/refactor/remove_random_around_solution

Conversation

@alexmillane

@alexmillane alexmillane commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Remove the RandomAroundSolution relation.

Why this change?

  • RandomAroundSolution is effectively unused, and buggy in the 1 place that it is used.
  • It has no effect in environments built by ArenaEnvBuilder, effectively due to a bug.
  • It is used in a single environment, put_item_in_fridge_and_close_door (although the effects are not actually felt in that env because, as above, it is not actually used by the placer).

What changes?

  • put_item_in_fridge_and_close_door replaces AtPosition + RandomAroundSolution with a PositionLimitsBox.
  • RandomAroundSolution is deleted, along with its checks in FaceTo, ClutterOn and placement recording/replay, and its tests and docs.

Validation

Pickup-object reset position over 100 resets (1 env), on main and on this branch:

x mean / std y mean / std
main 4.0502 / 1.4 mm −0.5734 / 0.7 mm
This branch 4.0498 / 1.4 mm −0.5736 / 0.4 mm

z and yaw are unchanged. A 16-env run gives the same result. All 227 tests in the 14 placement test files pass when run one file at a time.

Distribution of 100 solutions on the shelf (note that part of the box doesn't get filled because it's excluded by the border of the on relation)

fridge_placement_xy fridge_placement_renders_2x5

Replace AtPosition + RandomAroundSolution in put_item_in_fridge_and_close_door
with a PositionLimitsBox around the object's solved position, and delete
RandomAroundSolution along with its validation checks, tests, and docs.

Signed-off-by: alex <[email protected]>
@alexmillane
alexmillane marked this pull request as ready for review October 21, 2026 14:37
@alexmillane

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

arena-review-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR deletes RandomAroundSolution along with its checks, tests and docs. The builder never applied it. Its only user, put_item_in_fridge_and_close_door, now uses PositionLimitsBox instead. The new commit swaps the hand-copied tutorial code for literalincludes of the environment file, which fixes the stale-snippet comment from the last review.

One question from the last review is still open, on gr1_put_and_close_door_environment.py:179. Do we need the ±2.5 mm / ±1 mm box at all? Deleting only the RandomAroundSolution line might be enough.

Findings

🔵 Improvement: docs/pages/concepts/object_placement/relations.rst:249: The new paragraph says every solved layout lands inside the box. But PositionLimitsBox is only a solver loss, and the same page says no built-in validator checks it. The spread also depends on OnTreeInitializer, which only samples start positions inside the box for objects that have an On parent. The inline comment has suggested wording.

Test limitations

Pre-commit passed on b7099a8. When I wrote this review, the docs build was still queued and the image builds were still running. I did not run the simulation tests.

Verdict

Minor fixes needed

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes RandomAroundSolution and its placement, recording, and test code.

  • Placement no longer uses RandomAroundSolution to randomize solved poses.
  • The fridge task places its pickup within a small box the robot can reach.

Reviews (1) · Last reviewed commit: "Remove RandomAroundSolution" · Reviewed by Greptile

Replace the hand-copied, out-of-date snippets with literalincludes of
gr1_put_and_close_door_environment.py so the page tracks the code.

Signed-off-by: alex <[email protected]>

@zhx06 zhx06 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.

Thanks for doing this! LGTM!

@alexmillane
alexmillane merged commit 36f5a35 into main Oct 21, 2026
13 checks passed
@alexmillane
alexmillane deleted the alex/refactor/remove_random_around_solution branch October 21, 2026 16:14
cvolkcvolk added a commit that referenced this pull request Oct 22, 2026
Merges these main pull requests:
- #1486 Call build_env_cfg in the seeding tests
- #1409 Add Newton gear insertion env with DROID teleoperation
- #1428 Add a skill for drafting pending PR reviews
- #1488 Disable CI GR00T E2E on Blackwell wo CUDA12.8
- #1457 Add observational predicate event tracking
- #1485 Clarify "normalize" and "plumbing" wording and add AGENTS.md guidance
- #1494 Remove RandomAroundSolution

The merge had no conflicts.

Signed-off-by: Clemens Volk <[email protected]>
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.

3 participants