diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/PROTOCOL.md b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/PROTOCOL.md new file mode 100644 index 0000000000000000000000000000000000000000..ce8587ffc0c189a4a184199784ac1b43db41faf0 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/PROTOCOL.md @@ -0,0 +1,41 @@ +# Tool Hang paired first-attempt evaluation + +The public comparison uses two complete native-camera suites, one at each frozen code revision. Each suite runs seeds 0, 2, 7, 13, 22 and 42 in that order. Each seed starts in a new process with one arena, one normal reset and one call to the official demo executor. Failed first attempts stay in the denominator. The separate headless baseline is development evidence. + +Every episode starts the recording at reset, captures one image per 50 ms control step, and writes the corresponding robot target, measured joint positions, TCP pose, stand, frame and tool poses, and native condition metrics to the compressed trace. The videos use the same 768 × 512 native camera, H.264, 20 fps and yuv420p. All recorded actions target robot joints. The simulator supplies the object trajectories. + +The Gym score requires a successful native terminated transition during the original episode. The stability check follows the episode. For a release-stage run that can complete, the harness finishes any remaining actions from the expert's original generator, holds the open gripper at its last commanded position for 90 further control steps, then reads the original simultaneous insertion, threading, actual support-contact and hand-release conditions. An incomplete release cannot earn this score. The endpoint is reported even if the Gym attempt originally failed. The published sustained-success numerator counts the intersection of Gym success, a demonstrated release and retreat by the expert, and that 4.5-second endpoint. The audit requires both commanded fingers to go from at most 5 mm to at least 39 mm, an arm target change of at least 0.020 rad and an actual TCP retreat of at least 20 mm before the diagnostic hold, and both measured fingers to be at least 39 mm open at the endpoint. A raw endpoint that passes only after the supplemental hold stays in a separate field. The JSON also records how many of those 90 samples meet all four conditions, and how many preserve insertion, threading and hand separation. + +Use the same interpreter and native runtime for both checkouts. The script validates the physical asset checksums and records library versions. Each source directory must name the exact clean Git revision supplied to the launcher. + +```bash +# EVIDENCE holds this protocol, suite.py, and evaluate.py. +export EVIDENCE=/absolute/path/to/first_attempt_comparison +export EC_CHECKOUT=/absolute/path/to/EmbodiChain +export CHECKOUT_DIR=/absolute/path/to/empty-worktree-parent +mkdir -p "$CHECKOUT_DIR" +git -C "$EC_CHECKOUT" fetch origin pull/1266/head +git -C "$EC_CHECKOUT" worktree add --detach "$CHECKOUT_DIR/before" 3157569ef72abffd624eea4de7640769eb8918b4 +git -C "$EC_CHECKOUT" worktree add --detach "$CHECKOUT_DIR/after" 1218c472c8017fd7ec37b8f05f3ca71360e611d7 + +# Fetch the four registered archives before the runner checks the cache hashes. +(cd "$CHECKOUT_DIR/before" && python - <<'PYASSETS' +from pathlib import Path +from embodichain.data import get_data_path +for asset in ("Franka", "FrankaPandaArm", "RobosuiteToolHangV1", "RobosuiteToolHangPadsV1"): + assert Path(get_data_path(asset)).is_dir(), asset +PYASSETS +) + +# The runner writes under the directory holding suite.py. New output names +# keep the downloaded evidence available for comparison. +export SDL_VIDEODRIVER=x11 +xvfb-run -a -s '-screen 0 1280x720x24 +extension GLX' \ + python "$EVIDENCE/suite.py" run reproduced_before "$CHECKOUT_DIR/before" --revision 3157569ef72abffd624eea4de7640769eb8918b4 --video +xvfb-run -a -s '-screen 0 1280x720x24 +extension GLX' \ + python "$EVIDENCE/suite.py" run reproduced_after "$CHECKOUT_DIR/after" --revision 1218c472c8017fd7ec37b8f05f3ca71360e611d7 --video +python "$EVIDENCE/suite.py" compare reproduced_before reproduced_after +python "$EVIDENCE/pair_qa.py" reproduced_before reproduced_after +``` + +The final audit writes one qa.json per episode and a paired-complete.json summary. It decodes every presented frame and matches its timestamp exactly to that trace index divided by 20. The comparison validates the frame counts, seed order, physical asset hashes, and identical initial poses and joint positions for every pair. Candidate-only development runs and headless diagnostics have separate output names. Each published video and its data row come from the same first attempt. diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/README.md b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6fc84dd2e21b77226321850f3ddf8e3763cc646b --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/README.md @@ -0,0 +1,22 @@ +# ToolHang first-attempt comparison + +The baseline and revised Panda controllers each ran one native-camera episode on the same six reset seeds. The simulator returned Gym success on **2/6** baseline and **5/6** revised runs. A supported, released wrench was still hanging after the 4.5-second open-gripper hold on **1/6** baseline and **5/6** revised runs meeting all Gym, expert release, physical retreat and stability checks. + +A seed counts once, including a failed attempt. The two revisions use identical robot and scene assets, control rate, camera, evaluation procedure, and per-seed initial object and joint poses. The [protocol](PROTOCOL.md) lists the scoring and commands. [Paired results](comparison.json) · [Frame-by-frame and release audit](paired-complete.json) · [Baseline summary](before_camera/summary.json) · [Revised summary](after_camera/summary.json) + +| Reset seed | Baseline video | Revised video | Baseline Gym / stable | Revised Gym / stable | +| ---: | --- | --- | --- | --- | +| 0 | [Watch](before_camera/seed-0/episode.mp4) | [Watch](after_camera/seed-0/episode.mp4) | yes / no | yes / yes | +| 2 | [Watch](before_camera/seed-2/episode.mp4) | [Watch](after_camera/seed-2/episode.mp4) | yes / yes | yes / yes | +| 7 | [Watch](before_camera/seed-7/episode.mp4) | [Watch](after_camera/seed-7/episode.mp4) | no / no | yes / yes | +| 13 | [Watch](before_camera/seed-13/episode.mp4) | [Watch](after_camera/seed-13/episode.mp4) | no / no | no / no | +| 22 | [Watch](before_camera/seed-22/episode.mp4) | [Watch](after_camera/seed-22/episode.mp4) | no / no | yes / yes | +| 42 | [Watch](before_camera/seed-42/episode.mp4) | [Watch](after_camera/seed-42/episode.mp4) | no / no | yes / yes | + +Each video contains one frame per trace sample, starting with the reset pose, captured by the native overview camera during simulation. The adjacent `report.json` contains terminal and stability metrics. The compressed `actions-states.jsonl.gz` contains indexed robot actions, joint states, object poses, gripper state and scoring fields. A failed run can end before the stability hold. + +[Baseline controller](https://github.com/DexForce/EmbodiChain/tree/3157569ef72abffd624eea4de7640769eb8918b4) · [Revised controller](https://github.com/DexForce/EmbodiChain/tree/1218c472c8017fd7ec37b8f05f3ca71360e611d7) + +The [separate seed-7 CLI diagnosis](cli_diagnosis/README.md) documents the earlier collector failure and labels the two videos generated by re-rendering saved poses. The standard CLI performs its own preparatory and retry resets, whereas the paired experiment starts each seed with one explicit reset. + +The [revised seed-7 CLI trace](fixed_cli/README.md) compares the same first-attempt reset before and after the controller change. The [unclamped baseline pose replays](cli_exact_replay/README.md) render the original two measured traces while preserving finger positions that transiently exceed nominal joint limits. The earlier baseline visualizations applied those limits. diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..d2a627e0598a6b1285225e3f43e6096560126c97 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c54d8a93e8f4f9e5506227e67874734a015de5eb438c4b2f64eb6c4d50939321 +size 445244 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..18a7765e4baae8cd67c5ce64b73b7bb64526e7cf --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df204cd44a1787d5d00d5ba3a5610b5a3efe070bd75acc54bfed1a389630a0f0 +size 1295750 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..d8434440e0acbaddd5180b0cd67d29adb2ac31c8 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 0, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1087, + "first_success_index": 1087, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1087, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07119589546132751, + "max_commanded_arm_joint_change_after_open_rad": 0.15661001205444336, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999752551317215 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1227, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "df204cd44a1787d5d00d5ba3a5610b5a3efe070bd75acc54bfed1a389630a0f0" + }, + "path": "after_camera/seed-0" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/report.json new file mode 100644 index 0000000000000000000000000000000000000000..92d2c3fc640daa68a2db2da0ea15d7f775fca3a8 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-0/report.json @@ -0,0 +1,176 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 0, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 263, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 263, + "end": 784, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 784, + "end": 1087, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028739750385284424, + -0.22089140117168427, + 0.8137000203132629, + -0.21736229956150055, + -0.6728696823120117, + 0.6728696823120117, + 0.21736226975917816 + ], + "tool": [ + 0.02038589119911194, + -0.1837129145860672, + 0.8159999847412109, + 4.210042447994056e-08, + -5.290753790632152e-08, + 0.7664825320243835, + -0.6422653198242188 + ] + }, + "initial_qpos": [ + 0.0031562517397105694, + 0.19144806265830994, + 0.011086439713835716, + -2.5994324684143066, + 0.0071164509281516075, + 2.9361624717712402, + 0.7927291989326477, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 1087, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 1087, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0015500405570492148, + "success.hanging.along_fraction": 0.0617055706679821, + "failure.fallen.min_height": 0.9458206295967102 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1136, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.006027118768543005, + "success.hanging.along_fraction": 0.3082737326622009, + "failure.fallen.min_height": 0.9302858114242554 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.12478740513324738, + 0.043775204569101334, + 0.9440932273864746, + 0.007334562949836254, + -0.01239604689180851, + 0.002539733424782753, + 0.999893069267273 + ], + "tool": [ + -0.1447353959083557, + 0.0432773157954216, + 0.9302858114242554, + -0.7123798727989197, + -0.008670915849506855, + 0.7017395496368408, + -0.001194298267364502 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1227 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..f90c239186bcb170b85d110e649493f43d979907 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab3896c8835c6e8bbc14286e9ab2f2e56d99873161134d0fd94e897f390dfc56 +size 287525 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..b88ba0799493894c429befd9f248039dd7e750f6 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23f021851e3f01a270155824e614c89f4e108099bd1a1b88f7def37cbdfbd00d +size 829568 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..ec0efc129f8f903767675ed3f728c703fccfc20e --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/qa.json @@ -0,0 +1,28 @@ +{ + "seed": 13, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": false, + "gym_steps": 790, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": null, + "expert_retracted": false, + "actual_expert_tcp_retreat_m": 0.0, + "max_commanded_arm_joint_change_after_open_rad": 0.0, + "rest_length": 0, + "rest_final_measured_finger_positions_m": [], + "both_fingers_at_least_39mm": false, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 791, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "23f021851e3f01a270155824e614c89f4e108099bd1a1b88f7def37cbdfbd00d" + }, + "path": "after_camera/seed-13" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/report.json new file mode 100644 index 0000000000000000000000000000000000000000..a749b5a122b5a94a1f32ea8c198793bbd82fc16a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-13/report.json @@ -0,0 +1,125 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 13, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": false, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 262, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 262, + "end": 790, + "success": false, + "reason": "segment_validation_failed" + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028077855706214905, + -0.23494262993335724, + 0.8137000203132629, + -0.2395428717136383, + -0.6652963757514954, + 0.6652963757514954, + 0.2395428717136383 + ], + "tool": [ + 0.04882188141345978, + -0.21792858839035034, + 0.8159999847412109, + 3.571208040398233e-08, + -6.3897314106498015e-09, + 0.8069742321968079, + -0.5905868411064148 + ] + }, + "initial_qpos": [ + 0.015443391166627407, + 0.20973527431488037, + -0.009939380921423435, + -2.62463641166687, + -0.004417090211063623, + 2.933100700378418, + 0.7657503485679626, + 0.03999999910593033, + 0.03999999910593033 + ], + "official_success": false, + "official_terminated": false, + "official_truncated": false, + "terminal_reason": "segment_validation_failed", + "gym_steps": 790, + "terminal_metrics": { + "success.hanging.frame_assembled": false, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.3836731016635895, + "success.hanging.along_fraction": -0.604308009147644, + "failure.fallen.min_height": 0.8149675726890564 + }, + "final_gym_transition": { + "reward": 0.0, + "terminated": false, + "truncated": false, + "success": false + }, + "recorded_samples": 791 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..cf1ff61c6b99b9993c1de662445f0161045cf0d8 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ee0199cd68458d54e2a5533825386b5faf17081a66f273dd3ee7b63717b81d8 +size 443002 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..fbfd2febae34da1f9c9b4e51a412701e639e29fb --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:123343f10246a0b6380c5b9c69d14e335721d2fa6967dba8a8b63d0c75418dfd +size 1283454 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..1b1f695bbcc8a461dafa034d99ab3a30260d63e3 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 2, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1084, + "first_success_index": 1084, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1083, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07124889682803678, + "max_commanded_arm_joint_change_after_open_rad": 0.15194129943847656, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999753296375275 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1223, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "123343f10246a0b6380c5b9c69d14e335721d2fa6967dba8a8b63d0c75418dfd" + }, + "path": "after_camera/seed-2" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/report.json new file mode 100644 index 0000000000000000000000000000000000000000..65245d950e7c6bea4723dff96281ceac0bf937a5 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-2/report.json @@ -0,0 +1,176 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 2, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 271, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 271, + "end": 791, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 791, + "end": 1084, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.043800581246614456, + -0.2414688616991043, + 0.8137000203132629, + -0.2119382917881012, + -0.6745977401733398, + 0.6745977401733398, + 0.2119382917881012 + ], + "tool": [ + 0.04354419559240341, + -0.1901421993970871, + 0.8159999847412109, + 4.818289767172246e-08, + -3.38377326158934e-08, + 0.8260665535926819, + -0.5635726451873779 + ] + }, + "initial_qpos": [ + 0.003969201818108559, + 0.1853310465812683, + 0.0014599061105400324, + -2.6023402214050293, + 0.01780911162495613, + 2.945992946624756, + 0.7944493889808655, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 1084, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 1084, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.003202425315976143, + "success.hanging.along_fraction": 0.07860218733549118, + "failure.fallen.min_height": 0.945891261100769 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1132, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.006028070114552975, + "success.hanging.along_fraction": 0.13683590292930603, + "failure.fallen.min_height": 0.9298805594444275 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08125723898410797, + 0.08982016891241074, + 0.9440854787826538, + 0.005415980704128742, + 0.012360375374555588, + 0.7056361436843872, + -0.7084459066390991 + ], + "tool": [ + -0.08171045780181885, + 0.1253354251384735, + 0.9298805594444275, + 0.5088791251182556, + -0.4991115629673004, + -0.49724462628364563, + -0.4946489930152893 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1223 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..36e879e372d09862ef367def1d6e0c7c283dc32f --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c979174d902d563d88e7a9e64d6150c99e77af0dbf2d92821bcc1389bd9d1b2 +size 433632 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..4b1617b383fb1e5e6acc0bf89a449fefa9607066 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b61b6a0594af624e42ddc86130f389f534ea5c83e7943cb5c9379b7573c8238 +size 1253261 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..441da3938c3dadaa4b292ed8d3716b2be2777f91 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 22, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1057, + "first_success_index": 1057, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1057, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07081359735898511, + "max_commanded_arm_joint_change_after_open_rad": 0.1637362241744995, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.039997510612010956 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1197, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "7b61b6a0594af624e42ddc86130f389f534ea5c83e7943cb5c9379b7573c8238" + }, + "path": "after_camera/seed-22" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/report.json new file mode 100644 index 0000000000000000000000000000000000000000..52c925b88b32fead31e213c8cd1784c86863032e --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-22/report.json @@ -0,0 +1,176 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 22, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 280, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 280, + "end": 747, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 747, + "end": 1057, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.05502279847860336, + -0.2585355043411255, + 0.8137000203132629, + -0.1964520364999771, + -0.6792691349983215, + 0.6792691349983215, + 0.1964520364999771 + ], + "tool": [ + 0.04437527433037758, + -0.1958806961774826, + 0.8159999847412109, + 3.7403765418275725e-08, + -2.4168471668417624e-08, + 0.7895520329475403, + -0.6136837005615234 + ] + }, + "initial_qpos": [ + 0.0056626079604029655, + 0.1886245310306549, + 0.00026655435794964433, + -2.637094020843506, + 0.006300268229097128, + 2.9374451637268066, + 0.7927078008651733, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 1057, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 1057, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0015450256178155541, + "success.hanging.along_fraction": 0.06191413849592209, + "failure.fallen.min_height": 0.9457427263259888 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1106, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.006024648901075125, + "success.hanging.along_fraction": 0.11862469464540482, + "failure.fallen.min_height": 0.9298257231712341 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.12482769787311554, + 0.04372609034180641, + 0.9440825581550598, + 0.004714015405625105, + -0.012606616131961346, + 0.0021194806322455406, + 0.9999072551727295 + ], + "tool": [ + -0.16282019019126892, + 0.04329688102006912, + 0.9298257231712341, + -0.7097148895263672, + -0.0038505825214087963, + 0.7044780254364014, + 0.0008672953117638826 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1197 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..42c28f77607d5049bc600f37a94bd682ce3ead0a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fd4b7bede49420dccb8fb3f3945235b60cb04e4dc6fbe578ca286b43ffe7022 +size 440545 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..0d18d6f9c57d23a2096e5d470009463ecc587fae --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:307a8bc3c11b91d92e3d1d2b429a5d6f32ef6fb0da2d6ce2ddd5eb1f95625969 +size 1279526 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..45c0e11980aa3f36dc23560435ee0586e47d2d11 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 42, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1080, + "first_success_index": 1080, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1080, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07116291470512906, + "max_commanded_arm_joint_change_after_open_rad": 0.15568959712982178, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999752178788185 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1220, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "307a8bc3c11b91d92e3d1d2b429a5d6f32ef6fb0da2d6ce2ddd5eb1f95625969" + }, + "path": "after_camera/seed-42" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/report.json new file mode 100644 index 0000000000000000000000000000000000000000..0c180414ea8c7c9c99032081e18295e4d85b4999 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-42/report.json @@ -0,0 +1,176 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 42, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 266, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 266, + "end": 787, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 787, + "end": 1080, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028351977467536926, + -0.24778802692890167, + 0.8137000203132629, + -0.2208051234483719, + -0.6717478036880493, + 0.6717478036880493, + 0.2208050936460495 + ], + "tool": [ + 0.0370190367102623, + -0.20350421965122223, + 0.8159999847412109, + 2.7328216134492322e-08, + -3.6575933393123705e-08, + 0.8596130609512329, + -0.5109458565711975 + ] + }, + "initial_qpos": [ + -0.0008728873799555004, + 0.21210220456123352, + 0.00024396418302785605, + -2.6244280338287354, + -0.002088935347273946, + 2.9412500858306885, + 0.7682725787162781, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 1080, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 1080, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.00168584322091192, + "success.hanging.along_fraction": 0.05946679413318634, + "failure.fallen.min_height": 0.9459401369094849 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1129, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.006025643553584814, + "success.hanging.along_fraction": 0.3171071708202362, + "failure.fallen.min_height": 0.9303120374679565 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03521518036723137, + 0.04622182995080948, + 0.9440938830375671, + 0.012384123168885708, + 0.007488597184419632, + 0.9998920559883118, + -0.0025742915458977222 + ], + "tool": [ + -0.016405627131462097, + 0.046574030071496964, + 0.9303120374679565, + -0.009349054656922817, + -0.7134214639663696, + 0.016992423683404922, + -0.7004668116569519 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1220 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..8bee87203ad2e02a54d8c053cb38b05843c0f2ed --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a44742ea14d8da64c35f1befc23298b382b250b52a6c05bdf8ebf3962e524d69 +size 440369 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..1cfe74deed2b7a3e7229c7976052dd08bd89baee --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3d169f270dd6a372d38935a643d1723337c0577f0ded759219e437b773eb700 +size 1273133 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..333a5a41eea9798255b850083a4e09d2ada50432 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 7, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1076, + "first_success_index": 1076, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1076, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07107669585393515, + "max_commanded_arm_joint_change_after_open_rad": 0.17355436086654663, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999753296375275 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1217, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "e3d169f270dd6a372d38935a643d1723337c0577f0ded759219e437b773eb700" + }, + "path": "after_camera/seed-7" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/report.json new file mode 100644 index 0000000000000000000000000000000000000000..3d0bf8fa7af608ecc9fa0ea0dc67389295256e85 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/seed-7/report.json @@ -0,0 +1,176 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 7, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 266, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 266, + "end": 779, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 779, + "end": 1076, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03857848048210144, + -0.24309585988521576, + 0.8137000203132629, + -0.22472165524959564, + -0.6704477667808533, + 0.6704477667808533, + 0.22472162544727325 + ], + "tool": [ + 0.047434672713279724, + -0.20603875815868378, + 0.8159999847412109, + 8.515516292106895e-09, + -3.057569131215132e-08, + 0.7868956327438354, + -0.6170861124992371 + ] + }, + "initial_qpos": [ + 0.007989874109625816, + 0.18509387969970703, + 0.0018938254797831178, + -2.6289446353912354, + -0.0011852586176246405, + 2.9553346633911133, + 0.7964983582496643, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 1076, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 1076, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.001656741020269692, + "success.hanging.along_fraction": 0.06053131818771362, + "failure.fallen.min_height": 0.9459603428840637 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1126, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.006023232825100422, + "success.hanging.along_fraction": 0.11941603571176529, + "failure.fallen.min_height": 0.929807186126709 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08129347860813141, + 0.08982155472040176, + 0.9440643191337585, + 0.0024292876478284597, + 0.015389623120427132, + 0.7041268348693848, + -0.7099032998085022 + ], + "tool": [ + -0.08203673362731934, + 0.12737056612968445, + 0.929807186126709, + 0.5067105293273926, + -0.49890390038490295, + -0.49468091130256653, + -0.49963003396987915 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1217 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/summary.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/summary.json new file mode 100644 index 0000000000000000000000000000000000000000..68a6763958f8589b5e67b3ba2929f1d5426ea83a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/after_camera/summary.json @@ -0,0 +1,412 @@ +{ + "git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seeds": [ + 0, + 2, + 7, + 13, + 22, + 42 + ], + "n": 6, + "successes": 5, + "stable_successes": 5, + "episodes": [ + { + "seed": 0, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 1087, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028739750385284424, + -0.22089140117168427, + 0.8137000203132629, + -0.21736229956150055, + -0.6728696823120117, + 0.6728696823120117, + 0.21736226975917816 + ], + "tool": [ + 0.02038589119911194, + -0.1837129145860672, + 0.8159999847412109, + 4.210042447994056e-08, + -5.290753790632152e-08, + 0.7664825320243835, + -0.6422653198242188 + ] + }, + "qpos": [ + 0.0031562517397105694, + 0.19144806265830994, + 0.011086439713835716, + -2.5994324684143066, + 0.0071164509281516075, + 2.9361624717712402, + 0.7927291989326477, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 2, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 1084, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.043800581246614456, + -0.2414688616991043, + 0.8137000203132629, + -0.2119382917881012, + -0.6745977401733398, + 0.6745977401733398, + 0.2119382917881012 + ], + "tool": [ + 0.04354419559240341, + -0.1901421993970871, + 0.8159999847412109, + 4.818289767172246e-08, + -3.38377326158934e-08, + 0.8260665535926819, + -0.5635726451873779 + ] + }, + "qpos": [ + 0.003969201818108559, + 0.1853310465812683, + 0.0014599061105400324, + -2.6023402214050293, + 0.01780911162495613, + 2.945992946624756, + 0.7944493889808655, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 7, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 1076, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03857848048210144, + -0.24309585988521576, + 0.8137000203132629, + -0.22472165524959564, + -0.6704477667808533, + 0.6704477667808533, + 0.22472162544727325 + ], + "tool": [ + 0.047434672713279724, + -0.20603875815868378, + 0.8159999847412109, + 8.515516292106895e-09, + -3.057569131215132e-08, + 0.7868956327438354, + -0.6170861124992371 + ] + }, + "qpos": [ + 0.007989874109625816, + 0.18509387969970703, + 0.0018938254797831178, + -2.6289446353912354, + -0.0011852586176246405, + 2.9553346633911133, + 0.7964983582496643, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 13, + "gym_success": false, + "stable_4_5s": false, + "episode_steps": 790, + "official_success": false, + "rest_all_four_steps": null, + "rest_geometry_steps": null, + "rest_steps": 0, + "terminal_reason": "segment_validation_failed", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028077855706214905, + -0.23494262993335724, + 0.8137000203132629, + -0.2395428717136383, + -0.6652963757514954, + 0.6652963757514954, + 0.2395428717136383 + ], + "tool": [ + 0.04882188141345978, + -0.21792858839035034, + 0.8159999847412109, + 3.571208040398233e-08, + -6.3897314106498015e-09, + 0.8069742321968079, + -0.5905868411064148 + ] + }, + "qpos": [ + 0.015443391166627407, + 0.20973527431488037, + -0.009939380921423435, + -2.62463641166687, + -0.004417090211063623, + 2.933100700378418, + 0.7657503485679626, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 22, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 1057, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.05502279847860336, + -0.2585355043411255, + 0.8137000203132629, + -0.1964520364999771, + -0.6792691349983215, + 0.6792691349983215, + 0.1964520364999771 + ], + "tool": [ + 0.04437527433037758, + -0.1958806961774826, + 0.8159999847412109, + 3.7403765418275725e-08, + -2.4168471668417624e-08, + 0.7895520329475403, + -0.6136837005615234 + ] + }, + "qpos": [ + 0.0056626079604029655, + 0.1886245310306549, + 0.00026655435794964433, + -2.637094020843506, + 0.006300268229097128, + 2.9374451637268066, + 0.7927078008651733, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 42, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 1080, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028351977467536926, + -0.24778802692890167, + 0.8137000203132629, + -0.2208051234483719, + -0.6717478036880493, + 0.6717478036880493, + 0.2208050936460495 + ], + "tool": [ + 0.0370190367102623, + -0.20350421965122223, + 0.8159999847412109, + 2.7328216134492322e-08, + -3.6575933393123705e-08, + 0.8596130609512329, + -0.5109458565711975 + ] + }, + "qpos": [ + -0.0008728873799555004, + 0.21210220456123352, + 0.00024396418302785605, + -2.6244280338287354, + -0.002088935347273946, + 2.9412500858306885, + 0.7682725787162781, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + } + ] +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..fb4767f30f8e6b523ee53d5731d6e5ae28b09262 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:003264ef8fe3685e750878688cab3602a73630012ed15a08dfb99b671de9fe94 +size 398187 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..51f72e5633dc4ee1526641fd43529f19bdd5301e --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2045b6be0f2d1ccc5ec9087ea6707c660053253d0269c117fac7f91c51e3bcf7 +size 1185924 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..8bffd34c19204dda3f528046fdc9b91c8cdb105e --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 0, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": true, + "gym_steps": 979, + "first_success_index": 979, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 977, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06181029448532237, + "max_commanded_arm_joint_change_after_open_rad": 0.25372910499572754, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999993950128555, + 0.03999992460012436 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1116, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "2045b6be0f2d1ccc5ec9087ea6707c660053253d0269c117fac7f91c51e3bcf7" + }, + "path": "before_camera/seed-0" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/report.json new file mode 100644 index 0000000000000000000000000000000000000000..242c42a9809037d077e8b3ab02a98492c444a66a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-0/report.json @@ -0,0 +1,176 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 0, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 263, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 263, + "end": 733, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 733, + "end": 979, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028739750385284424, + -0.22089140117168427, + 0.8137000203132629, + -0.21736229956150055, + -0.6728696823120117, + 0.6728696823120117, + 0.21736226975917816 + ], + "tool": [ + 0.02038589119911194, + -0.1837129145860672, + 0.8159999847412109, + 4.210042447994056e-08, + -5.290753790632152e-08, + 0.7664825320243835, + -0.6422653198242188 + ] + }, + "initial_qpos": [ + 0.0031562517397105694, + 0.19144806265830994, + 0.011086439713835716, + -2.5994324684143066, + 0.0071164509281516075, + 2.9361624717712402, + 0.7927291989326477, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 979, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 979, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0034661544486880302, + "success.hanging.along_fraction": 0.06609669327735901, + "failure.fallen.min_height": 0.9418129920959473 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1025, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": false, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.00042643226333893836, + "success.hanging.along_fraction": 0.1735193431377411, + "failure.fallen.min_height": 0.9459206461906433 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.046307165175676346, + 0.04730034992098808, + 0.9477903842926025, + -0.031001664698123932, + 0.009762449190020561, + 0.9994646310806274, + -0.003760092193260789 + ], + "tool": [ + -0.0470658615231514, + 0.04733474552631378, + 0.9459206461906433, + 0.009056681767106056, + -0.8027923107147217, + 0.006422668229788542, + -0.5961554050445557 + ] + }, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "recorded_samples": 1116 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..53b545d3831840f70fbaf5fea1525b30675f4d62 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:137191a22a9cd622fa8dadfafe6b467fea63f2ceff7cb4fe27065024d45bedb9 +size 415666 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..0b0f8ce95fb874a314136dd9208bfcbe5e615878 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:508eb3b43d9a76d2f466a68ccb0e543d9c2710032465d947d67e615434be4e0b +size 1207870 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..009b5a3d1399fa8eb896e9292e79064e09b8974b --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 13, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1056, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1006, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06174101284763326, + "max_commanded_arm_joint_change_after_open_rad": 0.29125088453292847, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999993950128555, + 0.03999990224838257 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1147, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "508eb3b43d9a76d2f466a68ccb0e543d9c2710032465d947d67e615434be4e0b" + }, + "path": "before_camera/seed-13" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/report.json new file mode 100644 index 0000000000000000000000000000000000000000..9e5e67b8d496a4e5fe95cf698d9fd41d2fa7cd0a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-13/report.json @@ -0,0 +1,175 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 13, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": false, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 262, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 262, + "end": 752, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 752, + "end": 1056, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028077855706214905, + -0.23494262993335724, + 0.8137000203132629, + -0.2395428717136383, + -0.6652963757514954, + 0.6652963757514954, + 0.2395428717136383 + ], + "tool": [ + 0.04882188141345978, + -0.21792858839035034, + 0.8159999847412109, + 3.571208040398233e-08, + -6.3897314106498015e-09, + 0.8069742321968079, + -0.5905868411064148 + ] + }, + "initial_qpos": [ + 0.015443391166627407, + 0.20973527431488037, + -0.009939380921423435, + -2.62463641166687, + -0.004417090211063623, + 2.933100700378418, + 0.7657503485679626, + 0.03999999910593033, + 0.03999999910593033 + ], + "official_success": false, + "official_terminated": false, + "official_truncated": false, + "terminal_reason": "task_incomplete", + "gym_steps": 1056, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.23915760219097137, + "success.hanging.along_fraction": 1.021641492843628, + "failure.fallen.min_height": 0.8254387378692627 + }, + "final_gym_transition": { + "reward": 0.0, + "terminated": false, + "truncated": false, + "success": false + }, + "withdrawal_completed_step": 1056, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.23932933807373047, + "success.hanging.along_fraction": 1.1674450635910034, + "failure.fallen.min_height": 0.8251985907554626 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03529223054647446, + 0.0439252108335495, + 0.9445808529853821, + 0.009207195602357388, + -0.005715944338589907, + 0.999941349029541, + 8.941168925957754e-05 + ], + "tool": [ + -0.013278363272547722, + -0.05266643315553665, + 0.8251985907554626, + -0.6974419355392456, + -0.2053714394569397, + -0.11738067865371704, + -0.6764755845069885 + ] + }, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "recorded_samples": 1147 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..06f50fc87b2847e10bb5f8c1b56fd9bd9abbe91d --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cabf885c81b2aa1321ace4eda1aaa7854bbde102a54235cd67c431d427a8dcfa +size 395395 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..1e9afbfa8526b8a13b2aa4ffc2b2aefbbb672c30 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4afac52bf557ef6732a0fd98cbc1123fcb3c1cf43c0f22780f4b6ee7ccf5dd33 +size 1169194 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..113e536006481895bba6552a873bea5ce9b54c37 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 2, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": true, + "gym_steps": 977, + "first_success_index": 977, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 975, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06401699465709591, + "max_commanded_arm_joint_change_after_open_rad": 0.1533564329147339, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1110, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "4afac52bf557ef6732a0fd98cbc1123fcb3c1cf43c0f22780f4b6ee7ccf5dd33" + }, + "path": "before_camera/seed-2" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/report.json new file mode 100644 index 0000000000000000000000000000000000000000..c7ce2c5e27f0fbd6e733c8e3ca9d5cd55a135a16 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-2/report.json @@ -0,0 +1,176 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 2, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": true, + "stable_at_4_5s": true, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 271, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 271, + "end": 741, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 741, + "end": 977, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.043800581246614456, + -0.2414688616991043, + 0.8137000203132629, + -0.2119382917881012, + -0.6745977401733398, + 0.6745977401733398, + 0.2119382917881012 + ], + "tool": [ + 0.04354419559240341, + -0.1901421993970871, + 0.8159999847412109, + 4.818289767172246e-08, + -3.38377326158934e-08, + 0.8260665535926819, + -0.5635726451873779 + ] + }, + "initial_qpos": [ + 0.003969201818108559, + 0.1853310465812683, + 0.0014599061105400324, + -2.6023402214050293, + 0.01780911162495613, + 2.945992946624756, + 0.7944493889808655, + 0.03999999910593033, + 0.03999999910593033 + ], + "first_gym_success_step": 977, + "official_success": true, + "official_terminated": true, + "official_truncated": false, + "terminal_reason": "success", + "gym_steps": 977, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0031027912627905607, + "success.hanging.along_fraction": 0.06384734064340591, + "failure.fallen.min_height": 0.9424694180488586 + }, + "final_gym_transition": { + "reward": 1.0, + "terminated": true, + "truncated": false, + "success": true + }, + "withdrawal_completed_step": 1019, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.004290431272238493, + "success.hanging.along_fraction": 0.2905466556549072, + "failure.fallen.min_height": 0.9441293478012085 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08137307316064835, + 0.004946872126311064, + 0.9464086890220642, + -0.01137268915772438, + -0.006537504494190216, + 0.7045540809631348, + 0.7095291614532471 + ], + "tool": [ + -0.0842735767364502, + 0.011538153514266014, + 0.9441293478012085, + -0.5785341262817383, + -0.5562862753868103, + 0.41365253925323486, + -0.42980852723121643 + ] + }, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "recorded_samples": 1110 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..5772b90ed2818714dfe2ebb0d69d8364058e0546 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1badc308b36b7d28747fd2f51eda143168d52512aebff84dfa348d9f96e31a3 +size 386824 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..259165400264e1b32e4c72548b5c386c8cb14255 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c0735061334121cd6b60e5dfa1211ca91bb74749792ae911c2bc6cc7c0eaa63 +size 1099891 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..b305defb5cc9d3ade0a729caa29dcbf21fce95dd --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 22, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1000, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 951, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.09256522419416956, + "max_commanded_arm_joint_change_after_open_rad": 0.2710152268409729, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999992832541466, + 0.03999986872076988 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1091, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "6c0735061334121cd6b60e5dfa1211ca91bb74749792ae911c2bc6cc7c0eaa63" + }, + "path": "before_camera/seed-22" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/report.json new file mode 100644 index 0000000000000000000000000000000000000000..4bc663db1325b1a17d68174f2970005fbe422ca5 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-22/report.json @@ -0,0 +1,175 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 22, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": false, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 280, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 280, + "end": 716, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 716, + "end": 1000, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.05502279847860336, + -0.2585355043411255, + 0.8137000203132629, + -0.1964520364999771, + -0.6792691349983215, + 0.6792691349983215, + 0.1964520364999771 + ], + "tool": [ + 0.04437527433037758, + -0.1958806961774826, + 0.8159999847412109, + 3.7403765418275725e-08, + -2.4168471668417624e-08, + 0.7895520329475403, + -0.6136837005615234 + ] + }, + "initial_qpos": [ + 0.0056626079604029655, + 0.1886245310306549, + 0.00026655435794964433, + -2.637094020843506, + 0.006300268229097128, + 2.9374451637268066, + 0.7927078008651733, + 0.03999999910593033, + 0.03999999910593033 + ], + "official_success": false, + "official_terminated": false, + "official_truncated": false, + "terminal_reason": "task_incomplete", + "gym_steps": 1000, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.2061101645231247, + "success.hanging.along_fraction": 1.050649881362915, + "failure.fallen.min_height": 0.826239824295044 + }, + "final_gym_transition": { + "reward": 0.0, + "terminated": false, + "truncated": false, + "success": false + }, + "withdrawal_completed_step": 1000, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.206114262342453, + "success.hanging.along_fraction": 1.0455085039138794, + "failure.fallen.min_height": 0.8262386918067932 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08106532692909241, + 0.00027118143043480814, + 0.9446390271186829, + 0.0017951937625184655, + -0.010318773798644543, + 0.7070041298866272, + 0.7071318626403809 + ], + "tool": [ + -0.12066348642110825, + -0.042423538863658905, + 0.8262386918067932, + -0.46632859110832214, + 0.5308785438537598, + 0.5363838076591492, + -0.46151724457740784 + ] + }, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "recorded_samples": 1091 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..47bb9764d43678a94113dfdc6d5108ff143a19cb --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8088b0a7d1dfa521d3e4f1d8c549819789aa289964d13e306521abe66788e802 +size 385533 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..406d10e40fb76c7f8fc7da22db57629d8839d50d --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca0a7e86750becccd64087eea8c29804ec3a2731433dd46e6d4db4dee044d6f9 +size 1139942 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..dd90fe918ad4261942676edeee7da88a9af7c7c3 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 42, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 999, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 956, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06385310168397312, + "max_commanded_arm_joint_change_after_open_rad": 0.13327908515930176, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1090, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "ca0a7e86750becccd64087eea8c29804ec3a2731433dd46e6d4db4dee044d6f9" + }, + "path": "before_camera/seed-42" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/report.json new file mode 100644 index 0000000000000000000000000000000000000000..05d8f49a348396fa5f1162e94628d9885b9c335d --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-42/report.json @@ -0,0 +1,175 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 42, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": false, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 266, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 266, + "end": 733, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 733, + "end": 999, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028351977467536926, + -0.24778802692890167, + 0.8137000203132629, + -0.2208051234483719, + -0.6717478036880493, + 0.6717478036880493, + 0.2208050936460495 + ], + "tool": [ + 0.0370190367102623, + -0.20350421965122223, + 0.8159999847412109, + 2.7328216134492322e-08, + -3.6575933393123705e-08, + 0.8596130609512329, + -0.5109458565711975 + ] + }, + "initial_qpos": [ + -0.0008728873799555004, + 0.21210220456123352, + 0.00024396418302785605, + -2.6244280338287354, + -0.002088935347273946, + 2.9412500858306885, + 0.7682725787162781, + 0.03999999910593033, + 0.03999999910593033 + ], + "official_success": false, + "official_terminated": false, + "official_truncated": false, + "terminal_reason": "task_incomplete", + "gym_steps": 999, + "terminal_metrics": { + "success.hanging.frame_assembled": false, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.18128085136413574, + "success.hanging.along_fraction": 0.6046701073646545, + "failure.fallen.min_height": 0.8229492902755737 + }, + "final_gym_transition": { + "reward": 0.0, + "terminated": false, + "truncated": false, + "success": false + }, + "withdrawal_completed_step": 999, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": false, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.1813657134771347, + "success.hanging.along_fraction": 0.5849207043647766, + "failure.fallen.min_height": 0.8226684927940369 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08771606534719467, + -0.02737894468009472, + 0.9295406341552734, + 0.060768794268369675, + -0.1213500052690506, + 0.6997407078742981, + 0.7013874053955078 + ], + "tool": [ + -0.10188193619251251, + -0.08924694359302521, + 0.8226684927940369, + -0.06709073483943939, + -0.06065768003463745, + 0.667258083820343, + -0.7393147349357605 + ] + }, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "recorded_samples": 1090 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/actions-states.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/actions-states.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..aee0d964802605848b3b397df16a91cdd6ef40ad --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/actions-states.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7393b5c87fd4689be5cf63a6f4fc7c93e4fb738760a96b1ef9fe83025c21442c +size 387787 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/episode.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/episode.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..02f96edb2d3c1e46c42a13891f5faa7cbf9c4338 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/episode.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e1f371123b65f655e524ea1a7e202eadd7b1f3b7a16cf3087d99f10d6b4d2bf +size 1152892 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/qa.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/qa.json new file mode 100644 index 0000000000000000000000000000000000000000..6f6ae8e2c54d86a100dd57a52dffe6f7ca20a169 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/qa.json @@ -0,0 +1,31 @@ +{ + "seed": 7, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1013, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 964, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.09286763438281764, + "max_commanded_arm_joint_change_after_open_rad": 0.2709627151489258, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1104, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "5e1f371123b65f655e524ea1a7e202eadd7b1f3b7a16cf3087d99f10d6b4d2bf" + }, + "path": "before_camera/seed-7" +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/report.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/report.json new file mode 100644 index 0000000000000000000000000000000000000000..679563709f5d5c88857ca53431c371c4f9284b2d --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/seed-7/report.json @@ -0,0 +1,175 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seed": 7, + "config": "embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml", + "control_hz": 20, + "n_arena": 1, + "reset_calls": 1, + "retries": 0, + "video": true, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "asset_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "gym_success": false, + "stable_at_4_5s": false, + "segments": [ + { + "name": "lift_frame", + "start": 0, + "end": 266, + "success": true, + "reason": null + }, + { + "name": "seat_frame", + "start": 266, + "end": 734, + "success": true, + "reason": null + }, + { + "name": "hang_wrench", + "start": 734, + "end": 1013, + "success": true, + "reason": null + } + ], + "asset_registry": { + "RobosuiteToolHangV1": { + "revision": "256a4cb8f6b66db4f3e6722847725f6509aae48c", + "archive_md5": "a3a3a263cb3346ef4be78caa88d35da3" + }, + "RobosuiteToolHangPadsV1": { + "revision": "883569d6dc614a7773f6e24d5b9b344e0f499956", + "archive_md5": "2a20da805c21cf43d6cb3094a365015f" + }, + "Franka": { + "archive_md5": "0c613d884798e8b084604381641cc8e1" + }, + "FrankaPandaArm": { + "archive_md5": "f0675b9da98126bc3d4e18c98ef5e06c" + } + }, + "gpu": "NVIDIA GeForce RTX 4080", + "initial_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03857848048210144, + -0.24309585988521576, + 0.8137000203132629, + -0.22472165524959564, + -0.6704477667808533, + 0.6704477667808533, + 0.22472162544727325 + ], + "tool": [ + 0.047434672713279724, + -0.20603875815868378, + 0.8159999847412109, + 8.515516292106895e-09, + -3.057569131215132e-08, + 0.7868956327438354, + -0.6170861124992371 + ] + }, + "initial_qpos": [ + 0.007989874109625816, + 0.18509387969970703, + 0.0018938254797831178, + -2.6289446353912354, + -0.0011852586176246405, + 2.9553346633911133, + 0.7964983582496643, + 0.03999999910593033, + 0.03999999910593033 + ], + "official_success": false, + "official_terminated": false, + "official_truncated": false, + "terminal_reason": "task_incomplete", + "gym_steps": 1013, + "terminal_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.20650164783000946, + "success.hanging.along_fraction": 1.0540475845336914, + "failure.fallen.min_height": 0.8262326121330261 + }, + "final_gym_transition": { + "reward": 0.0, + "terminated": false, + "truncated": false, + "success": false + }, + "withdrawal_completed_step": 1013, + "rest_steps": 90, + "rest_end_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": false, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.2065058946609497, + "success.hanging.along_fraction": 1.0488901138305664, + "failure.fallen.min_height": 0.8262314796447754 + }, + "rest_end_poses": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.08103971183300018, + 0.0002396612981101498, + 0.9447247385978699, + 0.0005201126914471388, + -0.010229171253740788, + 0.7070016860961914, + 0.7071377635002136 + ], + "tool": [ + -0.11642587184906006, + -0.04311428591609001, + 0.8262314796447754, + -0.4873087704181671, + 0.5120803713798523, + 0.517404317855835, + -0.48228272795677185 + ] + }, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "recorded_samples": 1104 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/summary.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2712b849b25ed7ae84bf2cb6a7856a0f4feb63b2 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/before_camera/summary.json @@ -0,0 +1,412 @@ +{ + "git": "3157569ef72abffd624eea4de7640769eb8918b4", + "seeds": [ + 0, + 2, + 7, + 13, + 22, + 42 + ], + "n": 6, + "successes": 2, + "stable_successes": 1, + "episodes": [ + { + "seed": 0, + "gym_success": true, + "stable_4_5s": false, + "episode_steps": 979, + "official_success": true, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028739750385284424, + -0.22089140117168427, + 0.8137000203132629, + -0.21736229956150055, + -0.6728696823120117, + 0.6728696823120117, + 0.21736226975917816 + ], + "tool": [ + 0.02038589119911194, + -0.1837129145860672, + 0.8159999847412109, + 4.210042447994056e-08, + -5.290753790632152e-08, + 0.7664825320243835, + -0.6422653198242188 + ] + }, + "qpos": [ + 0.0031562517397105694, + 0.19144806265830994, + 0.011086439713835716, + -2.5994324684143066, + 0.0071164509281516075, + 2.9361624717712402, + 0.7927291989326477, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 2, + "gym_success": true, + "stable_4_5s": true, + "episode_steps": 977, + "official_success": true, + "rest_all_four_steps": 90, + "rest_geometry_steps": 90, + "rest_steps": 90, + "terminal_reason": "success", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.043800581246614456, + -0.2414688616991043, + 0.8137000203132629, + -0.2119382917881012, + -0.6745977401733398, + 0.6745977401733398, + 0.2119382917881012 + ], + "tool": [ + 0.04354419559240341, + -0.1901421993970871, + 0.8159999847412109, + 4.818289767172246e-08, + -3.38377326158934e-08, + 0.8260665535926819, + -0.5635726451873779 + ] + }, + "qpos": [ + 0.003969201818108559, + 0.1853310465812683, + 0.0014599061105400324, + -2.6023402214050293, + 0.01780911162495613, + 2.945992946624756, + 0.7944493889808655, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 7, + "gym_success": false, + "stable_4_5s": false, + "episode_steps": 1013, + "official_success": false, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "rest_steps": 90, + "terminal_reason": "task_incomplete", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.03857848048210144, + -0.24309585988521576, + 0.8137000203132629, + -0.22472165524959564, + -0.6704477667808533, + 0.6704477667808533, + 0.22472162544727325 + ], + "tool": [ + 0.047434672713279724, + -0.20603875815868378, + 0.8159999847412109, + 8.515516292106895e-09, + -3.057569131215132e-08, + 0.7868956327438354, + -0.6170861124992371 + ] + }, + "qpos": [ + 0.007989874109625816, + 0.18509387969970703, + 0.0018938254797831178, + -2.6289446353912354, + -0.0011852586176246405, + 2.9553346633911133, + 0.7964983582496643, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 13, + "gym_success": false, + "stable_4_5s": false, + "episode_steps": 1056, + "official_success": false, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "rest_steps": 90, + "terminal_reason": "task_incomplete", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028077855706214905, + -0.23494262993335724, + 0.8137000203132629, + -0.2395428717136383, + -0.6652963757514954, + 0.6652963757514954, + 0.2395428717136383 + ], + "tool": [ + 0.04882188141345978, + -0.21792858839035034, + 0.8159999847412109, + 3.571208040398233e-08, + -6.3897314106498015e-09, + 0.8069742321968079, + -0.5905868411064148 + ] + }, + "qpos": [ + 0.015443391166627407, + 0.20973527431488037, + -0.009939380921423435, + -2.62463641166687, + -0.004417090211063623, + 2.933100700378418, + 0.7657503485679626, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 22, + "gym_success": false, + "stable_4_5s": false, + "episode_steps": 1000, + "official_success": false, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "rest_steps": 90, + "terminal_reason": "task_incomplete", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.05502279847860336, + -0.2585355043411255, + 0.8137000203132629, + -0.1964520364999771, + -0.6792691349983215, + 0.6792691349983215, + 0.1964520364999771 + ], + "tool": [ + 0.04437527433037758, + -0.1958806961774826, + 0.8159999847412109, + 3.7403765418275725e-08, + -2.4168471668417624e-08, + 0.7895520329475403, + -0.6136837005615234 + ] + }, + "qpos": [ + 0.0056626079604029655, + 0.1886245310306549, + 0.00026655435794964433, + -2.637094020843506, + 0.006300268229097128, + 2.9374451637268066, + 0.7927078008651733, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + }, + { + "seed": 42, + "gym_success": false, + "stable_4_5s": false, + "episode_steps": 999, + "official_success": false, + "rest_all_four_steps": 0, + "rest_geometry_steps": 0, + "rest_steps": 90, + "terminal_reason": "task_incomplete", + "error": null, + "revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "source_sha256": { + "download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip": "7c1505d1418916ea260c41ef9fcfb02b84a4828d3f1bbeb560cca497d272861f", + "download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip": "b1bf5ef0114b55174f3c3932a9d20cf5ef4119fbec6ab42e4c758561a967f77f", + "download/FrankaPandaArm/FrankaV2.zip": "3bf4adfc5ffe6d32a18d2cfe357fcfe787d3539312ffb1b9a4638c91df680768", + "download/Franka/FrankaV4.zip": "e6f64b3c2ec09aae208521e422ea0a605f99b73b3446e5b2a9ccde173a7e5191", + "extract/RobosuiteToolHangPadsV1/hand.urdf": "077ca49a41e0af9f5b5db812fd1ceb45efb21e745895e53f43ba7f9f077078cc", + "extract/RobosuiteToolHangV1/stand.urdf": "6eeb9b46fd6fc8897e0a90bc5adbb546a8701b7a3216694692416b65668fad05", + "extract/RobosuiteToolHangV1/frame.urdf": "5ab2d99306b9755915f513937c90cc2170307eeae1ef041f8ec890f8cb09d9d0", + "extract/RobosuiteToolHangV1/tool.urdf": "dd1666dd546f030313d5203755ee094f33584a900b927591039de6b086651e5c" + }, + "initial": { + "objects": { + "stand": [ + -0.07999999821186066, + 0.0, + 0.8809999823570251, + 0.0, + 0.0, + 0.0, + 1.0 + ], + "frame": [ + -0.028351977467536926, + -0.24778802692890167, + 0.8137000203132629, + -0.2208051234483719, + -0.6717478036880493, + 0.6717478036880493, + 0.2208050936460495 + ], + "tool": [ + 0.0370190367102623, + -0.20350421965122223, + 0.8159999847412109, + 2.7328216134492322e-08, + -3.6575933393123705e-08, + 0.8596130609512329, + -0.5109458565711975 + ] + }, + "qpos": [ + -0.0008728873799555004, + 0.21210220456123352, + 0.00024396418302785605, + -2.6244280338287354, + -0.002088935347273946, + 2.9412500858306885, + 0.7682725787162781, + 0.03999999910593033, + 0.03999999910593033 + ] + }, + "video": true + } + ] +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/README.md b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6aa5ff24a186d7b042e64b647f339bd7f38ea673 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/README.md @@ -0,0 +1,23 @@ +# Unclamped re-rendering of the two baseline CLI attempts + +The native overview camera renders one frame per measured sample from the baseline seed-7 CLI observer, including the reset pose. The replay restores all nine joints with `clamp_qpos=False`, the hook frame and the wrench, and reads back the joints, TCP and three scene actors after each restoration. Physics and task scoring were performed only during the original instrumented rollout. The videos use H.264 at 768 × 512 and 20 fps. [Measured source traces and original diagnosis](../cli_diagnosis/README.md) + +| Instrumented attempt | Source outcome | Control steps | Frames | Evidence | +| --- | --- | ---: | ---: | --- | +| 1 | Incomplete | 1,014 | 1,015 | [Watch](attempt-1.mp4) · [Coordinate readbacks](attempt-1-replay-check.json) | +| 2 | Success | 994 | 995 | [Watch](attempt-2.mp4) · [Coordinate readbacks](attempt-2-replay-check.json) | + +The previous baseline pose videos clipped finger coordinates to the 40 mm nominal travel. During the first attempt, the measured right finger briefly reached 43.143 mm. On the successful retry it reached 40.399 mm. These re-renders retain the measured excursions. The contact probe, recorded joint/object samples and terminal outcomes in the original diagnosis are unchanged. [Measured finger travel](finger-travel.json) + +## Reproduce + +Prepare the two detached worktrees and simulator runtime in the [paired evaluation protocol](../PROTOCOL.md). Let `EVIDENCE` point to the downloaded comparison directory. The renderer reads the published compressed traces or the corresponding plain JSONL. It reports the SHA-256 of the uncompressed trace, the resulting video checksum and the maximum coordinate errors. The native hybrid renderer requires a working GPU and display backend. + +```bash +(cd "$CHECKOUT_DIR/before" && xvfb-run -a -s '-screen 0 1280x720x24 +extension GLX' \ + env PYTHONPATH="$PWD" SDL_VIDEODRIVER=x11 python "$EVIDENCE/cli_exact_replay/render_recorded_poses.py" \ + "$EVIDENCE/cli_diagnosis" "$EVIDENCE/reproduced_cli_before" --trials 1 2) +(cd "$CHECKOUT_DIR/after" && xvfb-run -a -s '-screen 0 1280x720x24 +extension GLX' \ + env PYTHONPATH="$PWD" SDL_VIDEODRIVER=x11 python "$EVIDENCE/cli_exact_replay/render_recorded_poses.py" \ + "$EVIDENCE/fixed_cli" "$EVIDENCE/reproduced_cli_after" --trials 1) +``` diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1-replay-check.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1-replay-check.json new file mode 100644 index 0000000000000000000000000000000000000000..b49ab01f08261da213473e03065569f15b6e06b4 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1-replay-check.json @@ -0,0 +1,29 @@ +{ + "source_commit": "3157569ef72abffd624eea4de7640769eb8918b4", + "frames": 1015, + "source_result": "task_incomplete", + "first_step": 0, + "last_step": 1014, + "video_hz": 20, + "duration_seconds": 50.75, + "max_error": { + "joints": 0.0, + "actor_xyz_m": 4.470348358154297e-07, + "tcp_xyz_m": 0.0, + "quaternion_l2": 1.2411871208523988e-06 + }, + "source_sha256": "05665e73100f8e269661374a08c26592dd4398d5645713d4a72a24936100ee4f", + "mp4_sha256": "c27df871dbe81a58a4261fb9e245b7929481245cdaba013cfe9bde032ad0cea4", + "replay": "One native hybrid-camera frame per measured pose. No interpolation or physics stepping.", + "ffprobe": { + "codec_name": "h264", + "width": 768, + "height": 512, + "pix_fmt": "yuv420p", + "r_frame_rate": "20/1", + "avg_frame_rate": "20/1", + "duration": "50.750000", + "nb_frames": "1015" + }, + "mp4_bytes": 1062650 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..c55d58282450ddf0d372ebaab90f1f83a280cb0a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-1.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c27df871dbe81a58a4261fb9e245b7929481245cdaba013cfe9bde032ad0cea4 +size 1062650 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2-replay-check.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2-replay-check.json new file mode 100644 index 0000000000000000000000000000000000000000..fc6b78cd40c678ff15bd5f6f63b94e3be8c92ac1 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2-replay-check.json @@ -0,0 +1,29 @@ +{ + "source_commit": "3157569ef72abffd624eea4de7640769eb8918b4", + "frames": 995, + "source_result": "success", + "first_step": 0, + "last_step": 994, + "video_hz": 20, + "duration_seconds": 49.75, + "max_error": { + "joints": 0.0, + "actor_xyz_m": 4.470348358154297e-07, + "tcp_xyz_m": 0.0, + "quaternion_l2": 1.190322067352624e-06 + }, + "source_sha256": "cb4943b16a6f6dc8105cfe1bb5d859efd3eeed4c08feec86575080722fc4b51d", + "mp4_sha256": "c5c846a29c1f14243af03f9f92509e49f6208bd385fe41881e25ad88ea3822f6", + "replay": "One native hybrid-camera frame per measured pose. No interpolation or physics stepping.", + "ffprobe": { + "codec_name": "h264", + "width": 768, + "height": 512, + "pix_fmt": "yuv420p", + "r_frame_rate": "20/1", + "avg_frame_rate": "20/1", + "duration": "49.750000", + "nb_frames": "995" + }, + "mp4_bytes": 1025507 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..b32d60507bc3b8164638d02737df8aa3ef30c8f7 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/attempt-2.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5c846a29c1f14243af03f9f92509e49f6208bd385fe41881e25ad88ea3822f6 +size 1025507 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/finger-travel.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/finger-travel.json new file mode 100644 index 0000000000000000000000000000000000000000..ee4babb53ae7d592e626ae53056b7269b82e99f4 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/finger-travel.json @@ -0,0 +1,46 @@ +{ + "attempt-1.jsonl": { + "left": { + "minimum_m": 0.011322651989758015, + "at_min_step": 76, + "maximum_m": 0.04288795217871666, + "at_max_step": 757, + "upper_excursion_mm": 2.8879521787166587, + "lower_excursion_mm": 0, + "above_limit_frames": 26, + "below_limit_frames": 0 + }, + "right": { + "minimum_m": 0.011728587560355663, + "at_min_step": 76, + "maximum_m": 0.04314291104674339, + "at_max_step": 757, + "upper_excursion_mm": 3.142911046743392, + "lower_excursion_mm": 0, + "above_limit_frames": 101, + "below_limit_frames": 0 + } + }, + "attempt-2.jsonl": { + "left": { + "minimum_m": 0.0031550501007586718, + "at_min_step": 629, + "maximum_m": 0.04036355018615723, + "at_max_step": 774, + "upper_excursion_mm": 0.36355018615722573, + "lower_excursion_mm": 0, + "above_limit_frames": 5, + "below_limit_frames": 0 + }, + "right": { + "minimum_m": 0.003363238647580147, + "at_min_step": 629, + "maximum_m": 0.040398601442575455, + "at_max_step": 774, + "upper_excursion_mm": 0.3986014425754539, + "lower_excursion_mm": 0, + "above_limit_frames": 144, + "below_limit_frames": 0 + } + } +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/render_recorded_poses.py b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/render_recorded_poses.py new file mode 100644 index 0000000000000000000000000000000000000000..a619578252cb18549c43d8a88b05e336c2475b2c --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/cli_exact_replay/render_recorded_poses.py @@ -0,0 +1,217 @@ +"""Render each recorded Tool Hang state with the native camera and verify its coordinates. + +Run from the matching EmbodiChain checkout. This programs the renderer from recorded +joints and actor poses. It neither integrates physics nor recomputes success. +""" + +import argparse +import gzip +import hashlib +import json +import subprocess +from pathlib import Path + +import gymnasium as gym +import numpy as np +import torch + +from embodichain.extensions import tasks +from embodichain.lab.gym.utils.gym_utils import config_to_cfg +from embodichain.lab.sim import SimulationManager +from embodichain.lab.sim.sensors.camera import CameraCfg +from embodichain.utils.utility import load_config + + +def quaternion_error(actual, expected): + return float( + min(np.linalg.norm(actual - expected), np.linalg.norm(actual + expected)) + ) + + +def render_attempt(env, camera, folder, output, trial): + name = f"attempt-{trial}" + trace = folder / f"{name}.jsonl" + compressed = folder / f"{name}.jsonl.gz" + if trace.exists(): + trace_bytes = trace.read_bytes() + else: + with gzip.open(compressed, "rb") as stream: + trace_bytes = stream.read() + result = json.loads((folder / f"{name}-result.json").read_text()) + rows = [json.loads(line) for line in trace_bytes.splitlines()] + if len(rows) != result["len"] + 1: + raise ValueError("Trajectory length must include the reset frame.") + + width, height = 768, 512 + output.mkdir(parents=True, exist_ok=True) + temporary = output / f"{name}.partial.mp4" + video = output / f"{name}.mp4" + errors = dict(joints=0.0, actor_xyz_m=0.0, tcp_xyz_m=0.0, quaternion_l2=0.0) + with subprocess.Popen( + [ + "ffmpeg", + "-v", + "error", + "-y", + "-f", + "rawvideo", + "-pix_fmt", + "rgb24", + "-s", + f"{width}x{height}", + "-r", + "20", + "-i", + "-", + "-an", + "-c:v", + "libx264", + "-threads", + "2", + "-preset", + "veryfast", + "-crf", + "20", + "-pix_fmt", + "yuv420p", + str(temporary), + ], + stdin=subprocess.PIPE, + ) as encoder: + try: + for step, row in enumerate(rows): + if row["step"] != step: + raise ValueError(f"Discontinuous trace at step {step}.") + q = torch.tensor([row["joints"]], device=env.device) + # Physics may have pushed an open finger past its nominal limit. + # Preserve the measured position, including that compliant excursion. + env.robot.set_state(qpos=q, clamp_qpos=False) + for uid in ("frame", "tool"): + env.sim.get_articulation(uid).set_local_pose( + torch.tensor([row["poses"][uid]], device=env.device) + ) + env.sim.sync_render_state() + camera.update() + rgb = camera.get_data()["color"][0, ..., :3].contiguous().cpu().numpy() + encoder.stdin.write(rgb.tobytes()) + + actual_joints = env.robot.get_qpos()[0].cpu().numpy() + errors["joints"] = max( + errors["joints"], + float(np.max(np.abs(actual_joints - row["joints"]))), + ) + actual_hand = env.robot.get_link_pose("fr3_hand_tcp")[0].cpu().numpy() + errors["tcp_xyz_m"] = max( + errors["tcp_xyz_m"], + float(np.linalg.norm(actual_hand[:3] - row["hand"][:3])), + ) + errors["quaternion_l2"] = max( + errors["quaternion_l2"], + quaternion_error(actual_hand[3:], row["hand"][3:]), + ) + for uid, expected in row["poses"].items(): + actual = ( + env.sim.get_articulation(uid).get_local_pose()[0].cpu().numpy() + ) + errors["actor_xyz_m"] = max( + errors["actor_xyz_m"], + float(np.linalg.norm(actual[:3] - expected[:3])), + ) + errors["quaternion_l2"] = max( + errors["quaternion_l2"], + quaternion_error(actual[3:], expected[3:]), + ) + finally: + encoder.stdin.close() + if encoder.wait(): + raise RuntimeError(f"ffmpeg failed on {name}.") + if max(errors.values()) > 2e-5: + raise ValueError(f"Pose verification failed for {name}: {errors}") + stream = json.loads( + subprocess.check_output( + [ + "ffprobe", + "-v", + "error", + "-select_streams", + "v:0", + "-show_streams", + "-of", + "json", + str(temporary), + ] + ) + )["streams"][0] + if ( + int(stream["nb_frames"]), + stream["avg_frame_rate"], + stream["codec_name"], + stream["pix_fmt"], + stream["width"], + stream["height"], + ) != (len(rows), "20/1", "h264", "yuv420p", width, height): + raise ValueError(f"Invalid video for {name}.") + temporary.replace(video) + summary = dict( + source_commit=subprocess.check_output( + ["git", "rev-parse", "HEAD"], text=True + ).strip(), + frames=len(rows), + source_result=result["result"], + first_step=0, + last_step=rows[-1]["step"], + video_hz=20, + duration_seconds=float(stream["duration"]), + max_error=errors, + source_sha256=hashlib.sha256(trace_bytes).hexdigest(), + mp4_sha256=hashlib.sha256(video.read_bytes()).hexdigest(), + replay="One native hybrid-camera frame per measured pose. No interpolation or physics stepping.", + ) + (output / f"{name}-replay-check.json").write_text( + json.dumps(summary, indent=2) + "\n" + ) + print("Verified", name, summary, flush=True) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("input", type=Path) + parser.add_argument("output", type=Path) + parser.add_argument("--trials", type=int, nargs="+", default=[1, 2]) + args = parser.parse_args() + path = ( + Path(tasks.__file__).parent + / "configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml" + ) + cfg = config_to_cfg(load_config(str(path)), source_path=path) + cfg.init_rollout_buffer = False + cfg.sim_cfg.render_cfg.renderer = "hybrid" + cfg.sim_cfg.physics_cfg.sync_to_renderer = True + cfg.sensor.append( + CameraCfg( + uid="overview", + width=768, + height=512, + enable_color=True, + enable_depth=False, + near=0.025, + far=3, + intrinsics=(704.0, 704.0, 384.0, 256.0), + extrinsics=CameraCfg.ExtrinsicsCfg( + eye=(0.71, -0.74, 1.47), target=(-0.06, -0.08, 0.96), up=(0, 0, 1) + ), + ) + ) + env = gym.make("RobosuiteToolHangExpert-v1", cfg=cfg).unwrapped + try: + env.reset(seed=7) + camera = env.get_sensor("overview") + for trial in args.trials: + render_attempt(env, camera, args.input, args.output, trial) + finally: + env.close(exit_process=False) + SimulationManager.flush_cleanup_queue() + + +if __name__ == "__main__": + main() diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/comparison.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/comparison.json new file mode 100644 index 0000000000000000000000000000000000000000..13f8ba405d04ba8b558ef0e5ea27802164f24e96 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/comparison.json @@ -0,0 +1,100 @@ +{ + "gym": [ + 2, + 5 + ], + "stable": [ + 1, + 5 + ], + "n": 6, + "pairs": [ + { + "seed": 0, + "gym_before": true, + "gym_after": true, + "stable_before": false, + "stable_after": true, + "raw_endpoint_before": false, + "raw_endpoint_after": true + }, + { + "seed": 2, + "gym_before": true, + "gym_after": true, + "stable_before": true, + "stable_after": true, + "raw_endpoint_before": true, + "raw_endpoint_after": true + }, + { + "seed": 7, + "gym_before": false, + "gym_after": true, + "stable_before": false, + "stable_after": true, + "raw_endpoint_before": false, + "raw_endpoint_after": true + }, + { + "seed": 13, + "gym_before": false, + "gym_after": false, + "stable_before": false, + "stable_after": false, + "raw_endpoint_before": false, + "raw_endpoint_after": false + }, + { + "seed": 22, + "gym_before": false, + "gym_after": true, + "stable_before": false, + "stable_after": true, + "raw_endpoint_before": false, + "raw_endpoint_after": true + }, + { + "seed": 42, + "gym_before": false, + "gym_after": true, + "stable_before": false, + "stable_after": true, + "raw_endpoint_before": false, + "raw_endpoint_after": true + } + ], + "raw_endpoint": [ + 1, + 5 + ], + "qualified_stable": [ + 1, + 5 + ], + "late_only": [ + 0, + 0 + ], + "metric_definitions": { + "stable": "Qualified sustained success: Gym success, a commanded release, at least 20 mm of measured TCP retreat and 0.020 rad commanded joint change, both fingers open to at least 39 mm, and all four task conditions at the end of the 4.5-second hold.", + "raw_endpoint": "Four simultaneous task conditions at the end of the hold.", + "late_only": "Gym failed but the four raw endpoint conditions held at the end of the supplemental hold." + }, + "source_revisions": { + "before_camera": "3157569ef72abffd624eea4de7640769eb8918b4", + "after_camera": "1218c472c8017fd7ec37b8f05f3ca71360e611d7" + }, + "python_dependencies": { + "torch": "2.11.0", + "gymnasium": "1.4.0", + "dexsim-engine": "0.6.0", + "mujoco": "3.15.0", + "mujoco-warp": "3.15.0", + "newton": "1.7.0" + }, + "control_hz": 20, + "stability_hold_frames": 90, + "stability_hold_seconds": 4.5, + "description": "One native-camera first attempt per seed and revision. Group order is before, after. Failed attempts remain in both denominators." +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/evaluate.py b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/evaluate.py new file mode 100644 index 0000000000000000000000000000000000000000..c7da44f8d979d2c97706b624729b36cab6ba0e3b --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/evaluate.py @@ -0,0 +1,180 @@ +"""Evaluate one normal reset and preserve each native action, pose and criterion.""" +import argparse +from dataclasses import replace +import gzip +import hashlib +from importlib.metadata import version +from itertools import islice +import json +import math +from pathlib import Path +import subprocess +import traceback + +import gymnasium as gym +import numpy as np +import torch + +import embodichain +import embodichain.extensions.tasks +from embodichain.data.constants import EMBODICHAIN_DEFAULT_DATA_ROOT +from embodichain.lab.gym.envs import execute_demo_episode +from embodichain.lab.gym.utils.gym_utils import config_to_cfg +from embodichain.lab.sim import SimulationManager +from embodichain.lab.sim.sensors.camera import CameraCfg +from embodichain.utils.utility import load_config + + +def sha(path): + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def revision(root): + return subprocess.check_output(['git', '-C', root, 'rev-parse', 'HEAD'], text=True).strip() + + +def values(value): + return value.detach().cpu().tolist() + + +def physical(condition): + return all(condition['success.hanging.'+key] for key in ('frame_assembled','hole_threaded','ring_bar_contact')) and not condition['success.hanging.hand_tool_contact'] + + +def endpoint(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument('--out',required=True,type=Path) + parser.add_argument('--seed',type=int,required=True) + parser.add_argument('--revision',required=True) + parser.add_argument('--video',action='store_true') + args=parser.parse_args() + root=Path(embodichain.__file__).resolve().parents[1] + assert root==Path.cwd().resolve(), (root,Path.cwd()) + assert revision(root)==args.revision + config=root/'embodichain/extensions/tasks/configs/tasks/manipulation/assembly/tool_hang/task.expert.panda.yaml' + cfg=config_to_cfg(load_config(str(config)),source_path=config) + cfg.init_rollout_buffer=False + if args.video: + cfg.sim_cfg.render_cfg.renderer='hybrid' + cfg.sim_cfg.physics_cfg.sync_to_renderer=True + cfg.sensor.append(CameraCfg(uid='qual_overview',width=768,height=512,enable_color=True,enable_depth=False,near=.025,far=3,intrinsics=(704.,704.,384.,256.),extrinsics=CameraCfg.ExtrinsicsCfg(eye=(.71,-.74,1.47),target=(-.06,-.08,.96),up=(0,0,1)))) + out=args.out + out.mkdir(exist_ok=False,parents=True) + cache=Path(EMBODICHAIN_DEFAULT_DATA_ROOT) + paths=['download/RobosuiteToolHangV1/RobosuiteToolHangV1.zip','download/RobosuiteToolHangPadsV1/RobosuiteToolHangPadsV1.zip','download/FrankaPandaArm/FrankaV2.zip','download/Franka/FrankaV4.zip','extract/RobosuiteToolHangPadsV1/hand.urdf','extract/RobosuiteToolHangV1/stand.urdf','extract/RobosuiteToolHangV1/frame.urdf','extract/RobosuiteToolHangV1/tool.urdf'] + info={'git':args.revision,'seed':args.seed,'config':str(config.relative_to(root)),'control_hz':20,'n_arena':1,'reset_calls':1,'retries':0,'video':args.video,'python_dependencies':{s:version(s) for s in ['torch','gymnasium','dexsim-engine','mujoco','mujoco-warp','newton']},'asset_sha256':{s:sha(cache/s) for s in paths},'gym_success':False,'stable_at_4_5s':False,'segments':[]} + info['asset_registry']={'RobosuiteToolHangV1':{'revision':'256a4cb8f6b66db4f3e6722847725f6509aae48c','archive_md5':'a3a3a263cb3346ef4be78caa88d35da3'},'RobosuiteToolHangPadsV1':{'revision':'883569d6dc614a7773f6e24d5b9b344e0f499956','archive_md5':'2a20da805c21cf43d6cb3094a365015f'},'Franka':{'archive_md5':'0c613d884798e8b084604381641cc8e1'},'FrankaPandaArm':{'archive_md5':'f0675b9da98126bc3d4e18c98ef5e06c'}} + for archive_path in (p for p in paths if p.startswith('download/')): + key=archive_path.split('/')[1] + assert hashlib.md5((cache/archive_path).read_bytes()).hexdigest()==info['asset_registry'][key]['archive_md5'] + info['gpu']=torch.cuda.get_device_name() + env=gym.make('RobosuiteToolHangExpert-v1',cfg=cfg).unwrapped + assert env.num_envs==1 and math.isclose(env.step_dt,.05,rel_tol=1e-6) + env.reset(seed=args.seed) + trace=gzip.open(out/'actions-states.jsonl.gz','wt',compresslevel=2) + encoder=None + if args.video: + encoder=subprocess.Popen(['ffmpeg','-loglevel','error','-y','-f','rawvideo','-pix_fmt','rgb24','-s','768x512','-r','20','-i','-','-an','-c:v','libx264','-preset','veryfast','-crf','20','-pix_fmt','yuv420p',str(out/'episode.mp4')],stdin=subprocess.PIPE) + rows=0 + phase='reset' + segment=None + remaining=None + previous=None + latest=None + + def capture(action=None, transition=None): + nonlocal rows,latest + success,failure,terms=env.compute_task_state() + metrics={k:v.item() for k,v in terms.items()} + row={'index':rows,'sim_elapsed_s':rows/20,'phase':phase,'segment':segment,'action':None,'qpos':values(env.robot.get_qpos()[0]),'tcp':values(env.robot.get_link_pose('fr3_hand_tcp')[0]),'poses':{k:values(env.sim.get_articulation(k).get_local_pose()[0]) for k in ('stand','frame','tool')},'success':success.item(),'failure':failure.item(),'metrics':metrics} + if action is not None: + val=getattr(action,'value',action) + row['action']={k:values(v[0]) for k,v in val.items()} if hasattr(val,'items') else {'raw':values(val[0])} + if transition is not None: + row['gym_transition']=transition + trace.write(json.dumps(row,separators=(',',':'))+'\n') + if encoder is not None: + env.sim.sync_render_state() + camera=env.get_sensor('qual_overview') + camera.update() + pixels=camera.get_data()['color'][0,...,:3].cpu().numpy() + encoder.stdin.write(np.ascontiguousarray(pixels).tobytes()) + if rows % 200 == 0: print('CAPTURED',args.seed,rows,phase,segment,flush=True) + rows+=1 + latest=row + return row + + def segments(): + nonlocal segment,remaining + for item in env.create_demo_segments(): + remaining=iter(item.actions) + segment=item.name + yield replace(item,actions=islice(remaining,None)) + + def completed(result): + info['segments'].append({'name':result.name,'start':result.start_step,'end':result.end_step,'success':result.success,'reason':result.failure_reason}) + + original=env.step + def observed(action,*a,**kw): + nonlocal previous + result=original(action,*a,**kw) + _,reward,done,trunc,details=result + previous=dict(reward=reward.item(),terminated=done.item(),truncated=trunc.item(),success=details['success'].item()) + row=capture(action,previous) + if previous['success'] and previous['terminated'] and 'first_gym_success_step' not in info: + info['first_gym_success_step']=row['index'] + return result + def raw(action): + command=action.value + for key in ('qpos','qvel','qf'): + if key in command: + getattr(env.robot,'set_'+key)(command[key][:,env.active_joint_ids],joint_ids=env.active_joint_ids) + env.sim.update(step=env.cfg.sim_steps_per_control) + env.termination_manager.compute() + return capture(action) + try: + initial=capture() + info['initial_poses']=initial['poses'] + info['initial_qpos']=initial['qpos'] + phase='gym' + env.step=observed + try: + result=execute_demo_episode(env,segments=segments(),on_segment_completed=completed) + info.update(official_success=bool(result.success[0]),official_terminated=bool(result.terminated[0]),official_truncated=bool(result.truncated[0]),terminal_reason=result.terminal_reason) + except Exception as exc: + info['episode_error']=''.join(traceback.format_exception(exc)) + info.update(gym_success='first_gym_success_step' in info,gym_steps=rows-1,terminal_metrics=latest['metrics'],final_gym_transition=previous) + # Only continue a stage that actually reached release. Other first attempts + # stay in the denominator and retain their native failure diagnostics. + if 'episode_error' not in info and segment=='hang_wrench': + from embodichain.extensions.tasks.manipulation.assembly._tool_hang_expert import ToolHangMotion + phase='remaining_release_and_retreat' + env._demo_no_auto_reset=True + for action in remaining: + raw(action) + info['withdrawal_completed_step']=rows-1 + phase='open_gripper_rest' + rest=[] + for action in ToolHangMotion(env).hold(.04,90,target=True): + rest.append(raw(action)) + endpoint=rest[-1] + info.update(stable_at_4_5s=bool(endpoint['success'] and physical(endpoint['metrics'])),rest_steps=len(rest),rest_end_metrics=endpoint['metrics'],rest_end_poses=endpoint['poses'],rest_all_four_steps=sum(physical(x['metrics']) for x in rest),rest_geometry_steps=sum(x['metrics']['success.hanging.frame_assembled'] and x['metrics']['success.hanging.hole_threaded'] and not x['metrics']['success.hanging.hand_tool_contact'] for x in rest)) + print('FIRST_ATTEMPT',args.seed,info['gym_steps'],info['gym_success'],info['stable_at_4_5s'],flush=True) + except Exception as exc: + info['harness_error']=''.join(traceback.format_exception(exc)) + print(info['harness_error'],flush=True) + finally: + info['recorded_samples']=rows + env.step=original + env._demo_no_auto_reset=False + trace.close() + if encoder is not None: + encoder.stdin.close() + if encoder.wait()!=0: info['video_error']='ffmpeg failed' + (out/'report.json').write_text(json.dumps(info,indent=2)+'\n') + env.close(exit_process=False) + SimulationManager.flush_cleanup_queue() + + +if __name__=='__main__': + endpoint() diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/README.md b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/README.md new file mode 100644 index 0000000000000000000000000000000000000000..428a9e65d2d22a0f14c0175f9071050352d862a2 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/README.md @@ -0,0 +1,11 @@ +# Revised controller from the matched seed-7 CLI start + +The standard CLI reached episode success on its first attempt after 1,081 control steps with the revised controller. Its initial stand, wrench, frame, Panda joints and TCP pose exactly match the first instrumented CLI attempt at the baseline revision. The baseline retry started from a different layout. + +From the end of the socket insertion segment through the first contact between the hand and wrench, the revised frame stayed assembled and tilted at most 0.776° from world vertical. The matched baseline frame tipped 93.133° and lost insertion. The successful baseline retry reached 1.890° over its own approach. At the revised terminal step the ring's radial error was 1.527 mm and its axial projection was 0.06218 of the bar length from its free end. The released wrench had contact with the bar. + +The [pose re-rendering of the first attempt](attempt-1.mp4) shows all 1,082 saved poses, starting at reset. The renderer applies the recorded joints and object transforms without advancing physics or recomputing the score. The 20 fps timeline uses one frame per measured sample. + +[Replay coordinate checks](attempt-1-replay-check.json) · [Unclamped renderer and reproduction commands](../cli_exact_replay/README.md) · [Complete state and metric trace](attempt-1.jsonl.gz) · [Episode stages](attempt-1-result.json) · [Matched-reset measurements](matched-reset.json) · [Baseline diagnostic traces](../cli_diagnosis/README.md) + +To reproduce, follow the [CLI diagnosis instructions](../cli_diagnosis/README.md) with a clean checkout at `1218c472c8017fd7ec37b8f05f3ca71360e611d7`, the same `reproduce_pose_trace.py` and an empty directory for `TRACE_OUT`. The real-time first-attempt camera evidence for the prospective six-seed comparison is stored separately in `../after_camera/`. diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-replay-check.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-replay-check.json new file mode 100644 index 0000000000000000000000000000000000000000..5f5263c2bde8e8b4f94ae12f8ca4e25d87ca363a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-replay-check.json @@ -0,0 +1,25 @@ +{ + "frames": 1082, + "first_step": 0, + "last_step": 1081, + "video_hz": 20, + "max_joint_abs_error": 0.0, + "max_actor_xyz_error_m": 4.470348358154297e-07, + "max_tcp_xyz_error_m": 0, + "max_quaternion_l2_error_up_to_sign": 1.2411871208523988e-06, + "asset_checkout": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "trace_sha256": "81af5b6bcc213a1bbcecebbfa31c086d03b0cac8ba3695629431c13e54220854", + "camera": "native hybrid overview; one frame per recorded state, including reset; no physics stepping", + "ffprobe": { + "codec_name": "h264", + "width": 768, + "height": 512, + "pix_fmt": "yuv420p", + "r_frame_rate": "20/1", + "avg_frame_rate": "20/1", + "duration": "54.100000", + "nb_frames": "1082" + }, + "mp4_sha256": "623746d75d351c9ce6d1e000a01de99526fef471612a9ee64445b5afc3b505c5", + "mp4_bytes": 1074189 +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-result.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-result.json new file mode 100644 index 0000000000000000000000000000000000000000..a8c513b82013beb308f2ad461d4a10d7441a60dc --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1-result.json @@ -0,0 +1,25 @@ +{ + "attempt": 1, + "result": "success", + "len": 1081, + "stages": [ + [ + "lift_frame", + 0, + 284, + true + ], + [ + "seat_frame", + 284, + 779, + true + ], + [ + "hang_wrench", + 779, + 1081, + true + ] + ] +} \ No newline at end of file diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.jsonl.gz b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.jsonl.gz new file mode 100644 index 0000000000000000000000000000000000000000..cd843c11552e9236ba94f49547fb884df1bc30ae --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.jsonl.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46c1a1fff8af1da71811e34052403096f8abe0359ce545e270fa16b17d5bb748 +size 285689 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.mp4 b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..2a4389469d7d16e25ee89fcde300028d64f3f10a --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/attempt-1.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:623746d75d351c9ce6d1e000a01de99526fef471612a9ee64445b5afc3b505c5 +size 1074189 diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/matched-reset.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/matched-reset.json new file mode 100644 index 0000000000000000000000000000000000000000..b0b1211b0f28eaec79479f240bb70016b35becb2 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/fixed_cli/matched-reset.json @@ -0,0 +1,60 @@ +{ + "baseline_git": "3157569ef72abffd624eea4de7640769eb8918b4", + "revised_git": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "seed": 7, + "baseline_first_and_revised_first_reset_check": "Exact equality of all stored stand, frame and wrench poses, all nine robot joint positions, and the TCP pose at control step zero.", + "baseline_retry_shares_first_reset": false, + "revised_trace_samples": 1082, + "revised_trace_uncompressed_sha256": "81af5b6bcc213a1bbcecebbfa31c086d03b0cac8ba3695629431c13e54220854", + "phase": "Interval begins at end of seat_frame and ends at first positive native hand_tool_contact, inclusively. Frame tilt is a diagnostic angle, not the task success rule.", + "cli_runs": { + "baseline_first": { + "from_seat_validator_control_step": 733, + "through_first_hand_wrench_contact_control_step": 840, + "all_steps_frame_assembled": false, + "maximum_frame_tilt_from_world_vertical_deg": 93.133, + "final_metrics": { + "success.hanging.frame_assembled": false, + "success.hanging.hole_threaded": false, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": false, + "success.hanging.radial_distance": 0.007337520830333233, + "success.hanging.along_fraction": -0.055183157324790955, + "failure.fallen.min_height": 0.8586255311965942 + } + }, + "baseline_retry": { + "from_seat_validator_control_step": 748, + "through_first_hand_wrench_contact_control_step": 882, + "all_steps_frame_assembled": true, + "maximum_frame_tilt_from_world_vertical_deg": 1.89, + "final_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0032163721043616533, + "success.hanging.along_fraction": 0.06587782502174377, + "failure.fallen.min_height": 0.9417427778244019 + } + }, + "revised_first": { + "from_seat_validator_control_step": 779, + "through_first_hand_wrench_contact_control_step": 876, + "all_steps_frame_assembled": true, + "maximum_frame_tilt_from_world_vertical_deg": 0.776, + "final_metrics": { + "success.hanging.frame_assembled": true, + "success.hanging.hole_threaded": true, + "success.hanging.ring_bar_contact": true, + "success.hanging.hand_tool_contact": false, + "success.hanging.tool_on_frame": true, + "success.hanging.radial_distance": 0.0015266668051481247, + "success.hanging.along_fraction": 0.0621848925948143, + "failure.fallen.min_height": 0.9457205533981323 + } + } + } +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/pair_qa.py b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/pair_qa.py new file mode 100644 index 0000000000000000000000000000000000000000..ecf4759c6c1c94ba88595fd57aa9bbcbe86093dd --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/pair_qa.py @@ -0,0 +1,113 @@ +"""Audit scored episodes against their native actuators, trace and every video PTS.""" +from __future__ import annotations + +import argparse +import gzip +import hashlib +import json +import math +import subprocess +from fractions import Fraction +from pathlib import Path + +from suite import HERE, SEEDS + + +def distance(a,b): + return math.sqrt(sum((x-y)**2 for x,y in zip(a,b,strict=True))) + + +def four(row): + m=row['metrics'] + return all(m['success.hanging.'+x] for x in ('frame_assembled','hole_threaded','ring_bar_contact')) and not m['success.hanging.hand_tool_contact'] + + +def verify_video(base,trace): + path=base/'episode.mp4' + metadata=json.loads(subprocess.check_output(['ffprobe','-v','error','-select_streams','v:0','-show_entries','stream=codec_name,width,height,pix_fmt,time_base,avg_frame_rate,nb_frames:frame=best_effort_timestamp,width,height','-show_streams','-show_frames','-of','json',str(path)])) + stream=metadata['streams'][0] + assert (stream['codec_name'],stream['pix_fmt'],stream['width'],stream['height'],stream['avg_frame_rate'])==('h264','yuv420p',768,512,'20/1'),path + frames=metadata['frames'] + assert len(frames)==int(stream['nb_frames'])==len(trace),path + clock=Fraction(stream['time_base']) + for idx,(video,row) in enumerate(zip(frames,trace,strict=True)): + assert (video['width'],video['height'])==(768,512) + assert int(video['best_effort_timestamp'])*clock==Fraction(idx,20)==Fraction(str(row['sim_elapsed_s'])),(path,idx) + assert row['index']==idx,(path,idx) + return {'frames':len(frames),'width':768,'height':512,'fps':20,'all_presentation_timestamps_match_trace':True,'sha256':hashlib.sha256(path.read_bytes()).hexdigest()} + + +def audit(base): + report=json.loads((base/'report.json').read_text()) + assert not report.get('harness_error') and not report.get('video_error') + with gzip.open(base/'actions-states.jsonl.gz','rt') as stream: + rows=[json.loads(line) for line in stream] + assert len(rows)==report['recorded_samples'] and rows[0]['phase']=='reset' and rows[0]['action'] is None + meta=verify_video(base,rows) + for i,r in enumerate(rows[1:],1): + assert r['index']==i and r['action'] is not None + gym=[r for r in rows if r['phase']=='gym'] + success_transitions=[r for r in gym if r['gym_transition']['terminated'] and r['gym_transition']['success'] and four(r)] + first_gym_ok=bool(success_transitions) + assert report['gym_success']==first_gym_ok + # Ignore all external open-hold commands when looking for the expert's release. + official=[r for r in rows if r['segment']=='hang_wrench' and r['phase'] in ('gym','remaining_release_and_retreat') and r['action']] + release=None + for prev,cur in zip(official,official[1:]): + if max(prev['action']['qpos'][-2:])<=.005 and min(cur['action']['qpos'][-2:])>=.039: + release=cur + rest=[r for r in rows if r['phase']=='open_gripper_rest'] + retreat=0.;target_change=0.;moved=False + if release is not None: + withdrawal=[r for r in official if r['index']>=release['index'] and min(r['action']['qpos'][-2:])>=.039] + if withdrawal: + retreat=distance(release['tcp'][:3],withdrawal[-1]['tcp'][:3]) + target_change=max(max(abs(a-b) for a,b in zip(release['action']['qpos'][:7],r['action']['qpos'][:7],strict=True)) for r in withdrawal) + moved=(retreat>=.020 and target_change>=.020) + if rest: + assert len(rest)==90 and rest[0]['index']==report['withdrawal_completed_step']+1 + assert rest[-1]['index']==report['withdrawal_completed_step']+90 + assert all(min(row['action']['qpos'][-2:])>=.039 for row in rest) + endpoint=rest[-1] if rest else None + raw=bool(endpoint and endpoint['success'] and four(endpoint)) + assert raw==report['stable_at_4_5s'] + measured=endpoint['qpos'][-2:] if endpoint else [] + opened=bool(measured and min(measured)>=.039) + stable=bool(first_gym_ok and raw and release is not None and moved and opened) + return {'seed':report['seed'],'source_revision':report['git'],'gym_success':first_gym_ok,'gym_steps':len(gym),'first_success_index':success_transitions[0]['index'] if first_gym_ok else None,'raw_endpoint_four_conditions':raw,'gym_failed_but_raw_endpoint_passed':not first_gym_ok and raw,'expert_release_index':release['index'] if release else None,'expert_retracted':moved,'actual_expert_tcp_retreat_m':retreat,'max_commanded_arm_joint_change_after_open_rad':target_change,'rest_length':len(rest),'rest_final_measured_finger_positions_m':measured,'both_fingers_at_least_39mm':opened,'qualified_stable':stable,'rest_all_four_count':sum(four(x) for x in rest),'rest_geometry_count':report.get('rest_geometry_steps',0),'video':meta,'path':str(base.relative_to(HERE))} + + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument('labels',nargs='+');parser.add_argument('--partial',action='store_true') + args=parser.parse_args() + outputs={} + for label in args.labels: + variants=[] + for seed in SEEDS: + p=HERE/label/f'seed-{seed}' + q=p/'qa.json' + if not (p/'report.json').is_file(): + if args.partial:continue + raise FileNotFoundError(p/'report.json') + verified=audit(p) + assert verified['seed']==seed + q.write_text(json.dumps(verified,indent=2)+'\n') + variants.append(verified) + outputs[label]={'n':len(variants),'gym_count':sum(q['gym_success'] for q in variants),'qualified_stable_count':sum(q['qualified_stable'] for q in variants),'raw_endpoint_count':sum(q['raw_endpoint_four_conditions'] for q in variants),'late_only_count':sum(q['gym_failed_but_raw_endpoint_passed'] for q in variants),'episodes':variants} + if len(args.labels)==2: + before,after=args.labels + for seed in SEEDS: + a=HERE/before/f'seed-{seed}'/'report.json';b=HERE/after/f'seed-{seed}'/'report.json' + if not(a.is_file() and b.is_file()) and args.partial:continue + x=json.loads(a.read_text());y=json.loads(b.read_text()) + for key in ('seed','initial_poses','initial_qpos','asset_sha256','asset_registry','python_dependencies','gpu','n_arena','control_hz','video'): + assert x[key]==y[key], (seed,key,x[key],y[key]) + suffix='partial' if args.partial else 'complete' + (HERE/f'paired-{suffix}.json').write_text(json.dumps(outputs,indent=2)+'\n') + for label,d in outputs.items(): + print(label,'n',d['n'],'gym',d['gym_count'],'qualified stable',d['qualified_stable_count'],'raw endpoint',d['raw_endpoint_count'],'late-only',d['late_only_count']) + + +if __name__=='__main__': + main() diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/paired-complete.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/paired-complete.json new file mode 100644 index 0000000000000000000000000000000000000000..35df74f7ea7945e92618688445796fc2fef11e85 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/paired-complete.json @@ -0,0 +1,389 @@ +{ + "before_camera": { + "n": 6, + "gym_count": 2, + "qualified_stable_count": 1, + "raw_endpoint_count": 1, + "late_only_count": 0, + "episodes": [ + { + "seed": 0, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": true, + "gym_steps": 979, + "first_success_index": 979, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 977, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06181029448532237, + "max_commanded_arm_joint_change_after_open_rad": 0.25372910499572754, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999993950128555, + 0.03999992460012436 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1116, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "2045b6be0f2d1ccc5ec9087ea6707c660053253d0269c117fac7f91c51e3bcf7" + }, + "path": "before_camera/seed-0" + }, + { + "seed": 2, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": true, + "gym_steps": 977, + "first_success_index": 977, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 975, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06401699465709591, + "max_commanded_arm_joint_change_after_open_rad": 0.1533564329147339, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1110, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "4afac52bf557ef6732a0fd98cbc1123fcb3c1cf43c0f22780f4b6ee7ccf5dd33" + }, + "path": "before_camera/seed-2" + }, + { + "seed": 7, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1013, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 964, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.09286763438281764, + "max_commanded_arm_joint_change_after_open_rad": 0.2709627151489258, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1104, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "5e1f371123b65f655e524ea1a7e202eadd7b1f3b7a16cf3087d99f10d6b4d2bf" + }, + "path": "before_camera/seed-7" + }, + { + "seed": 13, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1056, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1006, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06174101284763326, + "max_commanded_arm_joint_change_after_open_rad": 0.29125088453292847, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999993950128555, + 0.03999990224838257 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1147, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "508eb3b43d9a76d2f466a68ccb0e543d9c2710032465d947d67e615434be4e0b" + }, + "path": "before_camera/seed-13" + }, + { + "seed": 22, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 1000, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 951, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.09256522419416956, + "max_commanded_arm_joint_change_after_open_rad": 0.2710152268409729, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999992832541466, + 0.03999986872076988 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1091, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "6c0735061334121cd6b60e5dfa1211ca91bb74749792ae911c2bc6cc7c0eaa63" + }, + "path": "before_camera/seed-22" + }, + { + "seed": 42, + "source_revision": "3157569ef72abffd624eea4de7640769eb8918b4", + "gym_success": false, + "gym_steps": 999, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 956, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.06385310168397312, + "max_commanded_arm_joint_change_after_open_rad": 0.13327908515930176, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.039999932050704956, + 0.03999987244606018 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 1090, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "ca0a7e86750becccd64087eea8c29804ec3a2731433dd46e6d4db4dee044d6f9" + }, + "path": "before_camera/seed-42" + } + ] + }, + "after_camera": { + "n": 6, + "gym_count": 5, + "qualified_stable_count": 5, + "raw_endpoint_count": 5, + "late_only_count": 0, + "episodes": [ + { + "seed": 0, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1087, + "first_success_index": 1087, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1087, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07119589546132751, + "max_commanded_arm_joint_change_after_open_rad": 0.15661001205444336, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999752551317215 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1227, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "df204cd44a1787d5d00d5ba3a5610b5a3efe070bd75acc54bfed1a389630a0f0" + }, + "path": "after_camera/seed-0" + }, + { + "seed": 2, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1084, + "first_success_index": 1084, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1083, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07124889682803678, + "max_commanded_arm_joint_change_after_open_rad": 0.15194129943847656, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999753296375275 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1223, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "123343f10246a0b6380c5b9c69d14e335721d2fa6967dba8a8b63d0c75418dfd" + }, + "path": "after_camera/seed-2" + }, + { + "seed": 7, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1076, + "first_success_index": 1076, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1076, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07107669585393515, + "max_commanded_arm_joint_change_after_open_rad": 0.17355436086654663, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999753296375275 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1217, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "e3d169f270dd6a372d38935a643d1723337c0577f0ded759219e437b773eb700" + }, + "path": "after_camera/seed-7" + }, + { + "seed": 13, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": false, + "gym_steps": 790, + "first_success_index": null, + "raw_endpoint_four_conditions": false, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": null, + "expert_retracted": false, + "actual_expert_tcp_retreat_m": 0.0, + "max_commanded_arm_joint_change_after_open_rad": 0.0, + "rest_length": 0, + "rest_final_measured_finger_positions_m": [], + "both_fingers_at_least_39mm": false, + "qualified_stable": false, + "rest_all_four_count": 0, + "rest_geometry_count": 0, + "video": { + "frames": 791, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "23f021851e3f01a270155824e614c89f4e108099bd1a1b88f7def37cbdfbd00d" + }, + "path": "after_camera/seed-13" + }, + { + "seed": 22, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1057, + "first_success_index": 1057, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1057, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07081359735898511, + "max_commanded_arm_joint_change_after_open_rad": 0.1637362241744995, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.039997510612010956 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1197, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "7b61b6a0594af624e42ddc86130f389f534ea5c83e7943cb5c9379b7573c8238" + }, + "path": "after_camera/seed-22" + }, + { + "seed": 42, + "source_revision": "1218c472c8017fd7ec37b8f05f3ca71360e611d7", + "gym_success": true, + "gym_steps": 1080, + "first_success_index": 1080, + "raw_endpoint_four_conditions": true, + "gym_failed_but_raw_endpoint_passed": false, + "expert_release_index": 1080, + "expert_retracted": true, + "actual_expert_tcp_retreat_m": 0.07116291470512906, + "max_commanded_arm_joint_change_after_open_rad": 0.15568959712982178, + "rest_length": 90, + "rest_final_measured_finger_positions_m": [ + 0.03999995440244675, + 0.03999752178788185 + ], + "both_fingers_at_least_39mm": true, + "qualified_stable": true, + "rest_all_four_count": 90, + "rest_geometry_count": 90, + "video": { + "frames": 1220, + "width": 768, + "height": 512, + "fps": 20, + "all_presentation_timestamps_match_trace": true, + "sha256": "307a8bc3c11b91d92e3d1d2b429a5d6f32ef6fb0da2d6ce2ddd5eb1f95625969" + }, + "path": "after_camera/seed-42" + } + ] + } +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/release_geometry.py b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/release_geometry.py new file mode 100644 index 0000000000000000000000000000000000000000..851138712a05b2cbe673cb6cd8c46f1231eaadf4 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/release_geometry.py @@ -0,0 +1,33 @@ +"""Read the last closed-gripper ring placement from an existing measured trace.""" +import gzip +import json +import sys +from pathlib import Path +import numpy as np +from scipy.spatial.transform import Rotation + +for filename in map(Path,sys.argv[1:]): + with gzip.open(filename, 'rt') as fh: + previous=None + release=None + for line in fh: + row=json.loads(line) + if row['segment']!='hang_wrench' or not row['action'] or 'qpos' not in row['action']: + continue + prevjaw=previous['action']['qpos'][-1] if previous else .04 + if prevjaw<.01 and row['action']['qpos'][-1]>.03: + release=previous + previous=row + if release is None: + print(filename.parent.name,'no wrench release');continue + def transform(uid): + q=release['poses'][uid] + return np.asarray(q[:3]),Rotation.from_quat(q[3:]).as_matrix() + c,w=transform('tool') + c+=w@np.array([-.0935328,0,0]) + f,r=transform('frame') + end=f+r@np.array([-.0475,0,.08625]) + axis=r[:,0]; up=np.array([0.,0.,1.]) + side=np.cross(up,axis);side/=np.linalg.norm(side) + d=c-end + print(filename.parent.name,'release step',release['index'],'ring relative to end signed inward/lateral/Z [mm]',np.round([d@axis*1000,d@side*1000,d[2]*1000],2),'frame -Z tilt [deg]',round(float(np.degrees(np.arccos(np.clip(r[2,2],-1,1)))),2)) diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/sha256.json b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/sha256.json new file mode 100644 index 0000000000000000000000000000000000000000..518f63aef4e82904e835010906afc01bee3dc618 --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/sha256.json @@ -0,0 +1,286 @@ +{ + "PROTOCOL.md": { + "bytes": 4343, + "sha256": "f859bd9fd9385e0165c29ae4556f3ed794171510441e8096cf510e106ec95ae6" + }, + "README.md": { + "bytes": 2990, + "sha256": "5bafbfc161533db86e1654b460d41ed5ff84f7ade3e77db0a7f24a52390edb4a" + }, + "after_camera/seed-0/actions-states.jsonl.gz": { + "bytes": 445244, + "sha256": "c54d8a93e8f4f9e5506227e67874734a015de5eb438c4b2f64eb6c4d50939321" + }, + "after_camera/seed-0/episode.mp4": { + "bytes": 1295750, + "sha256": "df204cd44a1787d5d00d5ba3a5610b5a3efe070bd75acc54bfed1a389630a0f0" + }, + "after_camera/seed-0/qa.json": { + "bytes": 931, + "sha256": "d79a5e3a44f7a4b8062796b3e9ce8e1dbd56ff516889a77b15282ee19eb4db01" + }, + "after_camera/seed-0/report.json": { + "bytes": 5097, + "sha256": "264e29202766b23ea6f596e4577ab5fd3486324a74c9517516479432c775681a" + }, + "after_camera/seed-13/actions-states.jsonl.gz": { + "bytes": 287525, + "sha256": "ab3896c8835c6e8bbc14286e9ab2f2e56d99873161134d0fd94e897f390dfc56" + }, + "after_camera/seed-13/episode.mp4": { + "bytes": 829568, + "sha256": "23f021851e3f01a270155824e614c89f4e108099bd1a1b88f7def37cbdfbd00d" + }, + "after_camera/seed-13/qa.json": { + "bytes": 849, + "sha256": "1ff20bd5d0599e68ebc46bd3643be1cca2276ff805d706dc7f9de7a320b9b3d9" + }, + "after_camera/seed-13/report.json": { + "bytes": 3865, + "sha256": "b28d799f7c4d01c8c5b111cbdba47f9555b27fc083e888f66e5a537cf8633bde" + }, + "after_camera/seed-2/actions-states.jsonl.gz": { + "bytes": 443002, + "sha256": "5ee0199cd68458d54e2a5533825386b5faf17081a66f273dd3ee7b63717b81d8" + }, + "after_camera/seed-2/episode.mp4": { + "bytes": 1283454, + "sha256": "123343f10246a0b6380c5b9c69d14e335721d2fa6967dba8a8b63d0c75418dfd" + }, + "after_camera/seed-2/qa.json": { + "bytes": 931, + "sha256": "fe923c0e3879923df7b22a820a43d3ccca98ed97079eb613c5e6d483c8ee4b41" + }, + "after_camera/seed-2/report.json": { + "bytes": 5086, + "sha256": "c5afba5b3873202f1b2767e3dfdfe2a70294165a9685cf097b845c03799b7bf1" + }, + "after_camera/seed-22/actions-states.jsonl.gz": { + "bytes": 433632, + "sha256": "4c979174d902d563d88e7a9e64d6150c99e77af0dbf2d92821bcc1389bd9d1b2" + }, + "after_camera/seed-22/episode.mp4": { + "bytes": 1253261, + "sha256": "7b61b6a0594af624e42ddc86130f389f534ea5c83e7943cb5c9379b7573c8238" + }, + "after_camera/seed-22/qa.json": { + "bytes": 933, + "sha256": "9f3d2e8684e9c8cc09d781a212fe295f2a9140f3e06dea4c84d90eac7a627dd2" + }, + "after_camera/seed-22/report.json": { + "bytes": 5102, + "sha256": "11421f26f2223a551fd355fa3f890ec38705b2dcaa7c4e491e52f87091bcd446" + }, + "after_camera/seed-42/actions-states.jsonl.gz": { + "bytes": 440545, + "sha256": "1fd4b7bede49420dccb8fb3f3945235b60cb04e4dc6fbe578ca286b43ffe7022" + }, + "after_camera/seed-42/episode.mp4": { + "bytes": 1279526, + "sha256": "307a8bc3c11b91d92e3d1d2b429a5d6f32ef6fb0da2d6ce2ddd5eb1f95625969" + }, + "after_camera/seed-42/qa.json": { + "bytes": 933, + "sha256": "1b11eadd58863a695faa3efaf7d59b953465e07f10f04a0be87e87a926fc8dce" + }, + "after_camera/seed-42/report.json": { + "bytes": 5106, + "sha256": "f7fc091adc371c5d29c89126f51eee073f32b8cae1a5a217186c5ea83e99206d" + }, + "after_camera/seed-7/actions-states.jsonl.gz": { + "bytes": 440369, + "sha256": "a44742ea14d8da64c35f1befc23298b382b250b52a6c05bdf8ebf3962e524d69" + }, + "after_camera/seed-7/episode.mp4": { + "bytes": 1273133, + "sha256": "e3d169f270dd6a372d38935a643d1723337c0577f0ded759219e437b773eb700" + }, + "after_camera/seed-7/qa.json": { + "bytes": 931, + "sha256": "2d7349287011836efeb142bfef7744998c2d915e4c9d923d3de62d9c3af00b56" + }, + "after_camera/seed-7/report.json": { + "bytes": 5099, + "sha256": "6c964c8b620b2dc8dce77567de3a431bb788b0fdc75c01f1ed473c867813e28b" + }, + "after_camera/summary.json": { + "bytes": 14974, + "sha256": "a5a112f6da3bda8b649c5be9fde2a4bc18275820d7f924842d8b1650c4f525ff" + }, + "before_camera/seed-0/actions-states.jsonl.gz": { + "bytes": 398187, + "sha256": "003264ef8fe3685e750878688cab3602a73630012ed15a08dfb99b671de9fe94" + }, + "before_camera/seed-0/episode.mp4": { + "bytes": 1185924, + "sha256": "2045b6be0f2d1ccc5ec9087ea6707c660053253d0269c117fac7f91c51e3bcf7" + }, + "before_camera/seed-0/qa.json": { + "bytes": 929, + "sha256": "be04c5295e8af636d52295b1fc89967961c0b3d0d46994b42c1c37dfd2e8cc8a" + }, + "before_camera/seed-0/report.json": { + "bytes": 5102, + "sha256": "afe6ab838b04c8c3c1ad9dbd972e579dca9d9fd07bba7e2822c3e9714e86f001" + }, + "before_camera/seed-13/actions-states.jsonl.gz": { + "bytes": 415666, + "sha256": "137191a22a9cd622fa8dadfafe6b467fea63f2ceff7cb4fe27065024d45bedb9" + }, + "before_camera/seed-13/episode.mp4": { + "bytes": 1207870, + "sha256": "508eb3b43d9a76d2f466a68ccb0e543d9c2710032465d947d67e615434be4e0b" + }, + "before_camera/seed-13/qa.json": { + "bytes": 935, + "sha256": "4322d5f82a8b14605a7664e1d1c0be92dad40a6b2be805fd9c23847a1fe29a6c" + }, + "before_camera/seed-13/report.json": { + "bytes": 5077, + "sha256": "ebb3d23ecba316e2c47b3498fa0fcc17d8553340b2df50d6368ce8700e4294e2" + }, + "before_camera/seed-2/actions-states.jsonl.gz": { + "bytes": 395395, + "sha256": "cabf885c81b2aa1321ace4eda1aaa7854bbde102a54235cd67c431d427a8dcfa" + }, + "before_camera/seed-2/episode.mp4": { + "bytes": 1169194, + "sha256": "4afac52bf557ef6732a0fd98cbc1123fcb3c1cf43c0f22780f4b6ee7ccf5dd33" + }, + "before_camera/seed-2/qa.json": { + "bytes": 929, + "sha256": "b3b54d2cee9f20501917b7cac4a28b96f6bf4b016d837cbd07864bd6bc70a5a2" + }, + "before_camera/seed-2/report.json": { + "bytes": 5087, + "sha256": "d7b9dc2b3ea9e5e98fea730cc18502ae0938e99fcb19be6e419c6689b19d216e" + }, + "before_camera/seed-22/actions-states.jsonl.gz": { + "bytes": 386824, + "sha256": "d1badc308b36b7d28747fd2f51eda143168d52512aebff84dfa348d9f96e31a3" + }, + "before_camera/seed-22/episode.mp4": { + "bytes": 1099891, + "sha256": "6c0735061334121cd6b60e5dfa1211ca91bb74749792ae911c2bc6cc7c0eaa63" + }, + "before_camera/seed-22/qa.json": { + "bytes": 933, + "sha256": "7bf113e2fca2f9613fa7b8dc5cc0747de291a3126046fe749510b2ac373df52f" + }, + "before_camera/seed-22/report.json": { + "bytes": 5075, + "sha256": "38873077805150783e2539f2775542e97d53e06b53f68a347b3db3ce5b01ce07" + }, + "before_camera/seed-42/actions-states.jsonl.gz": { + "bytes": 385533, + "sha256": "8088b0a7d1dfa521d3e4f1d8c549819789aa289964d13e306521abe66788e802" + }, + "before_camera/seed-42/episode.mp4": { + "bytes": 1139942, + "sha256": "ca0a7e86750becccd64087eea8c29804ec3a2731433dd46e6d4db4dee044d6f9" + }, + "before_camera/seed-42/qa.json": { + "bytes": 934, + "sha256": "5270346a1f5c391c29ffadbe6edcad3cc4a6048d9461e8f8daf8d28105d17f56" + }, + "before_camera/seed-42/report.json": { + "bytes": 5078, + "sha256": "78ff132984269833bd95cbdec7c8db1b9d18fe69674f6a66cb03cdb8f3c35830" + }, + "before_camera/seed-7/actions-states.jsonl.gz": { + "bytes": 387787, + "sha256": "7393b5c87fd4689be5cf63a6f4fc7c93e4fb738760a96b1ef9fe83025c21442c" + }, + "before_camera/seed-7/episode.mp4": { + "bytes": 1152892, + "sha256": "5e1f371123b65f655e524ea1a7e202eadd7b1f3b7a16cf3087d99f10d6b4d2bf" + }, + "before_camera/seed-7/qa.json": { + "bytes": 932, + "sha256": "fb4ca8d21a95f9da308330878fd496969ad0fd80a849609800612979002ed61e" + }, + "before_camera/seed-7/report.json": { + "bytes": 5079, + "sha256": "a33be4f3d9a33fd20515a519eb0887ae26e047e7cc6dfcbb5d49eebdd25ba83b" + }, + "before_camera/summary.json": { + "bytes": 14983, + "sha256": "1f1f70f918019a95690abb289e0f8e2f704c81354b1523743df15dff7eee9066" + }, + "cli_exact_replay/README.md": { + "bytes": 2326, + "sha256": "833828a8c86e1903063c865bddc4f7abc4e233173da3ca25230c2ba379ec05a2" + }, + "cli_exact_replay/attempt-1-replay-check.json": { + "bytes": 876, + "sha256": "1f7e4a9ff461de51cf0e9d2d47a48ceadc8671eb525d592069ffea55be9d6d2f" + }, + "cli_exact_replay/attempt-1.mp4": { + "bytes": 1062650, + "sha256": "c27df871dbe81a58a4261fb9e245b7929481245cdaba013cfe9bde032ad0cea4" + }, + "cli_exact_replay/attempt-2-replay-check.json": { + "bytes": 864, + "sha256": "5b292357af074939325683b028b6fe22f4d2e0ec793b2834ac8e4481e18e7da3" + }, + "cli_exact_replay/attempt-2.mp4": { + "bytes": 1025507, + "sha256": "c5c846a29c1f14243af03f9f92509e49f6208bd385fe41881e25ad88ea3822f6" + }, + "cli_exact_replay/finger-travel.json": { + "bytes": 1240, + "sha256": "22f3554590f39c5a4842bbd621ec924cb9c6df9d0eda5a320c52364de7c06ec8" + }, + "cli_exact_replay/render_recorded_poses.py": { + "bytes": 7603, + "sha256": "fbb43db211d91704bea8c23b79a55ede55ed31b5cdd818e15e6a7ab519bb3ebe" + }, + "comparison.json": { + "bytes": 2518, + "sha256": "24698de263097e0975077665d0fdc99c22bf42cffdd79ede2fc1cb15140b94ed" + }, + "evaluate.py": { + "bytes": 9760, + "sha256": "844e1aacf8f1065b8e423c64142b60d9360e653e44386227ff6be31b9e2df330" + }, + "fixed_cli/README.md": { + "bytes": 1847, + "sha256": "d561980fb19194cae0769b1d55f294b318d6795f52511a66224bdbbfad12ac3e" + }, + "fixed_cli/attempt-1-replay-check.json": { + "bytes": 835, + "sha256": "4afcbe583ed53a7429f627ebc144bcdece37284b6f2adfe952be5923f2b779d1" + }, + "fixed_cli/attempt-1-result.json": { + "bytes": 272, + "sha256": "7028a1f481446c54761bd3f8e680c4698e7525416f128ce9a49f3666f36308bc" + }, + "fixed_cli/attempt-1.jsonl.gz": { + "bytes": 285689, + "sha256": "46c1a1fff8af1da71811e34052403096f8abe0359ce545e270fa16b17d5bb748" + }, + "fixed_cli/attempt-1.mp4": { + "bytes": 1074189, + "sha256": "623746d75d351c9ce6d1e000a01de99526fef471612a9ee64445b5afc3b505c5" + }, + "fixed_cli/matched-reset.json": { + "bytes": 2816, + "sha256": "b74cf62c78fc64669e80472d73fc4d202a4286223b7ad33acafcc3fbd473e90e" + }, + "pair_qa.py": { + "bytes": 6719, + "sha256": "5d32422850c3afc1b805d4b4b7c3e0b872e61a16966589201cddf182745a9568" + }, + "paired-complete.json": { + "bytes": 13666, + "sha256": "231db285ef73cd4591a47174cdc76bbfefb528a42a68228b6d4f30a94101328f" + }, + "release_geometry.py": { + "bytes": 1402, + "sha256": "7cd4271a68b7062cdb661fee7e5f270a68b29faa38926152ca951cbd3836f387" + }, + "suite.py": { + "bytes": 5336, + "sha256": "1f082d0eca9381c3fae2f77b516621c25152e28e1e8cf55c322cbe4a477f6316" + } +} diff --git a/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/suite.py b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/suite.py new file mode 100644 index 0000000000000000000000000000000000000000..a6050edb03b40a613cb76fb53886199072de22ff --- /dev/null +++ b/scene_assets/robosuite_tool_hang_v1/validation/first_attempt_comparison/suite.py @@ -0,0 +1,80 @@ +"""Launch the same six isolated first attempts and validate paired results.""" +import argparse +import gzip +import hashlib +import json +import os +from pathlib import Path +import subprocess +import sys + +HERE=Path(__file__).resolve().parent +SEEDS=(0,2,7,13,22,42) + + +def summarize(out): + reports=[] + for seed in SEEDS: + base=out/f'seed-{seed}' + report=json.loads((base/'report.json').read_text()) + if report['seed']!=seed or report.get('harness_error') or report.get('video_error'): + raise RuntimeError(f'Invalid measurement for {base}: {report.get("harness_error") or report.get("video_error")}') + with gzip.open(base/'actions-states.jsonl.gz','rt') as trace: + rows=0 + for rows,line in enumerate(trace,1): + frame=json.loads(line) + if frame['index']!=rows-1 or (rows>1 and frame['action'] is None): + raise ValueError(f'Incomplete trace at {base} sample {rows}.') + if rows!=report['recorded_samples']: + raise ValueError(f'Trace length differs from report in {base}.') + if report['video']: + command=['ffprobe','-v','error','-select_streams','v:0','-show_entries','stream=codec_name,avg_frame_rate,pix_fmt,nb_frames','-of','json',str(base/'episode.mp4')] + stream=json.loads(subprocess.check_output(command))['streams'][0] + if int(stream['nb_frames'])!=rows or stream['avg_frame_rate']!='20/1' or stream['codec_name']!='h264' or stream['pix_fmt']!='yuv420p': + raise ValueError(f'Video dimensions or timing differ in {base}: {stream}') + error=report.get('episode_error','') + reports.append({'seed':seed,'gym_success':report['gym_success'],'stable_4_5s':report['stable_at_4_5s'],'episode_steps':report['gym_steps'],'official_success':report.get('official_success',False),'rest_all_four_steps':report.get('rest_all_four_steps'),'rest_geometry_steps':report.get('rest_geometry_steps'),'rest_steps':report.get('rest_steps',0),'terminal_reason':report.get('terminal_reason'),'error':next((i for i in error.splitlines() if i.startswith(('ValueError:','RuntimeError:'))),None),'revision':report['git'],'source_sha256':report['asset_sha256'],'initial':{'objects':report['initial_poses'],'qpos':report['initial_qpos']},'video':report['video']}) + if len({x['revision'] for x in reports})!=1: + raise ValueError('Mixed source revisions.') + if any(x['source_sha256']!=reports[0]['source_sha256'] for x in reports): + raise ValueError('Mixed dataset versions.') + summary={'git':reports[0]['revision'],'seeds':SEEDS,'n':len(reports),'successes':sum(x['gym_success'] for x in reports),'stable_successes':sum(x['stable_4_5s'] for x in reports),'episodes':reports} + (out/'summary.json').write_text(json.dumps(summary,indent=2)+'\n') + return summary + + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + sub=parser.add_subparsers(dest='mode',required=True) + run=sub.add_parser('run');run.add_argument('name');run.add_argument('worktree',type=Path);run.add_argument('--revision',required=True);run.add_argument('--video',action='store_true') + summary=sub.add_parser('summarize');summary.add_argument('name') + compare=sub.add_parser('compare');compare.add_argument('before');compare.add_argument('after') + opts=parser.parse_args() + if opts.mode=='compare': + before=summarize(HERE/opts.before);after=summarize(HERE/opts.after) + paired=[] + for a,b in zip(before['episodes'],after['episodes'],strict=True): + if a['seed']!=b['seed'] or a['initial']!=b['initial'] or a['source_sha256']!=b['source_sha256']: + raise ValueError(f'Unmatched seed, initial configuration or physical assets for {a["seed"]}.') + paired.append({'seed':a['seed'],'gym_before':a['gym_success'],'gym_after':b['gym_success'],'stable_before':a['stable_4_5s'],'stable_after':b['stable_4_5s']}) + print(json.dumps({'gym':[before['successes'],after['successes']],'stable':[before['stable_successes'],after['stable_successes']],'n':len(SEEDS),'pairs':paired},indent=2)) + return + out=HERE/opts.name + if opts.mode=='run': + worktree=opts.worktree.resolve() + if subprocess.check_output(['git','-C',worktree,'rev-parse','HEAD'],text=True).strip()!=opts.revision: + raise ValueError('The checkout does not match the pinned revision.') + if subprocess.check_output(['git','-C',worktree,'status','--porcelain','--untracked-files=no'],text=True).strip(): + raise ValueError('Use an unchanged checkout for a frozen comparison.') + out.mkdir(exist_ok=False) + for seed in SEEDS: + command=[sys.executable,'-u',str(HERE/'evaluate.py'),'--seed',str(seed),'--out',str(out/f'seed-{seed}'),'--revision',opts.revision] + if opts.video:command.append('--video') + with (out/f'seed-{seed}.log').open('w') as log: + subprocess.run(command,cwd=worktree,env={**os.environ,'PYTHONPATH':str(worktree),'OMP_NUM_THREADS':'1','OPENBLAS_NUM_THREADS':'1'},stdout=log,stderr=subprocess.STDOUT,check=True) + summary=summarize(out) + print(f'{summary["git"]} Gym {summary["successes"]}/{summary["n"]} Stable {summary["stable_successes"]}/{summary["n"]}') + + +if __name__=='__main__': + main()