Repository navigation
Discover task grasp pairs and reuse external grasp labels - #1314
Merged
Merged
Conversation
[Medium impact] The reviewed changes appear safe to merge. SummaryThe PR discovers the grasp labels requested by a Task Program and lets planning reuse external keyed files.
No new actionable issues were found in the changes since the previous review. No previous review threads were supplied.
|
1 task done
yuecideng
reviewed
Nov 30, 2026
yuecideng
left a comment
Contributor
There was a problem hiding this comment.
Three P2 findings are attached inline. The 60 focused CPU tests passed, and targeted CPU probes confirmed the three cases.
yuecideng
approved these changes
Dec 1, 2026
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
Prepare the grasp labels that a Task Program will actually request, then pass their output directory to
run-task. The labeler resolves the mounted hand, target mesh, effective hand commands and TCP adjustments for each sampled grasp call. Repeated requests with the same physical configuration share one file. During planning, a missing external label identifies the required key.Migration from #1297
--pair HAND OBJECT AFFORDANCEfromaffordance precompute-grasp-cache. The deployment selects its own grasp pairs.--configand--outputarguments and optional--gripper-urdfand--meshoverrides. Bothlabel-graspsandaffordance label-graspsreach the same handler.grasp_pose, an[N, 4, 4]tensor of TCP poses in the object frame. Add--save-evidencewhen consuming opening widths, trial records or sampled object placements, including when resuming an already completed full-evidence output. The Python labeling API and built-in deployment cache retain their full-evidence defaults.--gym-configand--output-dirto generate files named with the planning keys for externalrun-tasklookup. Runtime accepts the output directory or individual keyed files and transforms each selected pose with the current object pose.Type of change
Validation
py312_bk, ran the CobotMagic cup example twice with the same seed and reduced sampling budget, once with its YAML assets and once with explicit URDF and mesh paths plus--save-evidence. Both runs accepted 31 of 32 trials and produced identical object-local TCP tensors. The top-level alias resumed the completed output successfully.Checklist
black .with Black 26.10.1.python docs/scripts/check_api_docs.pywith 5,078 of 5,078 exports documented.