feat(franka): add supervised visual task-card generation and replay - #187
Draft
Elessar123 wants to merge 1 commit into
Draft
Elessar123 wants to merge 1 commit into
Elessar123 wants to merge 1 commit into
Conversation
Signed-off-by: Yixian Zhang <105852015+Elessar123@users.noreply.github.com>
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
Recorded Franka runs already contain ordered primitive commands and RGB-D snapshots, but could not be replayed as visual task cards. This adds supervised generation and replay for single and dual Franka through the existing
TaskCardPlanner/RobotSpec.replay_cardhook.states.json, an operator-confirmed successful source, and per-step semantic/rotation annotations. Molmo grounds source images; calibrated RGB-D supplies 3-D anchor offsets.move_delta. Preserve sequential left/right primitive calls and current VLA primitives; rotate by an explicitly annotated relative delta or fixed quaternion target.right_basedual-arm motion convention, transform left-arm targets only for native workspace checks, and reject legacy unlabelled dual-arm state records.Rebased onto
9040f84and adapted to the new dual-Franka state/perception/operator interfaces andmolmo.groundRPC. Existing dual-Franka exploration remains separate.Draft limitations: annotations are explicit, not automatically inferred from hidden reasoning; object-relative orientation estimation, Dashboard confirmation UI and automatic memory publication are not implemented. Cards require matching configuration/calibration hashes. Workspace and motion bounds are not collision detection or a hardware emergency stop.
Testing
python -m pytest -q tests/unit_tests/robots/franka tests/unit_tests/robots/dual_franka tests/unit_tests/robots/libero/test_task_card.py tests/unit_tests/rpent/cli/test_main_contracts.py: 109 passed. Environment reports an existing unknowntimeoutpytest config warning.git diff --check.Manual verification
No physical robot, real Molmo model, VLA checkpoint or simulator physics was run. Hardware/model-service validation remains required; this PR is intentionally draft. Loopback tests validate software orchestration and geometry, not real manipulation success.
Checklist