Skip to content

ObjectPlacer: reject overlapping placements#439

Merged
cvolkcvolk merged 3 commits intomainfrom
cvolk/feature/object_placer_rerun_on_overlap
Feb 26, 2026
Merged

ObjectPlacer: reject overlapping placements#439
cvolkcvolk merged 3 commits intomainfrom
cvolk/feature/object_placer_rerun_on_overlap

Conversation

@cvolkcvolk
Copy link
Collaborator

@cvolkcvolk cvolkcvolk commented Feb 25, 2026

Summary

_validate_placement was a stub that always returned True, so the solver could converge to solutions where objects overlap

  • Implement _validate_placement in ObjectPlacer to detect bounding-box overlaps between placed objects, causing the placer to retry again.

Copy link
Collaborator

@alexmillane alexmillane left a comment

Choose a reason for hiding this comment

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

I have a question about why we're using 2D overlaps. Is there a reason not to go with 3D? Maybe there's a good reason though.

@cvolkcvolk cvolkcvolk changed the title ObjectPlacer: reject overlapping placements via XY collision detection ObjectPlacer: reject overlapping placements Feb 26, 2026
@cvolkcvolk cvolkcvolk enabled auto-merge (squash) February 26, 2026 10:01
@cvolkcvolk cvolkcvolk merged commit f5a74a0 into main Feb 26, 2026
5 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