Add coordinated placement atomic action demo#318
Open
skywhite1024 wants to merge 2 commits into
Open
Conversation
297c3e6 to
b9e4823
Compare
Normalize coordinated placement held-state outputs, add target-axis recording support, and include the documented demo GIF for PR review.
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.
Description
This PR adds
CoordinatedPlacement, an object-centric dual-arm atomic action for the case where both arms already hold objects: the support arm moves and keeps holding the support object, while the placing arm aligns its held object above the support target, releases it, and retreats.The update also adds a bread-on-pan tutorial scenario, target-axis visualization, and a full-frame GIF in the built-in atomic actions documentation so reviewers can inspect the behavior loop directly.
Dependencies: none beyond the existing simulation/tutorial dependencies.
Type of change
Screenshots
See
docs/source/_static/atomic_actions/coordinated_placement.gifand theCoordinatedPlacementrow indocs/source/overview/sim/atomic_actions/builtin_actions.md.Notes
CoordinatedPlacementTargetexplicitly carries both placing/supportHeldObjectStatevalues instead of relying on the single-slotWorldState.held_objectto represent dual held objects.WorldState.held_objectis updated to the support object's held state, normalized to batched tensor shapes, because the placing object has been released while the support object remains held.Checklist
black .command to format the code base.Tests
/home/dex/miniconda3/envs/embodichain040/bin/black embodichain/lab/sim/atomic_actions/actions.py scripts/tutorials/atomic_action/coordinated_placement.py scripts/tutorials/atomic_action/tutorial_utils.py tests/sim/atomic_actions/test_actions.py/home/dex/miniconda3/envs/embodichain040/bin/python -m pytest tests/sim/atomic_actions/test_actions.py -qPYTHONUNBUFFERED=1 /home/dex/miniconda3/envs/embodichain040/bin/python scripts/tutorials/atomic_action/coordinated_placement.py --headless --headless_play --diagnose_plan --device cudaPYTHONUNBUFFERED=1 /home/dex/miniconda3/envs/embodichain040/bin/python scripts/tutorials/atomic_action/coordinated_placement.py --auto_play --device cuda