Repository navigation
Conversation
An On relation can now target an ObjectReference without relations of its own, such as a drawer, tray, pan or turntable link, whose root asset takes part in placement, anchored or placed by relations. Previously such a reference had to be anchored at a fixed pose, so the child could not follow a solved or moved root, and no_overlap rejected the child against the root's bounding box, which encloses the link. - PlaceableAsset gains get_placement_root() and get_bounding_box_relative_to_placement_root(); ObjectReference returns its root asset and the referenced prim's bounds relative to the root's origin, at the root's initial joint positions. - relations/geometry/asset_parts.py finds the placed owner of a relation parent and the part's bounds relative to it, turned by the owner's fixed quarter-turn heading. - The solver, the on-tree and anchor initializers, and the on_relation validator place the child on the part's bounds at the owner's position. - The no-overlap loss and validator exempt the child and the owner. - On and IsAnchor validate the configuration: the parent must take part in placement or be part of an asset that does, the owner must keep a fixed quarter-turn heading, and a part cannot be anchored while its root moves. Signed-off-by: Xinjie Yao <[email protected]>
The microwave is placed on the RoboLab oak table by relations, and a cube is placed on its turntable link through an object reference without relations, so the cube is randomized on the turntable and moves with the microwave. An object-control recipe turns the turntable 90 degrees, which carries the cube along, then closes the door for the CloseDoorTask. The author-environment placement guide shows the YAML pattern. Signed-off-by: Xinjie Yao <[email protected]>
Keep the relations page to what the feature does and its limits; the YAML and authoring rules stay in the author-environment skill's placement guide. Signed-off-by: Xinjie Yao <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this change?
What changes?
Validation