Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

DexHand and DexToolBench task fixes (#516)

Kangrui Wangbbfd06f1a704
diff --git a/tasks/dexhand/README.md b/tasks/dexhand/README.md
index 37fde3460b..ee074fdf97 100644
--- a/tasks/dexhand/README.md
+++ b/tasks/dexhand/README.md
@@ -488,8 +488,9 @@ above its closed height, within 4 mm of the jar axis) its unwrapped counter-cloc
s) the lid rests on the worktop touching neither hand nor jar, upright within 0.15 rad, at least 90 mm from the jar
axis, slower than 0.02 m/s and 0.3 rad/s, while the jar stands untouched, upright within 0.10 rad and slower than 0.02
m/s. **Immediate failure**, after every 2 ms substep: jar tilt above 15 degrees, slide above 30 mm or lift above 15 mm;
-the lid touching the worktop before stage 2; the lid touching nothing while falling faster than 0.3 m/s (or falling
-faster than 1.0 m/s at any time); floor contact or leaving the worktop or workspace; the lid leaving the thread upward
+the lid touching the worktop before stage 2; the lid in the air (lowest point more than 10 mm above the worktop)
+touching nothing while falling faster than 0.3 m/s, or falling faster than 1.0 m/s whatever it touches (a lid tipping
+over on the worktop has not dropped); floor contact or leaving the worktop or workspace; the lid leaving the thread upward
outside the ramp gaps; unstable physics; 3,000 controls. The lid is lightly closed (no vacuum, seal adhesion or
preload); the jam is part of the jar's rigid mass. Not restored, with evidence in the family README: a second hand
holding the jar (on the 67 mm body just above the worktop the holding palm could not be placed: forearm and wrist
@@ -682,8 +683,8 @@ floor z = 0 beside the counter's -y edge, facing +y; the left arm parked); any r
touching anything fails at once. A rubber boot (Poly Haven, CC0) stands sole-up on a fixed boot-rack peg in a collection
tray; six loose 1 g soil clods lie lodged in its tread (gravity and friction only; the source scene's cohesive bond is
not simulated); a shoe brush lies bristles-down on the counter. **Success**, in order: (1) the brush's bristle pad
-touches the boot while the hand holds the brush off the counter, at least 10 controls in total; (2) every clod touched
-by the bristle pad (not the wooden back) while near the sole, and every clod inside the tray walls; (3) for 50
+touches the boot while the hand holds the brush off the counter, at least 10 controls in total; (2) every clod inside
+the tray walls, however it left the sole (swept, pushed by the brush's back or knocked off by another clod); (3) for 50
consecutive controls (1 s) all clods in the tray at <= 0.05 m/s while the brush touches neither boot nor clods and is
withdrawn. **Immediate failure**, after every 2 ms substep: the boot moved more than 0.03 m or tilted more than 0.35
rad; a clod touching the counter or floor, below the counter top or outside the workspace box; any hand geometry
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/DIGEST b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/DIGEST
index 947125fdff..07d5c4a5c4 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/DIGEST
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:93497f4988ec4477412f66b2835f96d46365de3ead124fbc78180e8c0f9e32d8
+sha256:b0f2363a2146b73958977778c3ae4365145a196d4c60b11b933871a0551cba5e
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/README.md b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/README.md
index 9a7edf7134..08ce6130a0 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/README.md
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/README.md
@@ -12,7 +12,7 @@
| Base image | `ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350` |
## Task
-Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
## Difficulty
The robot's right hand, on a 7-joint arm without gravity compensation, must pick up a 14 cm shoe brush from the
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/Dockerfile b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/Dockerfile
index d7ba490c88..b6f794af2b 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/Dockerfile
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/Dockerfile
@@ -1,6 +1,6 @@
FROM ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350
COPY . /opt/tools/
-COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/environment/arm_rig.py /privileged/environment/variants/becf9b54ed/catalog.json /privileged/environment/variants/27a4a8477d/checker.py /privileged/environment/variants/0ebff40c75/replay.py /privileged/environment/variants/e6e22842e5/runtime.py /privileged/environment/variants/53195e59be/scene.py /privileged/environment/variants/b4ababbd9e/task.json /opt/tools/
+COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/environment/arm_rig.py /privileged/environment/variants/0ebff40c75/replay.py /privileged/environment/variants/e6e22842e5/runtime.py /privileged/environment/variants/53195e59be/scene.py /opt/tools/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/PROVENANCE.json /privileged/environment/assets/boot/inspection.json /privileged/environment/assets/boot/left-clean.obj /opt/tools/assets/boot/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/collision/patch-000.stl /privileged/environment/assets/boot/collision/patch-001.stl /privileged/environment/assets/boot/collision/patch-003.stl /privileged/environment/assets/boot/collision/patch-004.stl /privileged/environment/assets/boot/collision/patch-005.stl /privileged/environment/assets/boot/collision/patch-006.stl /privileged/environment/assets/boot/collision/patch-007.stl /privileged/environment/assets/boot/collision/patch-008.stl /privileged/environment/assets/boot/collision/patch-009.stl /privileged/environment/assets/boot/collision/patch-010.stl /privileged/environment/assets/boot/collision/patch-011.stl /privileged/environment/assets/boot/collision/patch-012.stl /privileged/environment/assets/boot/collision/patch-013.stl /privileged/environment/assets/boot/collision/patch-014.stl /privileged/environment/assets/boot/collision/patch-016.stl /privileged/environment/assets/boot/collision/patch-017.stl /privileged/environment/assets/boot/collision/patch-018.stl /privileged/environment/assets/boot/collision/patch-020.stl /privileged/environment/assets/boot/collision/patch-021.stl /privileged/environment/assets/boot/collision/patch-022.stl /privileged/environment/assets/boot/collision/patch-023.stl /privileged/environment/assets/boot/collision/patch-024.stl /privileged/environment/assets/boot/collision/patch-025.stl /privileged/environment/assets/boot/collision/patch-026.stl /privileged/environment/assets/boot/collision/patch-027.stl /privileged/environment/assets/boot/collision/patch-028.stl /privileged/environment/assets/boot/collision/patch-029.stl /privileged/environment/assets/boot/collision/patch-030.stl /privileged/environment/assets/boot/collision/patch-031.stl /privileged/environment/assets/boot/collision/patch-032.stl /privileged/environment/assets/boot/collision/patch-033.stl /privileged/environment/assets/boot/collision/patch-034.stl /privileged/environment/assets/boot/collision/patch-035.stl /privileged/environment/assets/boot/collision/patch-036.stl /privileged/environment/assets/boot/collision/patch-037.stl /privileged/environment/assets/boot/collision/patch-038.stl /privileged/environment/assets/boot/collision/patch-039.stl /privileged/environment/assets/boot/collision/patch-040.stl /privileged/environment/assets/boot/collision/patch-041.stl /privileged/environment/assets/boot/collision/patch-042.stl /privileged/environment/assets/boot/collision/patch-043.stl /privileged/environment/assets/boot/collision/patch-044.stl /privileged/environment/assets/boot/collision/patch-046.stl /privileged/environment/assets/boot/collision/patch-048.stl /privileged/environment/assets/boot/collision/patch-049.stl /privileged/environment/assets/boot/collision/patch-051.stl /privileged/environment/assets/boot/collision/patch-052.stl /privileged/environment/assets/boot/collision/patch-053.stl /privileged/environment/assets/boot/collision/patch-055.stl /privileged/environment/assets/boot/collision/patch-056.stl /privileged/environment/assets/boot/collision/patch-057.stl /privileged/environment/assets/boot/collision/patch-058.stl /privileged/environment/assets/boot/collision/patch-059.stl /privileged/environment/assets/boot/collision/patch-060.stl /privileged/environment/assets/boot/collision/patch-061.stl /privileged/environment/assets/boot/collision/patch-062.stl /privileged/environment/assets/boot/collision/patch-063.stl /privileged/environment/assets/boot/collision/patch-064.stl /privileged/environment/assets/boot/collision/patch-065.stl /privileged/environment/assets/boot/collision/patch-066.stl /privileged/environment/assets/boot/collision/patch-067.stl /privileged/environment/assets/boot/collision/patch-068.stl /privileged/environment/assets/boot/collision/patch-069.stl /privileged/environment/assets/boot/collision/patch-070.stl /privileged/environment/assets/boot/collision/patch-071.stl /privileged/environment/assets/boot/collision/patch-072.stl /privileged/environment/assets/boot/collision/patch-073.stl /privileged/environment/assets/boot/collision/patch-074.stl /privileged/environment/assets/boot/collision/patch-075.stl /privileged/environment/assets/boot/collision/patch-077.stl /privileged/environment/assets/boot/collision/patch-079.stl /privileged/environment/assets/boot/collision/patch-080.stl /privileged/environment/assets/boot/collision/patch-082.stl /privileged/environment/assets/boot/collision/patch-083.stl /privileged/environment/assets/boot/collision/patch-084.stl /privileged/environment/assets/boot/collision/patch-086.stl /privileged/environment/assets/boot/collision/patch-087.stl /privileged/environment/assets/boot/collision/patch-088.stl /privileged/environment/assets/boot/collision/patch-089.stl /privileged/environment/assets/boot/collision/patch-091.stl /privileged/environment/assets/boot/collision/patch-092.stl /privileged/environment/assets/boot/collision/patch-093.stl /privileged/environment/assets/boot/collision/patch-094.stl /privileged/environment/assets/boot/collision/patch-095.stl /privileged/environment/assets/boot/collision/patch-096.stl /privileged/environment/assets/boot/collision/patch-097.stl /privileged/environment/assets/boot/collision/patch-099.stl /privileged/environment/assets/boot/collision/patch-100.stl /privileged/environment/assets/boot/collision/patch-101.stl /privileged/environment/assets/boot/collision/patch-102.stl /privileged/environment/assets/boot/collision/patch-103.stl /privileged/environment/assets/boot/collision/patch-104.stl /privileged/environment/assets/boot/collision/patch-105.stl /privileged/environment/assets/boot/collision/patch-106.stl /privileged/environment/assets/boot/collision/patch-107.stl /privileged/environment/assets/boot/collision/patch-108.stl /privileged/environment/assets/boot/collision/patch-109.stl /privileged/environment/assets/boot/collision/patch-110.stl /privileged/environment/assets/boot/collision/patch-111.stl /privileged/environment/assets/boot/collision/patch-112.stl /privileged/environment/assets/boot/collision/patch-114.stl /privileged/environment/assets/boot/collision/patch-115.stl /privileged/environment/assets/boot/collision/patch-116.stl /privileged/environment/assets/boot/collision/patch-118.stl /privileged/environment/assets/boot/collision/patch-119.stl /privileged/environment/assets/boot/collision/patch-120.stl /privileged/environment/assets/boot/collision/patch-121.stl /privileged/environment/assets/boot/collision/patch-122.stl /privileged/environment/assets/boot/collision/patch-123.stl /privileged/environment/assets/boot/collision/patch-124.stl /privileged/environment/assets/boot/collision/patch-125.stl /privileged/environment/assets/boot/collision/patch-126.stl /privileged/environment/assets/boot/collision/patch-127.stl /privileged/environment/assets/boot/collision/patch-128.stl /privileged/environment/assets/boot/collision/patch-129.stl /privileged/environment/assets/boot/collision/patch-130.stl /privileged/environment/assets/boot/collision/patch-131.stl /privileged/environment/assets/boot/collision/patch-132.stl /privileged/environment/assets/boot/collision/patch-134.stl /privileged/environment/assets/boot/collision/patch-135.stl /privileged/environment/assets/boot/collision/patch-136.stl /privileged/environment/assets/boot/collision/patch-137.stl /privileged/environment/assets/boot/collision/patch-138.stl /privileged/environment/assets/boot/collision/patch-139.stl /privileged/environment/assets/boot/collision/patch-140.stl /privileged/environment/assets/boot/collision/patch-141.stl /privileged/environment/assets/boot/collision/patch-142.stl /privileged/environment/assets/boot/collision/patch-143.stl /privileged/environment/assets/boot/collision/patch-144.stl /privileged/environment/assets/boot/collision/patch-145.stl /privileged/environment/assets/boot/collision/patch-146.stl /privileged/environment/assets/boot/collision/patch-147.stl /privileged/environment/assets/boot/collision/patch-148.stl /privileged/environment/assets/boot/collision/patch-149.stl /privileged/environment/assets/boot/collision/patch-150.stl /privileged/environment/assets/boot/collision/patch-151.stl /privileged/environment/assets/boot/collision/patch-152.stl /privileged/environment/assets/boot/collision/patch-153.stl /privileged/environment/assets/boot/collision/patch-155.stl /privileged/environment/assets/boot/collision/patch-156.stl /privileged/environment/assets/boot/collision/patch-157.stl /privileged/environment/assets/boot/collision/patch-158.stl /privileged/environment/assets/boot/collision/patch-159.stl /privileged/environment/assets/boot/collision/patch-160.stl /privileged/environment/assets/boot/collision/patch-161.stl /privileged/environment/assets/boot/collision/patch-162.stl /privileged/environment/assets/boot/collision/patch-163.stl /privileged/environment/assets/boot/collision/patch-164.stl /privileged/environment/assets/boot/collision/patch-165.stl /privileged/environment/assets/boot/collision/patch-166.stl /privileged/environment/assets/boot/collision/patch-167.stl /privileged/environment/assets/boot/collision/patch-168.stl /privileged/environment/assets/boot/collision/patch-170.stl /privileged/environment/assets/boot/collision/patch-171.stl /privileged/environment/assets/boot/collision/patch-172.stl /privileged/environment/assets/boot/collision/patch-173.stl /privileged/environment/assets/boot/collision/patch-174.stl /privileged/environment/assets/boot/collision/patch-175.stl /privileged/environment/assets/boot/collision/patch-176.stl /privileged/environment/assets/boot/collision/patch-177.stl /privileged/environment/assets/boot/collision/patch-178.stl /privileged/environment/assets/boot/collision/patch-179.stl /privileged/environment/assets/boot/collision/patch-180.stl /privileged/environment/assets/boot/collision/patch-181.stl /privileged/environment/assets/boot/collision/patch-182.stl /privileged/environment/assets/boot/collision/patch-183.stl /privileged/environment/assets/boot/collision/patch-184.stl /privileged/environment/assets/boot/collision/patch-185.stl /privileged/environment/assets/boot/collision/patch-186.stl /privileged/environment/assets/boot/collision/patch-187.stl /privileged/environment/assets/boot/collision/patch-188.stl /privileged/environment/assets/boot/collision/patch-189.stl /privileged/environment/assets/boot/collision/patch-190.stl /privileged/environment/assets/boot/collision/patch-191.stl /privileged/environment/assets/boot/collision/patch-192.stl /privileged/environment/assets/boot/collision/patch-193.stl /privileged/environment/assets/boot/collision/patch-194.stl /privileged/environment/assets/boot/collision/patch-195.stl /privileged/environment/assets/boot/collision/patch-196.stl /privileged/environment/assets/boot/collision/patch-197.stl /privileged/environment/assets/boot/collision/patch-198.stl /privileged/environment/assets/boot/collision/patch-199.stl /privileged/environment/assets/boot/collision/patch-200.stl /privileged/environment/assets/boot/collision/patch-201.stl /privileged/environment/assets/boot/collision/patch-202.stl /privileged/environment/assets/boot/collision/patch-203.stl /privileged/environment/assets/boot/collision/patch-204.stl /privileged/environment/assets/boot/collision/patch-205.stl /privileged/environment/assets/boot/collision/patch-206.stl /privileged/environment/assets/boot/collision/patch-207.stl /privileged/environment/assets/boot/collision/patch-208.stl /privileged/environment/assets/boot/collision/patch-209.stl /privileged/environment/assets/boot/collision/patch-211.stl /privileged/environment/assets/boot/collision/patch-212.stl /privileged/environment/assets/boot/collision/patch-213.stl /privileged/environment/assets/boot/collision/patch-214.stl /privileged/environment/assets/boot/collision/patch-216.stl /privileged/environment/assets/boot/collision/patch-217.stl /privileged/environment/assets/boot/collision/patch-218.stl /privileged/environment/assets/boot/collision/patch-219.stl /privileged/environment/assets/boot/collision/patch-220.stl /privileged/environment/assets/boot/collision/patch-221.stl /privileged/environment/assets/boot/collision/patch-222.stl /privileged/environment/assets/boot/collision/patch-223.stl /privileged/environment/assets/boot/collision/patch-224.stl /privileged/environment/assets/boot/collision/patch-225.stl /privileged/environment/assets/boot/collision/patch-226.stl /privileged/environment/assets/boot/collision/patch-227.stl /privileged/environment/assets/boot/collision/patch-228.stl /privileged/environment/assets/boot/collision/patch-229.stl /privileged/environment/assets/boot/collision/patch-230.stl /privileged/environment/assets/boot/collision/patch-231.stl /privileged/environment/assets/boot/collision/patch-232.stl /privileged/environment/assets/boot/collision/patch-233.stl /privileged/environment/assets/boot/collision/patch-234.stl /privileged/environment/assets/boot/collision/patch-235.stl /privileged/environment/assets/boot/collision/patch-236.stl /privileged/environment/assets/boot/collision/patch-237.stl /privileged/environment/assets/boot/collision/patch-238.stl /privileged/environment/assets/boot/collision/patch-239.stl /privileged/environment/assets/boot/collision/patch-240.stl /privileged/environment/assets/boot/collision/patch-241.stl /privileged/environment/assets/boot/collision/patch-242.stl /privileged/environment/assets/boot/collision/patch-243.stl /privileged/environment/assets/boot/collision/patch-244.stl /privileged/environment/assets/boot/collision/patch-245.stl /privileged/environment/assets/boot/collision/patch-246.stl /privileged/environment/assets/boot/collision/patch-247.stl /privileged/environment/assets/boot/collision/patch-248.stl /privileged/environment/assets/boot/collision/patch-249.stl /privileged/environment/assets/boot/collision/patch-250.stl /privileged/environment/assets/boot/collision/patch-251.stl /privileged/environment/assets/boot/collision/patch-252.stl /privileged/environment/assets/boot/collision/patch-253.stl /privileged/environment/assets/boot/collision/patch-254.stl /privileged/environment/assets/boot/collision/patch-255.stl /privileged/environment/assets/boot/collision/patch-256.stl /privileged/environment/assets/boot/collision/patch-257.stl /privileged/environment/assets/boot/collision/patch-258.stl /privileged/environment/assets/boot/collision/patch-259.stl /privileged/environment/assets/boot/collision/patch-260.stl /privileged/environment/assets/boot/collision/patch-261.stl /privileged/environment/assets/boot/collision/patch-262.stl /privileged/environment/assets/boot/collision/patch-263.stl /privileged/environment/assets/boot/collision/patch-264.stl /privileged/environment/assets/boot/collision/patch-265.stl /privileged/environment/assets/boot/collision/patch-266.stl /privileged/environment/assets/boot/collision/patch-267.stl /privileged/environment/assets/boot/collision/patch-268.stl /privileged/environment/assets/boot/collision/patch-269.stl /privileged/environment/assets/boot/collision/patch-270.stl /privileged/environment/assets/boot/collision/patch-271.stl /privileged/environment/assets/boot/collision/patch-272.stl /privileged/environment/assets/boot/collision/patch-273.stl /privileged/environment/assets/boot/collision/patch-274.stl /privileged/environment/assets/boot/collision/patch-275.stl /privileged/environment/assets/boot/collision/patch-276.stl /privileged/environment/assets/boot/collision/patch-277.stl /privileged/environment/assets/boot/collision/patch-278.stl /privileged/environment/assets/boot/collision/patch-279.stl /privileged/environment/assets/boot/collision/patch-280.stl /privileged/environment/assets/boot/collision/patch-281.stl /privileged/environment/assets/boot/collision/patch-282.stl /privileged/environment/assets/boot/collision/patch-283.stl /privileged/environment/assets/boot/collision/patch-284.stl /privileged/environment/assets/boot/collision/patch-285.stl /privileged/environment/assets/boot/collision/patch-286.stl /privileged/environment/assets/boot/collision/patch-287.stl /privileged/environment/assets/boot/collision/patch-288.stl /privileged/environment/assets/boot/collision/patch-289.stl /privileged/environment/assets/boot/collision/patch-290.stl /privileged/environment/assets/boot/collision/patch-291.stl /privileged/environment/assets/boot/collision/patch-292.stl /privileged/environment/assets/boot/collision/patch-293.stl /opt/tools/assets/boot/collision/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/textures/rubber_boots_diff_2k.png /privileged/environment/assets/boot/textures/rubber_boots_nor_gl_2k.jpg /opt/tools/assets/boot/textures/
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/catalog.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/catalog.json
new file mode 100644
index 0000000000..7e77193294
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/catalog.json
@@ -0,0 +1,403 @@
+{
+ "schema_version": 1,
+ "tasks": [
+ {
+ "schema_version": 1,
+ "id": "boot_sole_brush",
+ "title": "Brush the debris off a boot sole",
+ "category": "tool_use",
+ "difficulty": "hard",
+ "description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "settle_steps": 250,
+ "table_z": 0.886,
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ 0.147,
+ -0.591,
+ 0.1
+ ],
+ "base_yaw": 1.5707963267948966
+ },
+ "counter": {
+ "center": [
+ 0.72,
+ 0.0
+ ],
+ "half": [
+ 0.43,
+ 0.39,
+ 0.02
+ ]
+ },
+ "tray": {
+ "center": [
+ 0.53,
+ 0.1
+ ],
+ "half": [
+ 0.17,
+ 0.29
+ ],
+ "wall_height": 0.045,
+ "wall_thickness": 0.006,
+ "floor_thickness": 0.012
+ },
+ "rack": {
+ "peg_xy": [
+ 0.595,
+ 0.1
+ ],
+ "peg_radius": 0.02,
+ "peg_top_z": 1.223,
+ "base_radius": 0.045,
+ "base_half_height": 0.004
+ },
+ "boot": {
+ "pos": [
+ 0.53,
+ 0.1,
+ 1.293
+ ],
+ "friction": 0.9,
+ "shaft_axis_local": [
+ 0.0,
+ 0.065
+ ],
+ "footbed_local_z": 0.062,
+ "sleeve_local_z": [
+ 0.1,
+ 0.24
+ ],
+ "sleeve_clearance": 0.0005
+ },
+ "clod_mass": 0.001,
+ "clod_friction": 0.8,
+ "clods": [
+ {
+ "local_xy": [
+ -0.025,
+ -0.085
+ ],
+ "pos": [
+ 0.445,
+ 0.075,
+ 1.296662
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ -0.068
+ ],
+ "pos": [
+ 0.462,
+ 0.125,
+ 1.29646
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ -0.047
+ ],
+ "pos": [
+ 0.483,
+ 0.075,
+ 1.296448
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.036
+ ],
+ "pos": [
+ 0.566,
+ 0.125,
+ 1.296609
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ 0.048
+ ],
+ "pos": [
+ 0.578,
+ 0.075,
+ 1.296514
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.083
+ ],
+ "pos": [
+ 0.613,
+ 0.125,
+ 1.296655
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ }
+ ],
+ "brush": {
+ "pos": [
+ 0.68,
+ -0.28,
+ 0.9175
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ],
+ "bristle_friction": 0.7,
+ "pad": {
+ "half": [
+ 0.0525,
+ 0.0145,
+ 0.01
+ ],
+ "pos": [
+ 0,
+ 0,
+ -0.0215
+ ],
+ "solref": [
+ 0.006,
+ 1
+ ]
+ }
+ },
+ "cameras": [
+ {
+ "name": "overview",
+ "pos": [
+ 0.02,
+ -0.86,
+ 1.8
+ ],
+ "target": [
+ 0.58,
+ 0.0,
+ 1.12
+ ],
+ "fovy": 45
+ },
+ {
+ "name": "closeup",
+ "pos": [
+ 0.8,
+ -0.22,
+ 1.52
+ ],
+ "target": [
+ 0.52,
+ 0.1,
+ 1.28
+ ],
+ "fovy": 40
+ },
+ {
+ "name": "side",
+ "pos": [
+ 1.3,
+ -0.55,
+ 1.55
+ ],
+ "target": [
+ 0.55,
+ 0.03,
+ 1.1
+ ],
+ "fovy": 45
+ }
+ ],
+ "predicate": {
+ "boot_max_shift_m": 0.03,
+ "boot_max_tilt_rad": 0.35,
+ "on_boot_band_m": 0.01,
+ "brush_contact_controls": 10,
+ "withdraw_height_m": 0.04,
+ "withdraw_distance_m": 0.18,
+ "rest_speed_m_s": 0.05,
+ "hold_controls": 50,
+ "workspace": {
+ "min": [
+ 0.25,
+ -0.45,
+ 0.886
+ ],
+ "max": [
+ 1.2,
+ 0.45,
+ 1.8
+ ]
+ },
+ "brush_fall_speed_m_s": 0.2
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "mechanism": "free boot on a fixed rack peg, free brush and six free clods; contact and gravity only",
+ "modeling": "Rigid boot (Poly Haven Rubber Boots, CC0) with the source scene's 292 convex contact patches and an invisible interior proxy (footbed pad and shaft sleeve) that rests on the square rack peg; rigid 1 g clods with friction only (the source scene's cohesive bond law is not used); brush bristles as one compliant contact pad; rubber-lined tray floor with soft, well-damped contact."
+ }
+ ]
+}
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/checker.py b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/checker.py
new file mode 100644
index 0000000000..cf63bd21f6
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/checker.py
@@ -0,0 +1,269 @@
+"""Success / fail-fast predicate of ``boot_sole_brush``, evaluated from simulator state only (never writes it).
+
+Fail-fast (checked after every 2 ms physics substep; the first one is permanent):
+ unstable_physics MuJoCo reports a bad qpos/qvel/qacc
+ robot_collision any part of the robot other than the working right hand (the stand, the torso, an arm
+ link or flange of either arm, the parked left hand) touches anything (furniture, boot,
+ brush, clods, the floor, or the robot itself)
+ boot_displaced boot origin > 0.03 m from its reset position, or boot axis tilted > 0.35 rad from reset
+ debris_outside_tray a clod touches the counter or the floor, falls below the counter top, or leaves the box
+ hand_touched_debris any hand geometry touches a clod (debris must be brushed, not picked)
+ brush_dropped the brush touches the floor, the tray or the rack, falls below the counter top, leaves
+ the box, or is released in the air (no contact except clods while its centre of mass
+ sinks faster than brush_fall_speed_m_s; checked every substep, so it cannot be re-caught)
+Ordered stages (evaluated after every control):
+ 1 brush_on_sole the bristle pad touches the boot while the hand touches the brush and the brush is off the
+ counter, for at least ``brush_contact_controls`` controls (cumulative)
+ 2 debris_in_tray after stage 1: every clod lies in the tray (centre inside the tray walls, below the wall top),
+ however it got there (brushed by the bristles, pushed by the brush back or knocked off by another
+ clod); the per-clod brushed flags (bristle pad touched it while it was up on the boot, centre at
+ most on_boot_band_m below the sole plane) are reported, not required
+ 3 withdrawn_hold after stage 2: every clod in the tray and at rest, the brush touches neither boot nor clods and
+ is withdrawn (pad centre >= 0.04 m above the sole plane or >= 0.18 m horizontally from the sole
+ centre), boot within tolerance; continuously for ``hold_controls`` controls -> success
+"""
+
+from __future__ import annotations
+
+import mujoco
+import numpy as np
+
+from scene import robot_parts
+
+UNSTABLE = (mujoco.mjtWarning.mjWARN_BADQPOS, mujoco.mjtWarning.mjWARN_BADQVEL, mujoco.mjtWarning.mjWARN_BADQACC)
+STAGES = ("brush_on_sole", "debris_in_tray", "withdrawn_hold")
+
+
+def _descendants(model, root):
+ out = {int(root)}
+ for body in range(model.nbody):
+ if int(model.body_parentid[body]) in out:
+ out.add(body)
+ return out
+
+
+class BrushChecker:
+ def __init__(self, model, data, config):
+ self.m, self.d, self.cfg = model, data, config
+ p = config["predicate"]
+ self.p = p
+ m = model
+ ng = m.ngeom
+ gbody = np.asarray(m.geom_bodyid)
+ self.boot = m.body("boot").id
+ self.brush = m.body("brush").id
+ self.clods = np.array([m.body(f"clod_{i}").id for i in range(len(config["clods"]))])
+ hand_bodies = _descendants(m, m.body("wrist_stage").id)
+ _, robot_rest = robot_parts(m)
+ self.robot_g = np.isin(gbody, sorted(robot_rest - hand_bodies))
+ brush_bodies = _descendants(m, self.brush)
+ self.hand_g = np.isin(gbody, list(hand_bodies))
+ self.brush_g = np.isin(gbody, list(brush_bodies))
+ self.pad_g = np.zeros(ng, bool)
+ self.pad_g[m.geom("brush_bristle_pad").id] = True
+ self.boot_g = gbody == self.boot
+ self.clod_g = np.full(ng, -1, np.int16)
+ for i, b in enumerate(self.clods):
+ self.clod_g[gbody == b] = i
+ self.ground_g = np.zeros(ng, bool)
+ self.ground_g[[m.geom("floor").id, m.geom("counter").id]] = True
+ self.floor_g = np.zeros(ng, bool)
+ self.floor_g[m.geom("floor").id] = True
+ self.counter_g = np.zeros(ng, bool)
+ self.counter_g[m.geom("counter").id] = True
+ self.tray_g = np.zeros(ng, bool)
+ for g in range(ng):
+ name = m.geom(g).name or ""
+ if name.startswith(("tray_", "rack_")):
+ self.tray_g[g] = True
+ t = config["tray"]
+ inner = np.array(t["half"]) - t["wall_thickness"]
+ self.tray_lo = np.array(t["center"]) - inner
+ self.tray_hi = np.array(t["center"]) + inner
+ self.tray_top = config["table_z"] + t["wall_height"]
+ self.table_z = config["table_z"]
+ self.ws_lo = np.array(p["workspace"]["min"], float)
+ self.ws_hi = np.array(p["workspace"]["max"], float)
+ self.vel = np.zeros(6)
+ self.reset()
+
+ # ------------------------------------------------------------------ state
+ def reset(self):
+ """Call after the frozen reset has settled: the boot pose becomes the reference."""
+ d = self.d
+ self.boot_pos0 = d.xpos[self.boot].copy()
+ self.boot_axis0 = d.xmat[self.boot].reshape(3, 3)[:, 2].copy()
+ self.brushed = np.zeros(len(self.clods), bool)
+ self.brush_contact_controls = 0
+ self.stage = 0
+ self.hold = 0
+ self.success = False
+ self.failure = None
+ self.failure_detail = None
+ self.last = {}
+
+ def snapshot(self):
+ return dict(boot_pos0=self.boot_pos0.copy(), boot_axis0=self.boot_axis0.copy(), brushed=self.brushed.copy(),
+ brush_contact_controls=self.brush_contact_controls, stage=self.stage, hold=self.hold,
+ success=self.success, failure=self.failure, failure_detail=self.failure_detail, last=dict(self.last))
+
+ def restore(self, s):
+ self.boot_pos0, self.boot_axis0 = s["boot_pos0"].copy(), s["boot_axis0"].copy()
+ self.brushed = s["brushed"].copy()
+ self.brush_contact_controls, self.stage, self.hold = s["brush_contact_controls"], s["stage"], s["hold"]
+ self.success, self.failure, self.failure_detail = s["success"], s["failure"], s["failure_detail"]
+ self.last = dict(s["last"])
+
+ def vector(self):
+ """Predicate state folded into ``state_sha``."""
+ return np.concatenate([self.boot_pos0, self.boot_axis0, self.brushed.astype(float),
+ [self.brush_contact_controls, self.stage, self.hold, float(self.success),
+ float(self.failure is not None)]])
+
+ # ------------------------------------------------------------------ geometry helpers
+ def boot_error(self):
+ d = self.d
+ shift = float(np.linalg.norm(d.xpos[self.boot] - self.boot_pos0))
+ axis = d.xmat[self.boot].reshape(3, 3)[:, 2]
+ tilt = float(np.arccos(np.clip(axis @ self.boot_axis0, -1, 1)))
+ return shift, tilt
+
+ def contacts(self):
+ d = self.d
+ n = d.ncon
+ if not n:
+ return np.zeros((0,), int), np.zeros((0,), int)
+ geom = d.contact.geom[:n]
+ active = d.contact.efc_address[:n] >= 0
+ return geom[active, 0], geom[active, 1]
+
+ def in_tray(self):
+ pos = self.d.xpos[self.clods]
+ return (np.all((pos[:, :2] >= self.tray_lo) & (pos[:, :2] <= self.tray_hi), axis=1)
+ & (pos[:, 2] < self.tray_top) & (pos[:, 2] > self.table_z))
+
+ # ------------------------------------------------------------------ per physics substep
+ def substep(self, control, substep):
+ """Fail-fast checks and per-clod brushed flags after one physics substep. Returns True on failure."""
+ if self.failure:
+ return True
+ d = self.d
+ if any(d.warning[w].number for w in UNSTABLE):
+ return self._fail("unstable_physics", control, substep)
+ shift, tilt = self.boot_error()
+ if shift > self.p["boot_max_shift_m"] or tilt > self.p["boot_max_tilt_rad"]:
+ return self._fail("boot_displaced", control, substep, shift_m=shift, tilt_rad=tilt)
+ clod_pos = d.xpos[self.clods]
+ bad = np.flatnonzero((clod_pos[:, 2] < self.table_z)
+ | np.any((clod_pos < self.ws_lo) | (clod_pos > self.ws_hi), axis=1))
+ if bad.size:
+ return self._fail("debris_outside_tray", control, substep, clod=int(bad[0]), where="below_or_outside")
+ bp = d.xpos[self.brush]
+ if bp[2] < self.table_z or np.any(bp < self.ws_lo) or np.any(bp > self.ws_hi):
+ return self._fail("brush_dropped", control, substep, where="below_or_outside")
+ g1, g2 = self.contacts()
+ if g1.size:
+ # The arm, the stand and the parked hand must never touch anything: only the working hand acts.
+ hit = self.robot_g[g1] | self.robot_g[g2]
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ return self._fail("robot_collision", control, substep,
+ geoms=[self._geom_label(int(g1[k])), self._geom_label(int(g2[k]))])
+ c1, c2 = self.clod_g[g1], self.clod_g[g2]
+ # clod on counter / floor
+ hit = ((c1 >= 0) & self.ground_g[g2]) | ((c2 >= 0) & self.ground_g[g1])
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ return self._fail("debris_outside_tray", control, substep, clod=int(max(c1[k], c2[k])),
+ where="touched_counter_or_floor")
+ hit = ((c1 >= 0) & self.hand_g[g2]) | ((c2 >= 0) & self.hand_g[g1])
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ hand_geom = int(g2[k] if self.hand_g[g2[k]] else g1[k])
+ return self._fail("hand_touched_debris", control, substep, clod=int(max(c1[k], c2[k])),
+ hand_geom=self.m.geom(hand_geom).name)
+ hit = (self.brush_g[g1] & (self.floor_g[g2] | self.tray_g[g2])) | (
+ self.brush_g[g2] & (self.floor_g[g1] | self.tray_g[g1]))
+ if hit.any():
+ return self._fail("brush_dropped", control, substep, where="touched_floor_or_tray")
+ # L1: a brush released in the air fails at the first substep it is unsupported and falling (no catch window):
+ # no contact with anything but clods, and its centre of mass sinking faster than brush_fall_speed_m_s.
+ if g1.size:
+ supported = bool(np.any((self.brush_g[g1] & (self.clod_g[g2] < 0) & ~self.brush_g[g2])
+ | (self.brush_g[g2] & (self.clod_g[g1] < 0) & ~self.brush_g[g1])))
+ else:
+ supported = False
+ if not supported:
+ mujoco.mj_objectVelocity(self.m, d, mujoco.mjtObj.mjOBJ_BODY, self.brush, self.vel, 0)
+ if self.vel[5] < -self.p["brush_fall_speed_m_s"]:
+ return self._fail("brush_dropped", control, substep, where="released_in_air",
+ vz_m_s=float(self.vel[5]))
+ if g1.size:
+ c1, c2 = self.clod_g[g1], self.clod_g[g2]
+ # brushed flags: a clod touched by the bristle pad (not the wooden back) while still up on the boot
+ up = clod_pos[:, 2] >= self.d.xpos[self.boot][2] - self.p["on_boot_band_m"]
+ touched = (c1 >= 0) & self.pad_g[g2]
+ for k in np.flatnonzero(touched):
+ if up[c1[k]]:
+ self.brushed[c1[k]] = True
+ touched = (c2 >= 0) & self.pad_g[g1]
+ for k in np.flatnonzero(touched):
+ if up[c2[k]]:
+ self.brushed[c2[k]] = True
+ return False
+
+ def _geom_label(self, g):
+ return self.m.geom(g).name or f"{self.m.body(int(self.m.geom_bodyid[g])).name}#geom{g}"
+
+ def _fail(self, reason, control, substep, **detail):
+ self.failure = reason
+ self.failure_detail = {"control": int(control), "substep": int(substep), **detail}
+ return True
+
+ # ------------------------------------------------------------------ per control
+ def features(self):
+ m, d = self.m, self.d
+ g1, g2 = self.contacts()
+ pad_boot = bool(np.any((self.pad_g[g1] & self.boot_g[g2]) | (self.pad_g[g2] & self.boot_g[g1])))
+ hand_brush = bool(np.any((self.hand_g[g1] & self.brush_g[g2]) | (self.hand_g[g2] & self.brush_g[g1])))
+ brush_counter = bool(np.any((self.brush_g[g1] & self.counter_g[g2]) | (self.brush_g[g2] & self.counter_g[g1])))
+ brush_boot = bool(np.any((self.brush_g[g1] & self.boot_g[g2]) | (self.brush_g[g2] & self.boot_g[g1])))
+ brush_clod = bool(np.any((self.brush_g[g1] & (self.clod_g[g2] >= 0)) | (self.brush_g[g2] & (self.clod_g[g1] >= 0))))
+ speeds = []
+ for b in self.clods:
+ mujoco.mj_objectVelocity(m, d, mujoco.mjtObj.mjOBJ_BODY, int(b), self.vel, 0)
+ speeds.append(float(np.linalg.norm(self.vel[3:])))
+ in_tray = self.in_tray()
+ pad = d.geom_xpos[m.geom("brush_bristle_pad").id]
+ sole_z = float(d.xpos[self.boot][2])
+ sole_center = d.xpos[self.boot][:2]
+ withdrawn = (not brush_boot and not brush_clod and (
+ pad[2] >= sole_z + self.p["withdraw_height_m"]
+ or float(np.linalg.norm(pad[:2] - sole_center)) >= self.p["withdraw_distance_m"]))
+ shift, tilt = self.boot_error()
+ return dict(pad_on_boot=pad_boot, hand_on_brush=hand_brush, brush_on_counter=brush_counter,
+ brush_touches_boot=brush_boot, brush_touches_debris=brush_clod, brush_withdrawn=bool(withdrawn),
+ clods_in_tray=int(in_tray.sum()), in_tray=in_tray.tolist(), clods_brushed=int(self.brushed.sum()),
+ brushed=self.brushed.tolist(), max_clod_speed=max(speeds), boot_shift_m=shift, boot_tilt_rad=tilt,
+ clod_positions=d.xpos[self.clods].round(4).tolist())
+
+ def control(self, steps):
+ """Stage update after a control (all substeps executed, no failure)."""
+ if self.failure or self.success:
+ return
+ f = self.features()
+ n = len(self.clods)
+ if f["pad_on_boot"] and f["hand_on_brush"] and not f["brush_on_counter"]:
+ self.brush_contact_controls += 1
+ if self.stage == 0 and self.brush_contact_controls >= self.p["brush_contact_controls"]:
+ self.stage = 1
+ all_in = f["clods_in_tray"] == n # a clean sole: every clod in the tray, however it got off the boot
+ if self.stage == 1 and all_in:
+ self.stage = 2
+ terminal = (self.stage >= 2 and all_in and f["brush_withdrawn"]
+ and f["max_clod_speed"] <= self.p["rest_speed_m_s"])
+ self.hold = self.hold + 1 if terminal else 0
+ if self.hold >= self.p["hold_controls"]:
+ self.stage = 3
+ self.success = True
+ self.last = f
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/instance.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/instance.json
index 9946211156..3c1f062495 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/instance.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/instance.json
@@ -331,7 +331,7 @@
0.0
]
},
- "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"marvin": {
"base_pos": [
0.147,
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/task.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/task.json
new file mode 100644
index 0000000000..521f93230b
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/environment/task.json
@@ -0,0 +1,398 @@
+{
+ "schema_version": 1,
+ "id": "boot_sole_brush",
+ "title": "Brush the debris off a boot sole",
+ "category": "tool_use",
+ "difficulty": "hard",
+ "description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "settle_steps": 250,
+ "table_z": 0.886,
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ 0.147,
+ -0.591,
+ 0.1
+ ],
+ "base_yaw": 1.5707963267948966
+ },
+ "counter": {
+ "center": [
+ 0.72,
+ 0.0
+ ],
+ "half": [
+ 0.43,
+ 0.39,
+ 0.02
+ ]
+ },
+ "tray": {
+ "center": [
+ 0.53,
+ 0.1
+ ],
+ "half": [
+ 0.17,
+ 0.29
+ ],
+ "wall_height": 0.045,
+ "wall_thickness": 0.006,
+ "floor_thickness": 0.012
+ },
+ "rack": {
+ "peg_xy": [
+ 0.595,
+ 0.1
+ ],
+ "peg_radius": 0.02,
+ "peg_top_z": 1.223,
+ "base_radius": 0.045,
+ "base_half_height": 0.004
+ },
+ "boot": {
+ "pos": [
+ 0.53,
+ 0.1,
+ 1.293
+ ],
+ "friction": 0.9,
+ "shaft_axis_local": [
+ 0.0,
+ 0.065
+ ],
+ "footbed_local_z": 0.062,
+ "sleeve_local_z": [
+ 0.1,
+ 0.24
+ ],
+ "sleeve_clearance": 0.0005
+ },
+ "clod_mass": 0.001,
+ "clod_friction": 0.8,
+ "clods": [
+ {
+ "local_xy": [
+ -0.025,
+ -0.085
+ ],
+ "pos": [
+ 0.445,
+ 0.075,
+ 1.296662
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ -0.068
+ ],
+ "pos": [
+ 0.462,
+ 0.125,
+ 1.29646
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ -0.047
+ ],
+ "pos": [
+ 0.483,
+ 0.075,
+ 1.296448
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.036
+ ],
+ "pos": [
+ 0.566,
+ 0.125,
+ 1.296609
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ 0.048
+ ],
+ "pos": [
+ 0.578,
+ 0.075,
+ 1.296514
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.083
+ ],
+ "pos": [
+ 0.613,
+ 0.125,
+ 1.296655
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ }
+ ],
+ "brush": {
+ "pos": [
+ 0.68,
+ -0.28,
+ 0.9175
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ],
+ "bristle_friction": 0.7,
+ "pad": {
+ "half": [
+ 0.0525,
+ 0.0145,
+ 0.01
+ ],
+ "pos": [
+ 0,
+ 0,
+ -0.0215
+ ],
+ "solref": [
+ 0.006,
+ 1
+ ]
+ }
+ },
+ "cameras": [
+ {
+ "name": "overview",
+ "pos": [
+ 0.02,
+ -0.86,
+ 1.8
+ ],
+ "target": [
+ 0.58,
+ 0.0,
+ 1.12
+ ],
+ "fovy": 45
+ },
+ {
+ "name": "closeup",
+ "pos": [
+ 0.8,
+ -0.22,
+ 1.52
+ ],
+ "target": [
+ 0.52,
+ 0.1,
+ 1.28
+ ],
+ "fovy": 40
+ },
+ {
+ "name": "side",
+ "pos": [
+ 1.3,
+ -0.55,
+ 1.55
+ ],
+ "target": [
+ 0.55,
+ 0.03,
+ 1.1
+ ],
+ "fovy": 45
+ }
+ ],
+ "predicate": {
+ "boot_max_shift_m": 0.03,
+ "boot_max_tilt_rad": 0.35,
+ "on_boot_band_m": 0.01,
+ "brush_contact_controls": 10,
+ "withdraw_height_m": 0.04,
+ "withdraw_distance_m": 0.18,
+ "rest_speed_m_s": 0.05,
+ "hold_controls": 50,
+ "workspace": {
+ "min": [
+ 0.25,
+ -0.45,
+ 0.886
+ ],
+ "max": [
+ 1.2,
+ 0.45,
+ 1.8
+ ]
+ },
+ "brush_fall_speed_m_s": 0.2
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "mechanism": "free boot on a fixed rack peg, free brush and six free clods; contact and gravity only",
+ "modeling": "Rigid boot (Poly Haven Rubber Boots, CC0) with the source scene's 292 convex contact patches and an invisible interior proxy (footbed pad and shaft sleeve) that rests on the square rack peg; rigid 1 g clods with friction only (the source scene's cohesive bond law is not used); brush bristles as one compliant contact pad; rubber-lined tray floor with soft, well-damped contact."
+}
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/instruction.md b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/instruction.md
index f3fc74976b..0a13e131f7 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/instruction.md
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/instruction.md
@@ -1,6 +1,6 @@
# DexHand: Brush the debris off a boot sole
-Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
You control the right arm and right hand of a fixed Tianji Marvin robot: a stand with two 7-joint arms and a dexterous
hand on each wrist. The stand rests on the floor (z = 0) beside the counter's -y edge, with its base origin at world
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/Dockerfile b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/Dockerfile
index 847a5c47aa..ce3d94fcf2 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/Dockerfile
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/Dockerfile
@@ -1,6 +1,6 @@
FROM ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350
COPY . /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/tests/grade.py /privileged/environment/arm_rig.py /privileged/environment/variants/becf9b54ed/catalog.json /privileged/environment/variants/27a4a8477d/checker.py /privileged/environment/variants/0ebff40c75/replay.py /privileged/environment/variants/e6e22842e5/runtime.py /privileged/environment/variants/53195e59be/scene.py /privileged/environment/variants/b4ababbd9e/task.json /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/tests/grade.py /privileged/environment/arm_rig.py /privileged/environment/variants/0ebff40c75/replay.py /privileged/environment/variants/e6e22842e5/runtime.py /privileged/environment/variants/53195e59be/scene.py /tests/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/PROVENANCE.json /privileged/environment/assets/boot/inspection.json /privileged/environment/assets/boot/left-clean.obj /tests/assets/boot/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/collision/patch-000.stl /privileged/environment/assets/boot/collision/patch-001.stl /privileged/environment/assets/boot/collision/patch-003.stl /privileged/environment/assets/boot/collision/patch-004.stl /privileged/environment/assets/boot/collision/patch-005.stl /privileged/environment/assets/boot/collision/patch-006.stl /privileged/environment/assets/boot/collision/patch-007.stl /privileged/environment/assets/boot/collision/patch-008.stl /privileged/environment/assets/boot/collision/patch-009.stl /privileged/environment/assets/boot/collision/patch-010.stl /privileged/environment/assets/boot/collision/patch-011.stl /privileged/environment/assets/boot/collision/patch-012.stl /privileged/environment/assets/boot/collision/patch-013.stl /privileged/environment/assets/boot/collision/patch-014.stl /privileged/environment/assets/boot/collision/patch-016.stl /privileged/environment/assets/boot/collision/patch-017.stl /privileged/environment/assets/boot/collision/patch-018.stl /privileged/environment/assets/boot/collision/patch-020.stl /privileged/environment/assets/boot/collision/patch-021.stl /privileged/environment/assets/boot/collision/patch-022.stl /privileged/environment/assets/boot/collision/patch-023.stl /privileged/environment/assets/boot/collision/patch-024.stl /privileged/environment/assets/boot/collision/patch-025.stl /privileged/environment/assets/boot/collision/patch-026.stl /privileged/environment/assets/boot/collision/patch-027.stl /privileged/environment/assets/boot/collision/patch-028.stl /privileged/environment/assets/boot/collision/patch-029.stl /privileged/environment/assets/boot/collision/patch-030.stl /privileged/environment/assets/boot/collision/patch-031.stl /privileged/environment/assets/boot/collision/patch-032.stl /privileged/environment/assets/boot/collision/patch-033.stl /privileged/environment/assets/boot/collision/patch-034.stl /privileged/environment/assets/boot/collision/patch-035.stl /privileged/environment/assets/boot/collision/patch-036.stl /privileged/environment/assets/boot/collision/patch-037.stl /privileged/environment/assets/boot/collision/patch-038.stl /privileged/environment/assets/boot/collision/patch-039.stl /privileged/environment/assets/boot/collision/patch-040.stl /privileged/environment/assets/boot/collision/patch-041.stl /privileged/environment/assets/boot/collision/patch-042.stl /privileged/environment/assets/boot/collision/patch-043.stl /privileged/environment/assets/boot/collision/patch-044.stl /privileged/environment/assets/boot/collision/patch-046.stl /privileged/environment/assets/boot/collision/patch-048.stl /privileged/environment/assets/boot/collision/patch-049.stl /privileged/environment/assets/boot/collision/patch-051.stl /privileged/environment/assets/boot/collision/patch-052.stl /privileged/environment/assets/boot/collision/patch-053.stl /privileged/environment/assets/boot/collision/patch-055.stl /privileged/environment/assets/boot/collision/patch-056.stl /privileged/environment/assets/boot/collision/patch-057.stl /privileged/environment/assets/boot/collision/patch-058.stl /privileged/environment/assets/boot/collision/patch-059.stl /privileged/environment/assets/boot/collision/patch-060.stl /privileged/environment/assets/boot/collision/patch-061.stl /privileged/environment/assets/boot/collision/patch-062.stl /privileged/environment/assets/boot/collision/patch-063.stl /privileged/environment/assets/boot/collision/patch-064.stl /privileged/environment/assets/boot/collision/patch-065.stl /privileged/environment/assets/boot/collision/patch-066.stl /privileged/environment/assets/boot/collision/patch-067.stl /privileged/environment/assets/boot/collision/patch-068.stl /privileged/environment/assets/boot/collision/patch-069.stl /privileged/environment/assets/boot/collision/patch-070.stl /privileged/environment/assets/boot/collision/patch-071.stl /privileged/environment/assets/boot/collision/patch-072.stl /privileged/environment/assets/boot/collision/patch-073.stl /privileged/environment/assets/boot/collision/patch-074.stl /privileged/environment/assets/boot/collision/patch-075.stl /privileged/environment/assets/boot/collision/patch-077.stl /privileged/environment/assets/boot/collision/patch-079.stl /privileged/environment/assets/boot/collision/patch-080.stl /privileged/environment/assets/boot/collision/patch-082.stl /privileged/environment/assets/boot/collision/patch-083.stl /privileged/environment/assets/boot/collision/patch-084.stl /privileged/environment/assets/boot/collision/patch-086.stl /privileged/environment/assets/boot/collision/patch-087.stl /privileged/environment/assets/boot/collision/patch-088.stl /privileged/environment/assets/boot/collision/patch-089.stl /privileged/environment/assets/boot/collision/patch-091.stl /privileged/environment/assets/boot/collision/patch-092.stl /privileged/environment/assets/boot/collision/patch-093.stl /privileged/environment/assets/boot/collision/patch-094.stl /privileged/environment/assets/boot/collision/patch-095.stl /privileged/environment/assets/boot/collision/patch-096.stl /privileged/environment/assets/boot/collision/patch-097.stl /privileged/environment/assets/boot/collision/patch-099.stl /privileged/environment/assets/boot/collision/patch-100.stl /privileged/environment/assets/boot/collision/patch-101.stl /privileged/environment/assets/boot/collision/patch-102.stl /privileged/environment/assets/boot/collision/patch-103.stl /privileged/environment/assets/boot/collision/patch-104.stl /privileged/environment/assets/boot/collision/patch-105.stl /privileged/environment/assets/boot/collision/patch-106.stl /privileged/environment/assets/boot/collision/patch-107.stl /privileged/environment/assets/boot/collision/patch-108.stl /privileged/environment/assets/boot/collision/patch-109.stl /privileged/environment/assets/boot/collision/patch-110.stl /privileged/environment/assets/boot/collision/patch-111.stl /privileged/environment/assets/boot/collision/patch-112.stl /privileged/environment/assets/boot/collision/patch-114.stl /privileged/environment/assets/boot/collision/patch-115.stl /privileged/environment/assets/boot/collision/patch-116.stl /privileged/environment/assets/boot/collision/patch-118.stl /privileged/environment/assets/boot/collision/patch-119.stl /privileged/environment/assets/boot/collision/patch-120.stl /privileged/environment/assets/boot/collision/patch-121.stl /privileged/environment/assets/boot/collision/patch-122.stl /privileged/environment/assets/boot/collision/patch-123.stl /privileged/environment/assets/boot/collision/patch-124.stl /privileged/environment/assets/boot/collision/patch-125.stl /privileged/environment/assets/boot/collision/patch-126.stl /privileged/environment/assets/boot/collision/patch-127.stl /privileged/environment/assets/boot/collision/patch-128.stl /privileged/environment/assets/boot/collision/patch-129.stl /privileged/environment/assets/boot/collision/patch-130.stl /privileged/environment/assets/boot/collision/patch-131.stl /privileged/environment/assets/boot/collision/patch-132.stl /privileged/environment/assets/boot/collision/patch-134.stl /privileged/environment/assets/boot/collision/patch-135.stl /privileged/environment/assets/boot/collision/patch-136.stl /privileged/environment/assets/boot/collision/patch-137.stl /privileged/environment/assets/boot/collision/patch-138.stl /privileged/environment/assets/boot/collision/patch-139.stl /privileged/environment/assets/boot/collision/patch-140.stl /privileged/environment/assets/boot/collision/patch-141.stl /privileged/environment/assets/boot/collision/patch-142.stl /privileged/environment/assets/boot/collision/patch-143.stl /privileged/environment/assets/boot/collision/patch-144.stl /privileged/environment/assets/boot/collision/patch-145.stl /privileged/environment/assets/boot/collision/patch-146.stl /privileged/environment/assets/boot/collision/patch-147.stl /privileged/environment/assets/boot/collision/patch-148.stl /privileged/environment/assets/boot/collision/patch-149.stl /privileged/environment/assets/boot/collision/patch-150.stl /privileged/environment/assets/boot/collision/patch-151.stl /privileged/environment/assets/boot/collision/patch-152.stl /privileged/environment/assets/boot/collision/patch-153.stl /privileged/environment/assets/boot/collision/patch-155.stl /privileged/environment/assets/boot/collision/patch-156.stl /privileged/environment/assets/boot/collision/patch-157.stl /privileged/environment/assets/boot/collision/patch-158.stl /privileged/environment/assets/boot/collision/patch-159.stl /privileged/environment/assets/boot/collision/patch-160.stl /privileged/environment/assets/boot/collision/patch-161.stl /privileged/environment/assets/boot/collision/patch-162.stl /privileged/environment/assets/boot/collision/patch-163.stl /privileged/environment/assets/boot/collision/patch-164.stl /privileged/environment/assets/boot/collision/patch-165.stl /privileged/environment/assets/boot/collision/patch-166.stl /privileged/environment/assets/boot/collision/patch-167.stl /privileged/environment/assets/boot/collision/patch-168.stl /privileged/environment/assets/boot/collision/patch-170.stl /privileged/environment/assets/boot/collision/patch-171.stl /privileged/environment/assets/boot/collision/patch-172.stl /privileged/environment/assets/boot/collision/patch-173.stl /privileged/environment/assets/boot/collision/patch-174.stl /privileged/environment/assets/boot/collision/patch-175.stl /privileged/environment/assets/boot/collision/patch-176.stl /privileged/environment/assets/boot/collision/patch-177.stl /privileged/environment/assets/boot/collision/patch-178.stl /privileged/environment/assets/boot/collision/patch-179.stl /privileged/environment/assets/boot/collision/patch-180.stl /privileged/environment/assets/boot/collision/patch-181.stl /privileged/environment/assets/boot/collision/patch-182.stl /privileged/environment/assets/boot/collision/patch-183.stl /privileged/environment/assets/boot/collision/patch-184.stl /privileged/environment/assets/boot/collision/patch-185.stl /privileged/environment/assets/boot/collision/patch-186.stl /privileged/environment/assets/boot/collision/patch-187.stl /privileged/environment/assets/boot/collision/patch-188.stl /privileged/environment/assets/boot/collision/patch-189.stl /privileged/environment/assets/boot/collision/patch-190.stl /privileged/environment/assets/boot/collision/patch-191.stl /privileged/environment/assets/boot/collision/patch-192.stl /privileged/environment/assets/boot/collision/patch-193.stl /privileged/environment/assets/boot/collision/patch-194.stl /privileged/environment/assets/boot/collision/patch-195.stl /privileged/environment/assets/boot/collision/patch-196.stl /privileged/environment/assets/boot/collision/patch-197.stl /privileged/environment/assets/boot/collision/patch-198.stl /privileged/environment/assets/boot/collision/patch-199.stl /privileged/environment/assets/boot/collision/patch-200.stl /privileged/environment/assets/boot/collision/patch-201.stl /privileged/environment/assets/boot/collision/patch-202.stl /privileged/environment/assets/boot/collision/patch-203.stl /privileged/environment/assets/boot/collision/patch-204.stl /privileged/environment/assets/boot/collision/patch-205.stl /privileged/environment/assets/boot/collision/patch-206.stl /privileged/environment/assets/boot/collision/patch-207.stl /privileged/environment/assets/boot/collision/patch-208.stl /privileged/environment/assets/boot/collision/patch-209.stl /privileged/environment/assets/boot/collision/patch-211.stl /privileged/environment/assets/boot/collision/patch-212.stl /privileged/environment/assets/boot/collision/patch-213.stl /privileged/environment/assets/boot/collision/patch-214.stl /privileged/environment/assets/boot/collision/patch-216.stl /privileged/environment/assets/boot/collision/patch-217.stl /privileged/environment/assets/boot/collision/patch-218.stl /privileged/environment/assets/boot/collision/patch-219.stl /privileged/environment/assets/boot/collision/patch-220.stl /privileged/environment/assets/boot/collision/patch-221.stl /privileged/environment/assets/boot/collision/patch-222.stl /privileged/environment/assets/boot/collision/patch-223.stl /privileged/environment/assets/boot/collision/patch-224.stl /privileged/environment/assets/boot/collision/patch-225.stl /privileged/environment/assets/boot/collision/patch-226.stl /privileged/environment/assets/boot/collision/patch-227.stl /privileged/environment/assets/boot/collision/patch-228.stl /privileged/environment/assets/boot/collision/patch-229.stl /privileged/environment/assets/boot/collision/patch-230.stl /privileged/environment/assets/boot/collision/patch-231.stl /privileged/environment/assets/boot/collision/patch-232.stl /privileged/environment/assets/boot/collision/patch-233.stl /privileged/environment/assets/boot/collision/patch-234.stl /privileged/environment/assets/boot/collision/patch-235.stl /privileged/environment/assets/boot/collision/patch-236.stl /privileged/environment/assets/boot/collision/patch-237.stl /privileged/environment/assets/boot/collision/patch-238.stl /privileged/environment/assets/boot/collision/patch-239.stl /privileged/environment/assets/boot/collision/patch-240.stl /privileged/environment/assets/boot/collision/patch-241.stl /privileged/environment/assets/boot/collision/patch-242.stl /privileged/environment/assets/boot/collision/patch-243.stl /privileged/environment/assets/boot/collision/patch-244.stl /privileged/environment/assets/boot/collision/patch-245.stl /privileged/environment/assets/boot/collision/patch-246.stl /privileged/environment/assets/boot/collision/patch-247.stl /privileged/environment/assets/boot/collision/patch-248.stl /privileged/environment/assets/boot/collision/patch-249.stl /privileged/environment/assets/boot/collision/patch-250.stl /privileged/environment/assets/boot/collision/patch-251.stl /privileged/environment/assets/boot/collision/patch-252.stl /privileged/environment/assets/boot/collision/patch-253.stl /privileged/environment/assets/boot/collision/patch-254.stl /privileged/environment/assets/boot/collision/patch-255.stl /privileged/environment/assets/boot/collision/patch-256.stl /privileged/environment/assets/boot/collision/patch-257.stl /privileged/environment/assets/boot/collision/patch-258.stl /privileged/environment/assets/boot/collision/patch-259.stl /privileged/environment/assets/boot/collision/patch-260.stl /privileged/environment/assets/boot/collision/patch-261.stl /privileged/environment/assets/boot/collision/patch-262.stl /privileged/environment/assets/boot/collision/patch-263.stl /privileged/environment/assets/boot/collision/patch-264.stl /privileged/environment/assets/boot/collision/patch-265.stl /privileged/environment/assets/boot/collision/patch-266.stl /privileged/environment/assets/boot/collision/patch-267.stl /privileged/environment/assets/boot/collision/patch-268.stl /privileged/environment/assets/boot/collision/patch-269.stl /privileged/environment/assets/boot/collision/patch-270.stl /privileged/environment/assets/boot/collision/patch-271.stl /privileged/environment/assets/boot/collision/patch-272.stl /privileged/environment/assets/boot/collision/patch-273.stl /privileged/environment/assets/boot/collision/patch-274.stl /privileged/environment/assets/boot/collision/patch-275.stl /privileged/environment/assets/boot/collision/patch-276.stl /privileged/environment/assets/boot/collision/patch-277.stl /privileged/environment/assets/boot/collision/patch-278.stl /privileged/environment/assets/boot/collision/patch-279.stl /privileged/environment/assets/boot/collision/patch-280.stl /privileged/environment/assets/boot/collision/patch-281.stl /privileged/environment/assets/boot/collision/patch-282.stl /privileged/environment/assets/boot/collision/patch-283.stl /privileged/environment/assets/boot/collision/patch-284.stl /privileged/environment/assets/boot/collision/patch-285.stl /privileged/environment/assets/boot/collision/patch-286.stl /privileged/environment/assets/boot/collision/patch-287.stl /privileged/environment/assets/boot/collision/patch-288.stl /privileged/environment/assets/boot/collision/patch-289.stl /privileged/environment/assets/boot/collision/patch-290.stl /privileged/environment/assets/boot/collision/patch-291.stl /privileged/environment/assets/boot/collision/patch-292.stl /privileged/environment/assets/boot/collision/patch-293.stl /tests/assets/boot/collision/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/boot/textures/rubber_boots_diff_2k.png /privileged/environment/assets/boot/textures/rubber_boots_nor_gl_2k.jpg /tests/assets/boot/textures/
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/catalog.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/catalog.json
new file mode 100644
index 0000000000..7e77193294
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/catalog.json
@@ -0,0 +1,403 @@
+{
+ "schema_version": 1,
+ "tasks": [
+ {
+ "schema_version": 1,
+ "id": "boot_sole_brush",
+ "title": "Brush the debris off a boot sole",
+ "category": "tool_use",
+ "difficulty": "hard",
+ "description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "settle_steps": 250,
+ "table_z": 0.886,
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ 0.147,
+ -0.591,
+ 0.1
+ ],
+ "base_yaw": 1.5707963267948966
+ },
+ "counter": {
+ "center": [
+ 0.72,
+ 0.0
+ ],
+ "half": [
+ 0.43,
+ 0.39,
+ 0.02
+ ]
+ },
+ "tray": {
+ "center": [
+ 0.53,
+ 0.1
+ ],
+ "half": [
+ 0.17,
+ 0.29
+ ],
+ "wall_height": 0.045,
+ "wall_thickness": 0.006,
+ "floor_thickness": 0.012
+ },
+ "rack": {
+ "peg_xy": [
+ 0.595,
+ 0.1
+ ],
+ "peg_radius": 0.02,
+ "peg_top_z": 1.223,
+ "base_radius": 0.045,
+ "base_half_height": 0.004
+ },
+ "boot": {
+ "pos": [
+ 0.53,
+ 0.1,
+ 1.293
+ ],
+ "friction": 0.9,
+ "shaft_axis_local": [
+ 0.0,
+ 0.065
+ ],
+ "footbed_local_z": 0.062,
+ "sleeve_local_z": [
+ 0.1,
+ 0.24
+ ],
+ "sleeve_clearance": 0.0005
+ },
+ "clod_mass": 0.001,
+ "clod_friction": 0.8,
+ "clods": [
+ {
+ "local_xy": [
+ -0.025,
+ -0.085
+ ],
+ "pos": [
+ 0.445,
+ 0.075,
+ 1.296662
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ -0.068
+ ],
+ "pos": [
+ 0.462,
+ 0.125,
+ 1.29646
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ -0.047
+ ],
+ "pos": [
+ 0.483,
+ 0.075,
+ 1.296448
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.036
+ ],
+ "pos": [
+ 0.566,
+ 0.125,
+ 1.296609
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ 0.048
+ ],
+ "pos": [
+ 0.578,
+ 0.075,
+ 1.296514
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.083
+ ],
+ "pos": [
+ 0.613,
+ 0.125,
+ 1.296655
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ }
+ ],
+ "brush": {
+ "pos": [
+ 0.68,
+ -0.28,
+ 0.9175
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ],
+ "bristle_friction": 0.7,
+ "pad": {
+ "half": [
+ 0.0525,
+ 0.0145,
+ 0.01
+ ],
+ "pos": [
+ 0,
+ 0,
+ -0.0215
+ ],
+ "solref": [
+ 0.006,
+ 1
+ ]
+ }
+ },
+ "cameras": [
+ {
+ "name": "overview",
+ "pos": [
+ 0.02,
+ -0.86,
+ 1.8
+ ],
+ "target": [
+ 0.58,
+ 0.0,
+ 1.12
+ ],
+ "fovy": 45
+ },
+ {
+ "name": "closeup",
+ "pos": [
+ 0.8,
+ -0.22,
+ 1.52
+ ],
+ "target": [
+ 0.52,
+ 0.1,
+ 1.28
+ ],
+ "fovy": 40
+ },
+ {
+ "name": "side",
+ "pos": [
+ 1.3,
+ -0.55,
+ 1.55
+ ],
+ "target": [
+ 0.55,
+ 0.03,
+ 1.1
+ ],
+ "fovy": 45
+ }
+ ],
+ "predicate": {
+ "boot_max_shift_m": 0.03,
+ "boot_max_tilt_rad": 0.35,
+ "on_boot_band_m": 0.01,
+ "brush_contact_controls": 10,
+ "withdraw_height_m": 0.04,
+ "withdraw_distance_m": 0.18,
+ "rest_speed_m_s": 0.05,
+ "hold_controls": 50,
+ "workspace": {
+ "min": [
+ 0.25,
+ -0.45,
+ 0.886
+ ],
+ "max": [
+ 1.2,
+ 0.45,
+ 1.8
+ ]
+ },
+ "brush_fall_speed_m_s": 0.2
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "mechanism": "free boot on a fixed rack peg, free brush and six free clods; contact and gravity only",
+ "modeling": "Rigid boot (Poly Haven Rubber Boots, CC0) with the source scene's 292 convex contact patches and an invisible interior proxy (footbed pad and shaft sleeve) that rests on the square rack peg; rigid 1 g clods with friction only (the source scene's cohesive bond law is not used); brush bristles as one compliant contact pad; rubber-lined tray floor with soft, well-damped contact."
+ }
+ ]
+}
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/checker.py b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/checker.py
new file mode 100644
index 0000000000..cf63bd21f6
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/checker.py
@@ -0,0 +1,269 @@
+"""Success / fail-fast predicate of ``boot_sole_brush``, evaluated from simulator state only (never writes it).
+
+Fail-fast (checked after every 2 ms physics substep; the first one is permanent):
+ unstable_physics MuJoCo reports a bad qpos/qvel/qacc
+ robot_collision any part of the robot other than the working right hand (the stand, the torso, an arm
+ link or flange of either arm, the parked left hand) touches anything (furniture, boot,
+ brush, clods, the floor, or the robot itself)
+ boot_displaced boot origin > 0.03 m from its reset position, or boot axis tilted > 0.35 rad from reset
+ debris_outside_tray a clod touches the counter or the floor, falls below the counter top, or leaves the box
+ hand_touched_debris any hand geometry touches a clod (debris must be brushed, not picked)
+ brush_dropped the brush touches the floor, the tray or the rack, falls below the counter top, leaves
+ the box, or is released in the air (no contact except clods while its centre of mass
+ sinks faster than brush_fall_speed_m_s; checked every substep, so it cannot be re-caught)
+Ordered stages (evaluated after every control):
+ 1 brush_on_sole the bristle pad touches the boot while the hand touches the brush and the brush is off the
+ counter, for at least ``brush_contact_controls`` controls (cumulative)
+ 2 debris_in_tray after stage 1: every clod lies in the tray (centre inside the tray walls, below the wall top),
+ however it got there (brushed by the bristles, pushed by the brush back or knocked off by another
+ clod); the per-clod brushed flags (bristle pad touched it while it was up on the boot, centre at
+ most on_boot_band_m below the sole plane) are reported, not required
+ 3 withdrawn_hold after stage 2: every clod in the tray and at rest, the brush touches neither boot nor clods and
+ is withdrawn (pad centre >= 0.04 m above the sole plane or >= 0.18 m horizontally from the sole
+ centre), boot within tolerance; continuously for ``hold_controls`` controls -> success
+"""
+
+from __future__ import annotations
+
+import mujoco
+import numpy as np
+
+from scene import robot_parts
+
+UNSTABLE = (mujoco.mjtWarning.mjWARN_BADQPOS, mujoco.mjtWarning.mjWARN_BADQVEL, mujoco.mjtWarning.mjWARN_BADQACC)
+STAGES = ("brush_on_sole", "debris_in_tray", "withdrawn_hold")
+
+
+def _descendants(model, root):
+ out = {int(root)}
+ for body in range(model.nbody):
+ if int(model.body_parentid[body]) in out:
+ out.add(body)
+ return out
+
+
+class BrushChecker:
+ def __init__(self, model, data, config):
+ self.m, self.d, self.cfg = model, data, config
+ p = config["predicate"]
+ self.p = p
+ m = model
+ ng = m.ngeom
+ gbody = np.asarray(m.geom_bodyid)
+ self.boot = m.body("boot").id
+ self.brush = m.body("brush").id
+ self.clods = np.array([m.body(f"clod_{i}").id for i in range(len(config["clods"]))])
+ hand_bodies = _descendants(m, m.body("wrist_stage").id)
+ _, robot_rest = robot_parts(m)
+ self.robot_g = np.isin(gbody, sorted(robot_rest - hand_bodies))
+ brush_bodies = _descendants(m, self.brush)
+ self.hand_g = np.isin(gbody, list(hand_bodies))
+ self.brush_g = np.isin(gbody, list(brush_bodies))
+ self.pad_g = np.zeros(ng, bool)
+ self.pad_g[m.geom("brush_bristle_pad").id] = True
+ self.boot_g = gbody == self.boot
+ self.clod_g = np.full(ng, -1, np.int16)
+ for i, b in enumerate(self.clods):
+ self.clod_g[gbody == b] = i
+ self.ground_g = np.zeros(ng, bool)
+ self.ground_g[[m.geom("floor").id, m.geom("counter").id]] = True
+ self.floor_g = np.zeros(ng, bool)
+ self.floor_g[m.geom("floor").id] = True
+ self.counter_g = np.zeros(ng, bool)
+ self.counter_g[m.geom("counter").id] = True
+ self.tray_g = np.zeros(ng, bool)
+ for g in range(ng):
+ name = m.geom(g).name or ""
+ if name.startswith(("tray_", "rack_")):
+ self.tray_g[g] = True
+ t = config["tray"]
+ inner = np.array(t["half"]) - t["wall_thickness"]
+ self.tray_lo = np.array(t["center"]) - inner
+ self.tray_hi = np.array(t["center"]) + inner
+ self.tray_top = config["table_z"] + t["wall_height"]
+ self.table_z = config["table_z"]
+ self.ws_lo = np.array(p["workspace"]["min"], float)
+ self.ws_hi = np.array(p["workspace"]["max"], float)
+ self.vel = np.zeros(6)
+ self.reset()
+
+ # ------------------------------------------------------------------ state
+ def reset(self):
+ """Call after the frozen reset has settled: the boot pose becomes the reference."""
+ d = self.d
+ self.boot_pos0 = d.xpos[self.boot].copy()
+ self.boot_axis0 = d.xmat[self.boot].reshape(3, 3)[:, 2].copy()
+ self.brushed = np.zeros(len(self.clods), bool)
+ self.brush_contact_controls = 0
+ self.stage = 0
+ self.hold = 0
+ self.success = False
+ self.failure = None
+ self.failure_detail = None
+ self.last = {}
+
+ def snapshot(self):
+ return dict(boot_pos0=self.boot_pos0.copy(), boot_axis0=self.boot_axis0.copy(), brushed=self.brushed.copy(),
+ brush_contact_controls=self.brush_contact_controls, stage=self.stage, hold=self.hold,
+ success=self.success, failure=self.failure, failure_detail=self.failure_detail, last=dict(self.last))
+
+ def restore(self, s):
+ self.boot_pos0, self.boot_axis0 = s["boot_pos0"].copy(), s["boot_axis0"].copy()
+ self.brushed = s["brushed"].copy()
+ self.brush_contact_controls, self.stage, self.hold = s["brush_contact_controls"], s["stage"], s["hold"]
+ self.success, self.failure, self.failure_detail = s["success"], s["failure"], s["failure_detail"]
+ self.last = dict(s["last"])
+
+ def vector(self):
+ """Predicate state folded into ``state_sha``."""
+ return np.concatenate([self.boot_pos0, self.boot_axis0, self.brushed.astype(float),
+ [self.brush_contact_controls, self.stage, self.hold, float(self.success),
+ float(self.failure is not None)]])
+
+ # ------------------------------------------------------------------ geometry helpers
+ def boot_error(self):
+ d = self.d
+ shift = float(np.linalg.norm(d.xpos[self.boot] - self.boot_pos0))
+ axis = d.xmat[self.boot].reshape(3, 3)[:, 2]
+ tilt = float(np.arccos(np.clip(axis @ self.boot_axis0, -1, 1)))
+ return shift, tilt
+
+ def contacts(self):
+ d = self.d
+ n = d.ncon
+ if not n:
+ return np.zeros((0,), int), np.zeros((0,), int)
+ geom = d.contact.geom[:n]
+ active = d.contact.efc_address[:n] >= 0
+ return geom[active, 0], geom[active, 1]
+
+ def in_tray(self):
+ pos = self.d.xpos[self.clods]
+ return (np.all((pos[:, :2] >= self.tray_lo) & (pos[:, :2] <= self.tray_hi), axis=1)
+ & (pos[:, 2] < self.tray_top) & (pos[:, 2] > self.table_z))
+
+ # ------------------------------------------------------------------ per physics substep
+ def substep(self, control, substep):
+ """Fail-fast checks and per-clod brushed flags after one physics substep. Returns True on failure."""
+ if self.failure:
+ return True
+ d = self.d
+ if any(d.warning[w].number for w in UNSTABLE):
+ return self._fail("unstable_physics", control, substep)
+ shift, tilt = self.boot_error()
+ if shift > self.p["boot_max_shift_m"] or tilt > self.p["boot_max_tilt_rad"]:
+ return self._fail("boot_displaced", control, substep, shift_m=shift, tilt_rad=tilt)
+ clod_pos = d.xpos[self.clods]
+ bad = np.flatnonzero((clod_pos[:, 2] < self.table_z)
+ | np.any((clod_pos < self.ws_lo) | (clod_pos > self.ws_hi), axis=1))
+ if bad.size:
+ return self._fail("debris_outside_tray", control, substep, clod=int(bad[0]), where="below_or_outside")
+ bp = d.xpos[self.brush]
+ if bp[2] < self.table_z or np.any(bp < self.ws_lo) or np.any(bp > self.ws_hi):
+ return self._fail("brush_dropped", control, substep, where="below_or_outside")
+ g1, g2 = self.contacts()
+ if g1.size:
+ # The arm, the stand and the parked hand must never touch anything: only the working hand acts.
+ hit = self.robot_g[g1] | self.robot_g[g2]
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ return self._fail("robot_collision", control, substep,
+ geoms=[self._geom_label(int(g1[k])), self._geom_label(int(g2[k]))])
+ c1, c2 = self.clod_g[g1], self.clod_g[g2]
+ # clod on counter / floor
+ hit = ((c1 >= 0) & self.ground_g[g2]) | ((c2 >= 0) & self.ground_g[g1])
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ return self._fail("debris_outside_tray", control, substep, clod=int(max(c1[k], c2[k])),
+ where="touched_counter_or_floor")
+ hit = ((c1 >= 0) & self.hand_g[g2]) | ((c2 >= 0) & self.hand_g[g1])
+ if hit.any():
+ k = int(np.flatnonzero(hit)[0])
+ hand_geom = int(g2[k] if self.hand_g[g2[k]] else g1[k])
+ return self._fail("hand_touched_debris", control, substep, clod=int(max(c1[k], c2[k])),
+ hand_geom=self.m.geom(hand_geom).name)
+ hit = (self.brush_g[g1] & (self.floor_g[g2] | self.tray_g[g2])) | (
+ self.brush_g[g2] & (self.floor_g[g1] | self.tray_g[g1]))
+ if hit.any():
+ return self._fail("brush_dropped", control, substep, where="touched_floor_or_tray")
+ # L1: a brush released in the air fails at the first substep it is unsupported and falling (no catch window):
+ # no contact with anything but clods, and its centre of mass sinking faster than brush_fall_speed_m_s.
+ if g1.size:
+ supported = bool(np.any((self.brush_g[g1] & (self.clod_g[g2] < 0) & ~self.brush_g[g2])
+ | (self.brush_g[g2] & (self.clod_g[g1] < 0) & ~self.brush_g[g1])))
+ else:
+ supported = False
+ if not supported:
+ mujoco.mj_objectVelocity(self.m, d, mujoco.mjtObj.mjOBJ_BODY, self.brush, self.vel, 0)
+ if self.vel[5] < -self.p["brush_fall_speed_m_s"]:
+ return self._fail("brush_dropped", control, substep, where="released_in_air",
+ vz_m_s=float(self.vel[5]))
+ if g1.size:
+ c1, c2 = self.clod_g[g1], self.clod_g[g2]
+ # brushed flags: a clod touched by the bristle pad (not the wooden back) while still up on the boot
+ up = clod_pos[:, 2] >= self.d.xpos[self.boot][2] - self.p["on_boot_band_m"]
+ touched = (c1 >= 0) & self.pad_g[g2]
+ for k in np.flatnonzero(touched):
+ if up[c1[k]]:
+ self.brushed[c1[k]] = True
+ touched = (c2 >= 0) & self.pad_g[g1]
+ for k in np.flatnonzero(touched):
+ if up[c2[k]]:
+ self.brushed[c2[k]] = True
+ return False
+
+ def _geom_label(self, g):
+ return self.m.geom(g).name or f"{self.m.body(int(self.m.geom_bodyid[g])).name}#geom{g}"
+
+ def _fail(self, reason, control, substep, **detail):
+ self.failure = reason
+ self.failure_detail = {"control": int(control), "substep": int(substep), **detail}
+ return True
+
+ # ------------------------------------------------------------------ per control
+ def features(self):
+ m, d = self.m, self.d
+ g1, g2 = self.contacts()
+ pad_boot = bool(np.any((self.pad_g[g1] & self.boot_g[g2]) | (self.pad_g[g2] & self.boot_g[g1])))
+ hand_brush = bool(np.any((self.hand_g[g1] & self.brush_g[g2]) | (self.hand_g[g2] & self.brush_g[g1])))
+ brush_counter = bool(np.any((self.brush_g[g1] & self.counter_g[g2]) | (self.brush_g[g2] & self.counter_g[g1])))
+ brush_boot = bool(np.any((self.brush_g[g1] & self.boot_g[g2]) | (self.brush_g[g2] & self.boot_g[g1])))
+ brush_clod = bool(np.any((self.brush_g[g1] & (self.clod_g[g2] >= 0)) | (self.brush_g[g2] & (self.clod_g[g1] >= 0))))
+ speeds = []
+ for b in self.clods:
+ mujoco.mj_objectVelocity(m, d, mujoco.mjtObj.mjOBJ_BODY, int(b), self.vel, 0)
+ speeds.append(float(np.linalg.norm(self.vel[3:])))
+ in_tray = self.in_tray()
+ pad = d.geom_xpos[m.geom("brush_bristle_pad").id]
+ sole_z = float(d.xpos[self.boot][2])
+ sole_center = d.xpos[self.boot][:2]
+ withdrawn = (not brush_boot and not brush_clod and (
+ pad[2] >= sole_z + self.p["withdraw_height_m"]
+ or float(np.linalg.norm(pad[:2] - sole_center)) >= self.p["withdraw_distance_m"]))
+ shift, tilt = self.boot_error()
+ return dict(pad_on_boot=pad_boot, hand_on_brush=hand_brush, brush_on_counter=brush_counter,
+ brush_touches_boot=brush_boot, brush_touches_debris=brush_clod, brush_withdrawn=bool(withdrawn),
+ clods_in_tray=int(in_tray.sum()), in_tray=in_tray.tolist(), clods_brushed=int(self.brushed.sum()),
+ brushed=self.brushed.tolist(), max_clod_speed=max(speeds), boot_shift_m=shift, boot_tilt_rad=tilt,
+ clod_positions=d.xpos[self.clods].round(4).tolist())
+
+ def control(self, steps):
+ """Stage update after a control (all substeps executed, no failure)."""
+ if self.failure or self.success:
+ return
+ f = self.features()
+ n = len(self.clods)
+ if f["pad_on_boot"] and f["hand_on_brush"] and not f["brush_on_counter"]:
+ self.brush_contact_controls += 1
+ if self.stage == 0 and self.brush_contact_controls >= self.p["brush_contact_controls"]:
+ self.stage = 1
+ all_in = f["clods_in_tray"] == n # a clean sole: every clod in the tray, however it got off the boot
+ if self.stage == 1 and all_in:
+ self.stage = 2
+ terminal = (self.stage >= 2 and all_in and f["brush_withdrawn"]
+ and f["max_clod_speed"] <= self.p["rest_speed_m_s"])
+ self.hold = self.hold + 1 if terminal else 0
+ if self.hold >= self.p["hold_controls"]:
+ self.stage = 3
+ self.success = True
+ self.last = f
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/instance.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/instance.json
index 9946211156..3c1f062495 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/instance.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/instance.json
@@ -331,7 +331,7 @@
0.0
]
},
- "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"marvin": {
"base_pos": [
0.147,
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/task.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/task.json
new file mode 100644
index 0000000000..521f93230b
--- /dev/null
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-privileged/tests/task.json
@@ -0,0 +1,398 @@
+{
+ "schema_version": 1,
+ "id": "boot_sole_brush",
+ "title": "Brush the debris off a boot sole",
+ "category": "tool_use",
+ "difficulty": "hard",
+ "description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "settle_steps": 250,
+ "table_z": 0.886,
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ 0.147,
+ -0.591,
+ 0.1
+ ],
+ "base_yaw": 1.5707963267948966
+ },
+ "counter": {
+ "center": [
+ 0.72,
+ 0.0
+ ],
+ "half": [
+ 0.43,
+ 0.39,
+ 0.02
+ ]
+ },
+ "tray": {
+ "center": [
+ 0.53,
+ 0.1
+ ],
+ "half": [
+ 0.17,
+ 0.29
+ ],
+ "wall_height": 0.045,
+ "wall_thickness": 0.006,
+ "floor_thickness": 0.012
+ },
+ "rack": {
+ "peg_xy": [
+ 0.595,
+ 0.1
+ ],
+ "peg_radius": 0.02,
+ "peg_top_z": 1.223,
+ "base_radius": 0.045,
+ "base_half_height": 0.004
+ },
+ "boot": {
+ "pos": [
+ 0.53,
+ 0.1,
+ 1.293
+ ],
+ "friction": 0.9,
+ "shaft_axis_local": [
+ 0.0,
+ 0.065
+ ],
+ "footbed_local_z": 0.062,
+ "sleeve_local_z": [
+ 0.1,
+ 0.24
+ ],
+ "sleeve_clearance": 0.0005
+ },
+ "clod_mass": 0.001,
+ "clod_friction": 0.8,
+ "clods": [
+ {
+ "local_xy": [
+ -0.025,
+ -0.085
+ ],
+ "pos": [
+ 0.445,
+ 0.075,
+ 1.296662
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ -0.068
+ ],
+ "pos": [
+ 0.462,
+ 0.125,
+ 1.29646
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ -0.047
+ ],
+ "pos": [
+ 0.483,
+ 0.075,
+ 1.296448
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.036
+ ],
+ "pos": [
+ 0.566,
+ 0.125,
+ 1.296609
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ -0.025,
+ 0.048
+ ],
+ "pos": [
+ 0.578,
+ 0.075,
+ 1.296514
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ "local_xy": [
+ 0.025,
+ 0.083
+ ],
+ "pos": [
+ 0.613,
+ 0.125,
+ 1.296655
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ }
+ ],
+ "brush": {
+ "pos": [
+ 0.68,
+ -0.28,
+ 0.9175
+ ],
+ "quat": [
+ 1,
+ 0,
+ 0,
+ 0
+ ],
+ "bristle_friction": 0.7,
+ "pad": {
+ "half": [
+ 0.0525,
+ 0.0145,
+ 0.01
+ ],
+ "pos": [
+ 0,
+ 0,
+ -0.0215
+ ],
+ "solref": [
+ 0.006,
+ 1
+ ]
+ }
+ },
+ "cameras": [
+ {
+ "name": "overview",
+ "pos": [
+ 0.02,
+ -0.86,
+ 1.8
+ ],
+ "target": [
+ 0.58,
+ 0.0,
+ 1.12
+ ],
+ "fovy": 45
+ },
+ {
+ "name": "closeup",
+ "pos": [
+ 0.8,
+ -0.22,
+ 1.52
+ ],
+ "target": [
+ 0.52,
+ 0.1,
+ 1.28
+ ],
+ "fovy": 40
+ },
+ {
+ "name": "side",
+ "pos": [
+ 1.3,
+ -0.55,
+ 1.55
+ ],
+ "target": [
+ 0.55,
+ 0.03,
+ 1.1
+ ],
+ "fovy": 45
+ }
+ ],
+ "predicate": {
+ "boot_max_shift_m": 0.03,
+ "boot_max_tilt_rad": 0.35,
+ "on_boot_band_m": 0.01,
+ "brush_contact_controls": 10,
+ "withdraw_height_m": 0.04,
+ "withdraw_distance_m": 0.18,
+ "rest_speed_m_s": 0.05,
+ "hold_controls": 50,
+ "workspace": {
+ "min": [
+ 0.25,
+ -0.45,
+ 0.886
+ ],
+ "max": [
+ 1.2,
+ 0.45,
+ 1.8
+ ]
+ },
+ "brush_fall_speed_m_s": 0.2
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.414674,
+ 0.535741,
+ -0.120476,
+ -1.981601,
+ -1.563993,
+ 0.514657,
+ -0.139664,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "mechanism": "free boot on a fixed rack peg, free brush and six free clods; contact and gravity only",
+ "modeling": "Rigid boot (Poly Haven Rubber Boots, CC0) with the source scene's 292 convex contact patches and an invisible interior proxy (footbed pad and shaft sleeve) that rests on the square rack peg; rigid 1 g clods with friction only (the source scene's cohesive bond law is not used); brush bristles as one compliant contact pad; rubber-lined tray floor with soft, well-damped contact."
+}
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/DIGEST b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/DIGEST
index f9e8580130..494e034578 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/DIGEST
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:71983f913e5e27ce134e23b92e62908f6bdc0139b2d8cca28fa3e73da8f5a2d4
+sha256:5879f72ae33bddd708bd6794da2525cf828f125882d1ce7531d6a07812f13516
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/README.md b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/README.md
index 5e5bf511d3..99fde0f672 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/README.md
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/README.md
@@ -12,7 +12,7 @@
| Base image | `ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350` |
## Task
-Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
## Difficulty
The robot's right hand, on a 7-joint arm without gravity compensation, must pick up a 14 cm shoe brush from the
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/catalog.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/catalog.json
index b8854e8478..7e77193294 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/catalog.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/catalog.json
@@ -8,7 +8,7 @@
"category": "tool_use",
"difficulty": "hard",
"description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
- "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"physics_dt": 0.002,
"control_dt": 0.02,
"max_steps": 3000,
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/checker.py b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/checker.py
index 863ef103f2..cf63bd21f6 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/checker.py
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/checker.py
@@ -14,9 +14,10 @@ Fail-fast (checked after every 2 ms physics substep; the first one is permanent)
Ordered stages (evaluated after every control):
1 brush_on_sole the bristle pad touches the boot while the hand touches the brush and the brush is off the
counter, for at least ``brush_contact_controls`` controls (cumulative)
- 2 debris_in_tray after stage 1: every clod was touched by the bristle pad while still up on the boot (centre
- at most on_boot_band_m below the sole plane) and every clod lies in the tray (centre inside the
- tray walls, below the wall top)
+ 2 debris_in_tray after stage 1: every clod lies in the tray (centre inside the tray walls, below the wall top),
+ however it got there (brushed by the bristles, pushed by the brush back or knocked off by another
+ clod); the per-clod brushed flags (bristle pad touched it while it was up on the boot, centre at
+ most on_boot_band_m below the sole plane) are reported, not required
3 withdrawn_hold after stage 2: every clod in the tray and at rest, the brush touches neither boot nor clods and
is withdrawn (pad centre >= 0.04 m above the sole plane or >= 0.18 m horizontally from the sole
centre), boot within tolerance; continuously for ``hold_controls`` controls -> success
@@ -256,7 +257,7 @@ class BrushChecker:
self.brush_contact_controls += 1
if self.stage == 0 and self.brush_contact_controls >= self.p["brush_contact_controls"]:
self.stage = 1
- all_in = f["clods_in_tray"] == n and f["clods_brushed"] == n
+ all_in = f["clods_in_tray"] == n # a clean sole: every clod in the tray, however it got off the boot
if self.stage == 1 and all_in:
self.stage = 2
terminal = (self.stage >= 2 and all_in and f["brush_withdrawn"]
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/grading.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/grading.json
index dbeef53933..0fe19c25d1 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/grading.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/grading.json
@@ -1 +1 @@
-{"collect_timeout_s": 1800, "instance_sha256": {"catalog.json": "becf9b54ed95ae1978edc42d3fb676650ba5e625a576b46136232205068efcb6", "instance.json": "dd11147dac84b8f1eaff2793ff6ac0102e5f816deb3a1db54b4483ab547530fe", "task.json": "b4ababbd9e5bd50aff0ea72789cd3dd7882f3ef441c67ad15e579eb750c6356a"}, "video_timeout_s": 1800}
+{"collect_timeout_s": 1800, "instance_sha256": {"catalog.json": "a13e3f6a6743c31eb4911ee8357daf9c86e67c0341a83aaed2cc3a4f11d7c7f4", "instance.json": "5b56af2a381dc036d7da22f774154e42ce6f16bca58eb1814175479389909756", "task.json": "e834de60240944e3ac6c7533340e8ce1ef19080f3feada3d6827fff4e6576e3e"}, "video_timeout_s": 1800}
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/instance.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/instance.json
index 9946211156..3c1f062495 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/instance.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/instance.json
@@ -331,7 +331,7 @@
0.0
]
},
- "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"marvin": {
"base_pos": [
0.147,
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task.json b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task.json
index ccab1036f4..521f93230b 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task.json
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task.json
@@ -5,7 +5,7 @@
"category": "tool_use",
"difficulty": "hard",
"description": "A rubber boot stands sole-up on a boot-rack peg in a collection tray with six dry soil clods lodged in its tread; pick up the shoe brush from the counter with the right hand of a Tianji Marvin two-arm robot (Sharpa Wave by default, or Wuji Hand 2.2), brush every clod off the sole into the tray and withdraw the brush; a clod outside the tray, a clod touched by the hand, a dropped brush, a displaced boot or any arm/stand contact fails the episode at once.",
- "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"physics_dt": 0.002,
"control_dt": 0.02,
"max_steps": 3000,
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task_text.txt b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task_text.txt
index 6ff275523a..a810f06f2e 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task_text.txt
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/environment/sim/task_text.txt
@@ -1 +1 @@
-Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
diff --git a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/instruction.md b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/instruction.md
index 30faefca16..f6a3b5f9c5 100644
--- a/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/instruction.md
+++ b/tasks/dexhand/dexhand-boot-sole-brush-i00-standard/instruction.md
@@ -1,6 +1,6 @@
# DexHand: Brush the debris off a boot sole
-Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod has been touched by the brush's bristle field (contact with the wooden back does not count) while it was still up on the boot (clod centre at most 0.01 m below the sole plane), and every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Brush all six soil clods off the upward-facing sole of the boot into the collection tray. The boot stands sole-up on a fixed boot-rack peg inside the tray (its sole plane is at z = 1.292 m); six small dry soil clods are lodged in its tread, held there by gravity and friction only (no glue or cohesive bond is simulated, so a clod moves as soon as something pushes it). The shoe brush lies bristles-down on the counter: pick it up with the robot's right hand and sweep the sole with the bristles. Success requires, in order: (1) the brush's bristle field touches the boot while the hand touches the brush and the brush does not touch the counter, for at least 10 controls in total; (2) every clod centre lies inside the tray walls (x in [0.366, 0.694] m, y in [-0.184, 0.384] m) below the wall top (z < 0.931 m), however the clod left the sole (swept by the bristles, pushed by the brush's back or knocked off by another clod); (3) then, for 50 consecutive controls (1 s), all six clods stay in the tray with linear speed at most 0.05 m/s while the brush touches neither the boot nor any clod and is withdrawn (bristle-field centre at least 0.04 m above the sole plane, or at least 0.18 m horizontally from the sole centre). The episode ends with success at that moment; fewer than six clods never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when the boot moves more than 0.03 m or tilts more than 0.35 rad from its reset pose; when a clod touches the counter or the floor, falls below the counter top (z < 0.886 m) or leaves the workspace box x in [0.25, 1.2] m, y in [-0.45, 0.45] m, z in [0.886, 1.8] m; when any part of the right hand touches a clod (clods must be brushed, not picked); when the brush touches the floor, the tray or the rack, falls below the counter top, leaves the workspace box, or is released in the air (it touches nothing but clods while its centre of mass sinks faster than 0.2 m/s); when any part of the robot other than its right hand (the stand, the torso, a link of either arm, the parked left hand) touches anything, including the robot itself; or when the physics becomes unstable; later actions cannot undo a failure. Only robot actuator targets are allowed: no welds, teleports, scripted object motion or applied object forces. The boot, brush and clods are free rigid bodies; the brush's 32 bristle tufts touch the world through one compliant bristle-pad contact proxy (individual fibre bending is not simulated) and the clods are rigid (no fracture or adhesion). The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
You control the right arm and right hand of a fixed Tianji Marvin robot: a stand with two 7-joint arms and a dexterous
hand on each wrist. The stand rests on the floor (z = 0) beside the counter's -y edge, with its base origin at world
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/DIGEST b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/DIGEST
index 3406ac331c..55679073c1 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/DIGEST
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:9ef9373dea3f261bb4d5b63c90244684465682ab3cdc5af305d301fc319a89e2
+sha256:48374fa13a19ec22f5ecd87cb82ac59faebb2ed4656b9a99289c7ba30ba46193
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/README.md b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/README.md
index 1bf20c844d..9726673fc9 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/README.md
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/README.md
@@ -14,6 +14,8 @@
## Task
With the wrist fixed, rotate the free marked sphere +90 degrees around palm-local Y, then +90 degrees around palm-local X from that pose, then return to its exact initial orientation. Maintain hand contact and avoid any external support throughout; stabilize each ordered checkpoint with at least two fingertips.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of the sphere that faces up toward the fingertips, and +90 degrees about X carries the side that faces up toward the thumb side.
+
## Difficulty
hard: Reorient a free spherical object with three asymmetric direction markers through two different axes and return.
The scene uses free_orientation_sphere and independently controlled fingers with the wrist locked; every ordered stage and
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/instruction.md b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/instruction.md
index 9f6c2a1f1c..ca27474d89 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/instruction.md
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-privileged/instruction.md
@@ -2,6 +2,8 @@
With the wrist fixed, rotate the free marked sphere +90 degrees around palm-local Y, then +90 degrees around palm-local X from that pose, then return to its exact initial orientation. Maintain hand contact and avoid any external support throughout; stabilize each ordered checkpoint with at least two fingertips.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of the sphere that faces up toward the fingertips, and +90 degrees about X carries the side that faces up toward the thumb side.
+
You control one dexterous hand on a six-DoF wrist positioning stage: a Sharpa Wave hand with 22 independently
actuated finger joints (the default) or a Wuji Hand 2.2 with 20 (see Hands).
The wrist stage is position actuated in the physics engine; grasping and manipulating require physical contact.
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/DIGEST b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/DIGEST
index a0fb900786..4491a1bace 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/DIGEST
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:83669cb985d2acec08ec4295730634424697c0eccc410f8d1cdd26aa8e815a89
+sha256:33f858128a11c232f99a2603463e9b10f7ae9c3f3a571eaaa25f845732981806
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/README.md b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/README.md
index 516c74cfda..4c62c6c382 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/README.md
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/README.md
@@ -14,6 +14,8 @@
## Task
With the wrist fixed, rotate the free marked sphere +90 degrees around palm-local Y, then +90 degrees around palm-local X from that pose, then return to its exact initial orientation. Maintain hand contact and avoid any external support throughout; stabilize each ordered checkpoint with at least two fingertips.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of the sphere that faces up toward the fingertips, and +90 degrees about X carries the side that faces up toward the thumb side.
+
## Difficulty
hard: Reorient a free spherical object with three asymmetric direction markers through two different axes and return.
The scene uses free_orientation_sphere and independently controlled fingers with the wrist locked; every ordered stage and
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/environment/sim/task_text.txt b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/environment/sim/task_text.txt
index cb8e89ce22..b6eaf9489a 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/environment/sim/task_text.txt
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/environment/sim/task_text.txt
@@ -1 +1,3 @@
With the wrist fixed, rotate the free marked sphere +90 degrees around palm-local Y, then +90 degrees around palm-local X from that pose, then return to its exact initial orientation. Maintain hand contact and avoid any external support throughout; stabilize each ordered checkpoint with at least two fingertips.
+
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of the sphere that faces up toward the fingertips, and +90 degrees about X carries the side that faces up toward the thumb side.
diff --git a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/instruction.md b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/instruction.md
index 82990ec53d..d22f75319a 100644
--- a/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/instruction.md
+++ b/tasks/dexhand/dexhand-essential-cube-reorient-i00-standard/instruction.md
@@ -2,6 +2,8 @@
With the wrist fixed, rotate the free marked sphere +90 degrees around palm-local Y, then +90 degrees around palm-local X from that pose, then return to its exact initial orientation. Maintain hand contact and avoid any external support throughout; stabilize each ordered checkpoint with at least two fingertips.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of the sphere that faces up toward the fingertips, and +90 degrees about X carries the side that faces up toward the thumb side.
+
You control one dexterous hand on a six-DoF wrist positioning stage: a Sharpa Wave hand with 22 independently
actuated finger joints (the default) or a Wuji Hand 2.2 with 20 (see Hands).
The wrist stage is position actuated in the physics engine; grasping and manipulating require physical contact.
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/DIGEST b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/DIGEST
index b0c76c2446..e1de5061bb 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/DIGEST
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:757705af0d65ece47aa5211fd3079848e6c68788dd43b504eb9bad45bfe8181f
+sha256:2762b85d544ddbc53650a65a1d75a34b13bd3ca7bf555053527eb01d34a0b946
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/README.md b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/README.md
index b698a82c24..343a188c6d 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/README.md
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/README.md
@@ -14,6 +14,8 @@
## Task
Keep the wrist fixed. Turn walnut A +90 degrees around palm-local Y, return A to its initial orientation, then release only A into the catch tray. Maintain walnut B at its initial position and orientation throughout. The walnuts, standardized to the same maximum dimension, must never contact one another. Before selective release, keep both objects unsupported by the environment and in load-bearing hand contact. Finally let A settle in the tray while continuing to hold B. If walnut A drops toward the table (center below 0.135 m) or leaves the tray footprint (more than 0.10 m horizontally from the tray center), or walnut B slips, the episode fails immediately.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of walnut A that faces up toward the fingertips.
+
## Difficulty
hard: Rotate and selectively release walnut A while independently retaining walnut B. Both walnuts use authentic closed-shell scan geometry with non-spherical convex-hull collision and the same material properties.
The scene uses two_passive_scanned_walnuts and independently controlled fingers with the wrist locked; every ordered stage and
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/instruction.md b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/instruction.md
index 1f4975870e..49627a5b79 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-privileged/instruction.md
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-privileged/instruction.md
@@ -2,6 +2,8 @@
Keep the wrist fixed. Turn walnut A +90 degrees around palm-local Y, return A to its initial orientation, then release only A into the catch tray. Maintain walnut B at its initial position and orientation throughout. The walnuts, standardized to the same maximum dimension, must never contact one another. Before selective release, keep both objects unsupported by the environment and in load-bearing hand contact. Finally let A settle in the tray while continuing to hold B. If walnut A drops toward the table (center below 0.135 m) or leaves the tray footprint (more than 0.10 m horizontally from the tray center), or walnut B slips, the episode fails immediately.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of walnut A that faces up toward the fingertips.
+
You control one dexterous hand on a six-DoF wrist positioning stage: a Sharpa Wave hand with 22 independently
actuated finger joints (the default) or a Wuji Hand 2.2 with 20 (see Hands).
The wrist stage is position actuated in the physics engine; grasping and manipulating require physical contact.
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-standard/DIGEST b/tasks/dexhand/dexhand-essential-two-object-i00-standard/DIGEST
index d2c85af388..f51f69634d 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-standard/DIGEST
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:f629a8197de6edb2f5be0d32d47c4763914ea1f843dbde11ccf2c4e1b3035e37
+sha256:69fad97d15765635503fb0c618f3a7a9ee7cd3414358bc85d037c35e2bb3f27d
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-standard/README.md b/tasks/dexhand/dexhand-essential-two-object-i00-standard/README.md
index f5bcf1b164..c69f1df084 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-standard/README.md
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-standard/README.md
@@ -14,6 +14,8 @@
## Task
Keep the wrist fixed. Turn walnut A +90 degrees around palm-local Y, return A to its initial orientation, then release only A into the catch tray. Maintain walnut B at its initial position and orientation throughout. The walnuts, standardized to the same maximum dimension, must never contact one another. Before selective release, keep both objects unsupported by the environment and in load-bearing hand contact. Finally let A settle in the tray while continuing to hold B. If walnut A drops toward the table (center below 0.135 m) or leaves the tray footprint (more than 0.10 m horizontally from the tray center), or walnut B slips, the episode fails immediately.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of walnut A that faces up toward the fingertips.
+
## Difficulty
hard: Rotate and selectively release walnut A while independently retaining walnut B. Both walnuts use authentic closed-shell scan geometry with non-spherical convex-hull collision and the same material properties.
The scene uses two_passive_scanned_walnuts and independently controlled fingers with the wrist locked; every ordered stage and
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-standard/environment/sim/task_text.txt b/tasks/dexhand/dexhand-essential-two-object-i00-standard/environment/sim/task_text.txt
index 146c1749d0..d93be08241 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-standard/environment/sim/task_text.txt
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-standard/environment/sim/task_text.txt
@@ -1 +1,3 @@
Keep the wrist fixed. Turn walnut A +90 degrees around palm-local Y, return A to its initial orientation, then release only A into the catch tray. Maintain walnut B at its initial position and orientation throughout. The walnuts, standardized to the same maximum dimension, must never contact one another. Before selective release, keep both objects unsupported by the environment and in load-bearing hand contact. Finally let A settle in the tray while continuing to hold B. If walnut A drops toward the table (center below 0.135 m) or leaves the tray footprint (more than 0.10 m horizontally from the tray center), or walnut B slips, the episode fails immediately.
+
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of walnut A that faces up toward the fingertips.
diff --git a/tasks/dexhand/dexhand-essential-two-object-i00-standard/instruction.md b/tasks/dexhand/dexhand-essential-two-object-i00-standard/instruction.md
index 395042b5be..5eefd81ad1 100644
--- a/tasks/dexhand/dexhand-essential-two-object-i00-standard/instruction.md
+++ b/tasks/dexhand/dexhand-essential-two-object-i00-standard/instruction.md
@@ -2,6 +2,8 @@
Keep the wrist fixed. Turn walnut A +90 degrees around palm-local Y, return A to its initial orientation, then release only A into the catch tray. Maintain walnut B at its initial position and orientation throughout. The walnuts, standardized to the same maximum dimension, must never contact one another. Before selective release, keep both objects unsupported by the environment and in load-bearing hand contact. Finally let A settle in the tray while continuing to hold B. If walnut A drops toward the table (center below 0.135 m) or leaves the tray footprint (more than 0.10 m horizontally from the tray center), or walnut B slips, the episode fails immediately.
+Palm-local axes belong to a frame fixed to the palm; with the wrist locked it is aligned with the world axes: +X points from the wrist toward the fingertips (world +x), +Y points across the palm from the thumb side toward the little-finger side (world +y), and +Z points out of the palm, which faces up (world +z). In the simulator it has the orientation of the `wrist_stage` body (the identity quaternion while the wrist is locked), not that of the palm link `right_hand_C_MC`, whose own axes are rotated relative to it. A turn about a palm-local axis is about that palm-fixed axis (it does not turn with the object), and a positive angle follows the right-hand rule: counterclockwise when seen from the positive end of the axis looking back toward the palm. So +90 degrees about Y carries the side of walnut A that faces up toward the fingertips.
+
You control one dexterous hand on a six-DoF wrist positioning stage: a Sharpa Wave hand with 22 independently
actuated finger joints (the default) or a Wuji Hand 2.2 with 20 (see Hands).
The wrist stage is position actuated in the physics engine; grasping and manipulating require physical contact.
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/DIGEST b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/DIGEST
index 49dde3c8bb..f2b1f2897d 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/DIGEST
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/DIGEST
@@ -1 +1 @@
-sha256:dd25bfb2c07f00ba8ac5611144f0ead173ab9d6d22a91e87fa2e86f0c2fd2d4c
+sha256:8bbcc769e12a4f18d30e8aef187a6c3b02e969b836f5670d0e02dffcb515f390
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/README.md b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/README.md
index 55af129490..bf6b80cce9 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/README.md
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/README.md
@@ -12,7 +12,7 @@
| Base image | `ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350` |
## Task
-Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
## Difficulty
One dexterous hand on the right arm of a Tianji Marvin robot does everything and nothing holds the jar: the lid only
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/Dockerfile b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/Dockerfile
index 44085586e0..58d613569e 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/Dockerfile
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/Dockerfile
@@ -1,6 +1,6 @@
FROM ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350
COPY . /opt/tools/
-COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/environment/arm_rig.py /privileged/environment/variants/7ce09e87cf/catalog.json /privileged/environment/variants/2009ba31aa/checker.py /privileged/environment/variants/8bebf98a58/replay.py /privileged/environment/variants/0c73de31b5/runtime.py /privileged/environment/variants/a4f4d5a733/scene.py /privileged/environment/variants/80a6812ac6/task.json /opt/tools/
+COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/environment/arm_rig.py /privileged/environment/variants/8bebf98a58/replay.py /privileged/environment/variants/0c73de31b5/runtime.py /privileged/environment/variants/a4f4d5a733/scene.py /opt/tools/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/continuous-glass.obj /privileged/environment/assets/label.obj /privileged/environment/assets/label.png /privileged/environment/assets/variants/300aa019ac/manifest.json /opt/tools/assets/
ENV PYTHONPATH=/opt/tools
RUN mkdir -p /app/output
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/catalog.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/catalog.json
new file mode 100644
index 0000000000..06d35246c7
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/catalog.json
@@ -0,0 +1,170 @@
+{
+ "schema_version": 1,
+ "tasks": [
+ {
+ "schema_version": 1,
+ "id": "jar_lid_open",
+ "title": "Open a jam jar and set the lid aside",
+ "category": "articulated_manipulation",
+ "description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
+ "difficulty": "hard",
+ "mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "robot": "marvin-bimanual-sharpa-wave",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "table_z": 0.75,
+ "table_half": [
+ 0.45,
+ 0.58
+ ],
+ "jar_xy": [
+ -0.22,
+ -0.08
+ ],
+ "workspace": {
+ "min": [
+ -0.45,
+ -0.4,
+ 0.73
+ ],
+ "max": [
+ 0.45,
+ 0.4,
+ 1.25
+ ]
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.3,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "release_angle_rad": 1.049342105263158,
+ "stop_angle_rad": 1.2614542215317386,
+ "modeling": "Free rigid jar (550 g, glass and jam as one body, twelve glass contact pads on its base ring) and free rigid steel lid (32 g). Contact-only lug closure: four inclined glass ramps (box segments, 2 mm thick, 3 mm rise over a 1.0 rad run plus a 0.2 rad tightening lead) and four 3 x 2.6 x 1.6 mm steel lugs with 0.8 mm radial play to the glass finish; the thread collides only with the lugs (it is enclosed by the lid skirt). Lightly closed lid: no vacuum, seal adhesion or thread preload; the jam is not simulated.",
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ -0.56,
+ 0.08,
+ 0.0
+ ],
+ "base_yaw": 0.0
+ }
+ }
+ ]
+}
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/checker.py b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/checker.py
new file mode 100644
index 0000000000..7a9c808165
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/checker.py
@@ -0,0 +1,311 @@
+"""Strict, state-only verdict for the jam-jar lid task.
+
+Ordered stages (each latches once reached, in order):
+ 1. ``lid_unscrewed``: the lid, still seated on the thread (origin within 6 mm above its closed height and 4 mm of the
+ jar axis), has turned counter-clockwise relative to the jar by at least ``RELEASE_ANGLE`` (1.049 rad), the angle at
+ which every lug has passed its ramp end. The relative turn is unwrapped continuously after every physics substep.
+ 2. ``lid_lifted_clear``: after stage 1, the lowest point of the lid skirt is more than 30 mm above the jar rim.
+ 3. ``lid_set_aside`` (terminal hold): after stage 2, for ``HOLD_STEPS`` consecutive controls the lid rests on the
+ worktop (worktop contact, no hand contact, no jar contact), upright (tilt <= 0.15 rad), with its centre at least
+ 90 mm horizontally from the jar axis and inside the worktop, slow (<= 0.02 m/s, <= 0.3 rad/s); the jar is upright
+ (tilt <= 0.10 rad), on the worktop, untouched by the hand and slow (<= 0.02 m/s). Success ends the episode.
+
+Fail-fast (checked after every physics substep; the first failure is permanent and ends the episode):
+ jar_tipped (jar tilt > 15 deg), jar_slid (jar centre moved > 30 mm horizontally from its reset position),
+ jar_lifted (jar origin > 15 mm above the worktop), lid_knocked_off (the lid touches the worktop before stage 2),
+ lid_dropped (the lid is in the air - its lowest point more than 10 mm above the worktop top - and touches nothing -
+ no hand, jar or worktop contact - while its centre of mass moves down faster than 0.3 m/s, about a 5 mm free fall, or
+ moves down faster than 1.0 m/s whatever it touches; a lid tipping over or falling flat on the worktop is not a drop),
+ lid_off_table (the lid or jar touches the floor,
+ or an object origin is below the worktop top or outside the worktop footprint), object_left_workspace,
+ lid_forced_through_thread (the lid leaves the thread zone upward while its lugs are not in the gaps between ramps),
+ left_arm_contact (the parked left arm or left hand touches the jar or the lid), unstable_physics.
+"""
+
+from __future__ import annotations
+
+import math
+
+import mujoco
+import numpy as np
+
+from scene import LID_RADIUS, LID_SEAT_Z, RELEASE_ANGLE, RIM_Z, STOP_ANGLE, arm_rig, robot_bodies
+
+STAGES = ("lid_unscrewed", "lid_lifted_clear", "lid_set_aside")
+HOLD_STEPS = 50
+JAR_TILT_FAIL = math.radians(15.0)
+JAR_SLIDE_FAIL = 0.03
+JAR_LIFT_FAIL = 0.015
+LID_FREE_FALL_SPEED = 0.3 # m/s downward while the lid touches nothing (about a 5 mm free fall): a drop, no catch window
+LID_FALL_SPEED_FAIL = 1.0 # m/s downward, touching or not (catches drops that graze a finger)
+LID_AIR_HEIGHT = 0.010 # both fall rules apply only while the lid's lowest point is this far above the worktop top:
+ # a lid tipping over on its edge or falling flat on the worktop is not a drop
+LID_TOP = 0.011 # lid body frame: top face of the lid (lid_top), the skirt bottom is SKIRT_BOTTOM
+THREAD_ZONE_HEIGHT = 0.006
+THREAD_ZONE_RADIUS = 0.004
+CLEAR_HEIGHT = 0.03
+SKIRT_BOTTOM = -0.0018
+FINAL = dict(lid_tilt=0.15, lid_distance=0.09, lid_speed=0.02, lid_spin=0.3, jar_tilt=0.10, jar_speed=0.02)
+GAP_TOLERANCE = 0.03
+
+OTHER, JAR, LID, HAND, WORKTOP, FLOOR, ARM = range(7)
+
+
+def tilt_of(xmat):
+ return float(math.acos(max(-1.0, min(1.0, xmat[8]))))
+
+
+class Checker:
+ def __init__(self, model, config):
+ self.model = model
+ self.config = config
+ self.jar = model.body("jar").id
+ self.lid = model.body("lid").id
+ self.lid_dof = int(model.jnt_dofadr[model.joint("lid_free").id])
+ self.jar_dof = int(model.jnt_dofadr[model.joint("jar_free").id])
+ # Robot parts: both hands (the working right hand under "wrist_stage" and the parked left hand) are HAND,
+ # the Marvin stand and arm links are ARM; touching the jar or lid with either counts as robot contact.
+ hand_bodies, arm_bodies = robot_bodies(model)
+ owner = np.full(model.ngeom, OTHER, dtype=np.int8)
+ for g in range(model.ngeom):
+ b = int(model.geom_bodyid[g])
+ root = b
+ while root and root not in (self.jar, self.lid):
+ root = int(model.body_parentid[root])
+ if root == self.jar:
+ owner[g] = JAR
+ elif root == self.lid:
+ owner[g] = LID
+ elif b in hand_bodies:
+ owner[g] = HAND
+ elif b in arm_bodies:
+ owner[g] = ARM
+ owner[model.geom("worktop").id] = WORKTOP
+ owner[model.geom("floor").id] = FLOOR
+ self.owner = owner
+ # The parked left side (its arm links from the shoulder down and its hand): the instruction keeps it parked,
+ # so any contact of it with the jar or the lid fails the episode (left_arm_contact).
+ left = set(arm_rig.hand_body_ids(model, "left"))
+ base, body = model.body("base_link").id, model.body(arm_rig.FLANGE_BODY["left"]).id
+ while body not in (0, base):
+ left.add(body)
+ body = int(model.body_parentid[body])
+ self.left_geom = np.isin(model.geom_bodyid, np.asarray(sorted(left), dtype=int))
+ self.table_z = float(config["table_z"])
+ self.half = np.asarray(config["table_half"], dtype=float)
+ ws = config["workspace"]
+ self.ws_lo, self.ws_hi = np.asarray(ws["min"], float), np.asarray(ws["max"], float)
+ self.reset_state(None)
+
+ # ------------------------------------------------------------------------------------------ state
+ def reset_state(self, data):
+ self.stage = 0
+ self.hold = 0
+ self.success = False
+ self.failure = None
+ self.failure_detail = None
+ self.turn = 0.0 # unwrapped CCW turn of the lid relative to the jar (rad)
+ self.prev_yaw = 0.0
+ self.in_zone = True
+ self.max_turn = 0.0
+ self.max_clear = -1.0
+ self.jar0 = None if data is None else data.xpos[self.jar].copy()
+ if data is not None:
+ self.prev_yaw = self.relative_yaw(data)
+
+ def state(self):
+ return dict(stage=self.stage, hold=self.hold, success=self.success, failure=self.failure,
+ failure_detail=self.failure_detail, turn=self.turn, prev_yaw=self.prev_yaw, in_zone=self.in_zone,
+ max_turn=self.max_turn, max_clear=self.max_clear,
+ jar0=None if self.jar0 is None else self.jar0.tolist())
+
+ def load(self, state):
+ for key, value in state.items():
+ setattr(self, key, np.asarray(value) if key == "jar0" and value is not None else value)
+
+ def digest_values(self):
+ """Numbers that enter the state hash (bit-exact across fresh processes)."""
+ return np.asarray(
+ [self.stage, self.hold, float(self.success), float(self.failure is not None), self.turn, self.prev_yaw,
+ float(self.in_zone), self.max_turn, self.max_clear],
+ dtype="<f8",
+ )
+
+ # ------------------------------------------------------------------------------------------ geometry
+ def relative_pose(self, data):
+ rj = data.xmat[self.jar].reshape(3, 3)
+ rel_r = rj.T @ data.xmat[self.lid].reshape(3, 3)
+ rel_p = rj.T @ (data.xpos[self.lid] - data.xpos[self.jar])
+ return rel_r, rel_p
+
+ def relative_yaw(self, data):
+ rel_r, _ = self.relative_pose(data)
+ return math.atan2(rel_r[1, 0], rel_r[0, 0])
+
+ def lid_lowest(self, data):
+ rl = data.xmat[self.lid].reshape(3, 3)
+ centre = data.xpos[self.lid] + rl[:, 2] * SKIRT_BOTTOM
+ sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
+ return float(centre[2] - LID_RADIUS * sin_tilt)
+
+ def lid_lowest_any(self, data):
+ """World z of the lowest point of the lid cylinder (skirt bottom to top face) in any orientation."""
+ rl = data.xmat[self.lid].reshape(3, 3)
+ sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
+ ends = (data.xpos[self.lid][2] + rl[2, 2] * z for z in (SKIRT_BOTTOM, LID_TOP))
+ return float(min(ends) - LID_RADIUS * sin_tilt)
+
+ def rim_z(self, data):
+ rj = data.xmat[self.jar].reshape(3, 3)
+ return float(data.xpos[self.jar][2] + rj[2, 2] * RIM_Z)
+
+ def contact_sets(self, data):
+ """Pairs of owners in active contact, as a set of frozensets."""
+ n = data.ncon
+ pairs = set()
+ if not n:
+ return pairs
+ geoms = data.contact.geom[:n]
+ active = data.contact.efc_address[:n] >= 0
+ a, b = self.owner[geoms[:, 0]], self.owner[geoms[:, 1]]
+ for x, y in set(zip(a[active].tolist(), b[active].tolist())):
+ pairs.add(frozenset((x, y)))
+ return pairs
+
+ def velocities(self, data, body):
+ v = np.empty(6)
+ mujoco.mj_objectVelocity(self.model, data, mujoco.mjtObj.mjOBJ_BODY, body, v, 0)
+ return float(np.linalg.norm(v[3:])), float(np.linalg.norm(v[:3]))
+
+ # ------------------------------------------------------------------------------------------ updates
+ def substep(self, data, control, substep):
+ """Fail-fast invariants and latched stages 1-2 after one physics substep. Returns True on failure."""
+ if self.failure or self.success:
+ return bool(self.failure)
+
+ def fail(reason, **detail):
+ self.failure = reason
+ self.failure_detail = {"control": control, "substep": substep, **detail}
+ return True
+
+ yaw = self.relative_yaw(data)
+ step = (yaw - self.prev_yaw + math.pi) % (2 * math.pi) - math.pi
+ self.turn += step
+ self.prev_yaw = yaw
+ jar_p = data.xpos[self.jar]
+ lid_p = data.xpos[self.lid]
+ jar_tilt = tilt_of(data.xmat[self.jar])
+ if jar_tilt > JAR_TILT_FAIL:
+ return fail("jar_tipped", tilt_rad=jar_tilt)
+ slide = float(np.linalg.norm(jar_p[:2] - self.jar0[:2]))
+ if slide > JAR_SLIDE_FAIL:
+ return fail("jar_slid", slide_m=slide)
+ if jar_p[2] > self.jar0[2] + JAR_LIFT_FAIL:
+ return fail("jar_lifted", lift_m=float(jar_p[2] - self.jar0[2]))
+ for name, p in (("jar", jar_p), ("lid", lid_p)):
+ if np.any(p < self.ws_lo) or np.any(p > self.ws_hi):
+ return fail("object_left_workspace", object=name)
+ if p[2] < self.table_z - 0.005 or abs(p[0]) > self.half[0] or abs(p[1]) > self.half[1]:
+ return fail("lid_off_table" if name == "lid" else "jar_off_table", object=name)
+ pairs = self.contact_sets(data)
+ for i in range(data.ncon):
+ contact = data.contact[i]
+ if contact.efc_address < 0:
+ continue
+ for g_left, g_other in ((int(contact.geom1), int(contact.geom2)), (int(contact.geom2), int(contact.geom1))):
+ if self.left_geom[g_left] and self.owner[g_other] in (JAR, LID):
+ return fail("left_arm_contact", robot_geom=self.model.geom(g_left).name
+ or self.model.body(int(self.model.geom_bodyid[g_left])).name,
+ touches="jar" if self.owner[g_other] == JAR else "lid")
+ if frozenset((LID, FLOOR)) in pairs or frozenset((JAR, FLOOR)) in pairs:
+ return fail("lid_off_table", object="floor_contact")
+ lid_touch = any(LID in p and len(p) == 2 for p in pairs)
+ if frozenset((LID, WORKTOP)) in pairs and self.stage < 2:
+ return fail("lid_knocked_off")
+ # Centre-of-mass velocity (mj_objectVelocity with mjOBJ_BODY: angular first, then linear at the COM).
+ velocity = np.empty(6)
+ mujoco.mj_objectVelocity(self.model, data, mujoco.mjtObj.mjOBJ_BODY, self.lid, velocity, 0)
+ lid_vz = float(velocity[5])
+ if lid_vz < -LID_FREE_FALL_SPEED:
+ # Only a lid in the air drops; one tipping over or settling on the worktop (lowest point within
+ # LID_AIR_HEIGHT of the worktop top) does not, however fast its centre sinks.
+ height = self.lid_lowest_any(data) - self.table_z
+ if height > LID_AIR_HEIGHT and lid_vz < -LID_FALL_SPEED_FAIL:
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=bool(lid_touch), height_m=height)
+ if height > LID_AIR_HEIGHT and not lid_touch:
+ # Fails at the first substep the lid is unsupported and falling: there is no window to catch it again.
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=False, height_m=height)
+ rel_r, rel_p = self.relative_pose(data)
+ height = float(rel_p[2] - LID_SEAT_Z)
+ radial = float(math.hypot(rel_p[0], rel_p[1]))
+ in_zone = height < THREAD_ZONE_HEIGHT and radial < THREAD_ZONE_RADIUS
+ if self.in_zone and not in_zone and radial < THREAD_ZONE_RADIUS:
+ phase = self.turn % (math.pi / 2)
+ if not (RELEASE_ANGLE - GAP_TOLERANCE <= phase <= STOP_ANGLE + GAP_TOLERANCE):
+ return fail("lid_forced_through_thread", turn_rad=self.turn, height_m=height)
+ self.in_zone = in_zone
+ if in_zone:
+ self.max_turn = max(self.max_turn, self.turn)
+ if self.stage == 0 and in_zone and self.turn >= RELEASE_ANGLE:
+ self.stage = 1
+ clear = self.lid_lowest(data) - self.rim_z(data)
+ self.max_clear = max(self.max_clear, clear)
+ if self.stage == 1 and clear > CLEAR_HEIGHT:
+ self.stage = 2
+ return False
+
+ def final_features(self, data):
+ pairs = self.contact_sets(data)
+ lid_p, jar_p = data.xpos[self.lid], data.xpos[self.jar]
+ lid_v, lid_w = self.velocities(data, self.lid)
+ jar_v, _ = self.velocities(data, self.jar)
+ return dict(
+ lid_on_worktop=frozenset((LID, WORKTOP)) in pairs,
+ lid_hand_contact=frozenset((LID, HAND)) in pairs or frozenset((LID, ARM)) in pairs,
+ lid_jar_contact=frozenset((LID, JAR)) in pairs,
+ jar_on_worktop=frozenset((JAR, WORKTOP)) in pairs,
+ jar_hand_contact=frozenset((JAR, HAND)) in pairs or frozenset((JAR, ARM)) in pairs,
+ lid_tilt_rad=tilt_of(data.xmat[self.lid]),
+ jar_tilt_rad=tilt_of(data.xmat[self.jar]),
+ lid_distance_m=float(np.linalg.norm(lid_p[:2] - jar_p[:2])),
+ lid_speed_m_s=lid_v,
+ lid_spin_rad_s=lid_w,
+ jar_speed_m_s=jar_v,
+ )
+
+ def control_end(self, data):
+ """Terminal hold evaluation after a full control step."""
+ if self.failure or self.success:
+ return
+ f = self.final_features(data)
+ ok = (
+ self.stage >= 2
+ and f["lid_on_worktop"] and not f["lid_hand_contact"] and not f["lid_jar_contact"]
+ and f["jar_on_worktop"] and not f["jar_hand_contact"]
+ and f["lid_tilt_rad"] <= FINAL["lid_tilt"]
+ and f["lid_distance_m"] >= FINAL["lid_distance"]
+ and f["lid_speed_m_s"] <= FINAL["lid_speed"] and f["lid_spin_rad_s"] <= FINAL["lid_spin"]
+ and f["jar_tilt_rad"] <= FINAL["jar_tilt"] and f["jar_speed_m_s"] <= FINAL["jar_speed"]
+ )
+ self.hold = self.hold + 1 if ok else 0
+ if self.hold >= HOLD_STEPS:
+ self.stage = 3
+ self.success = True
+
+ def features(self, data):
+ rel_r, rel_p = self.relative_pose(data)
+ return dict(
+ stage=self.stage,
+ stage_name=STAGES[self.stage - 1] if self.stage else "",
+ hold_steps=self.hold,
+ turn_rad=self.turn,
+ max_seated_turn_rad=self.max_turn,
+ lid_height_above_seat_m=float(rel_p[2] - LID_SEAT_Z),
+ lid_clearance_above_rim_m=self.lid_lowest(data) - self.rim_z(data),
+ max_clearance_m=self.max_clear,
+ jar_slide_m=float(np.linalg.norm(data.xpos[self.jar][:2] - self.jar0[:2])),
+ **self.final_features(data),
+ success=self.success,
+ failure=self.failure,
+ failure_detail=self.failure_detail,
+ )
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/instance.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/instance.json
index 6bf562b367..93033b53ba 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/instance.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/instance.json
@@ -122,7 +122,7 @@
0.0
]
},
- "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"jar_xy": [
-0.22,
-0.08
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/task.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/task.json
new file mode 100644
index 0000000000..939ee7c989
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/environment/task.json
@@ -0,0 +1,165 @@
+{
+ "schema_version": 1,
+ "id": "jar_lid_open",
+ "title": "Open a jam jar and set the lid aside",
+ "category": "articulated_manipulation",
+ "description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
+ "difficulty": "hard",
+ "mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "robot": "marvin-bimanual-sharpa-wave",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "table_z": 0.75,
+ "table_half": [
+ 0.45,
+ 0.58
+ ],
+ "jar_xy": [
+ -0.22,
+ -0.08
+ ],
+ "workspace": {
+ "min": [
+ -0.45,
+ -0.4,
+ 0.73
+ ],
+ "max": [
+ 0.45,
+ 0.4,
+ 1.25
+ ]
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.3,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "release_angle_rad": 1.049342105263158,
+ "stop_angle_rad": 1.2614542215317386,
+ "modeling": "Free rigid jar (550 g, glass and jam as one body, twelve glass contact pads on its base ring) and free rigid steel lid (32 g). Contact-only lug closure: four inclined glass ramps (box segments, 2 mm thick, 3 mm rise over a 1.0 rad run plus a 0.2 rad tightening lead) and four 3 x 2.6 x 1.6 mm steel lugs with 0.8 mm radial play to the glass finish; the thread collides only with the lugs (it is enclosed by the lid skirt). Lightly closed lid: no vacuum, seal adhesion or thread preload; the jam is not simulated.",
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ -0.56,
+ 0.08,
+ 0.0
+ ],
+ "base_yaw": 0.0
+ }
+}
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/instruction.md b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/instruction.md
index d6dfcf3ac7..9cbf6215da 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/instruction.md
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/instruction.md
@@ -1,6 +1,6 @@
# DexHand: Open a jam jar and set the lid aside
-Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
You control the right arm and right hand of a fixed Tianji Marvin robot: a stand with two 7-joint arms and a dexterous
hand on each wrist (the robot stands behind the worktop, its base centre at x = -0.56, y = 0.08 on the floor, facing
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/Dockerfile b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/Dockerfile
index 8554052368..d1b51cb125 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/Dockerfile
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/Dockerfile
@@ -1,6 +1,6 @@
FROM ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350
COPY . /tests/
-COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/tests/grade.py /privileged/environment/arm_rig.py /privileged/environment/variants/7ce09e87cf/catalog.json /privileged/environment/variants/2009ba31aa/checker.py /privileged/environment/variants/8bebf98a58/replay.py /privileged/environment/variants/0c73de31b5/runtime.py /privileged/environment/variants/a4f4d5a733/scene.py /privileged/environment/variants/80a6812ac6/task.json /tests/
+COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/hands.py /privileged/tests/grade.py /privileged/environment/arm_rig.py /privileged/environment/variants/8bebf98a58/replay.py /privileged/environment/variants/0c73de31b5/runtime.py /privileged/environment/variants/a4f4d5a733/scene.py /tests/
COPY --from=ghcr.io/mll-lab-nu/efe:dexhand-files-0.4.0@sha256:f9bfacf8829c29d55552a1646f4af4878a958a06025452a1fa6ada74d530c556 /privileged/environment/assets/continuous-glass.obj /privileged/environment/assets/label.obj /privileged/environment/assets/label.png /privileged/environment/assets/variants/300aa019ac/manifest.json /tests/assets/
ENV PYTHONPATH=/tests
RUN chmod +x /tests/test.sh
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/catalog.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/catalog.json
new file mode 100644
index 0000000000..06d35246c7
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/catalog.json
@@ -0,0 +1,170 @@
+{
+ "schema_version": 1,
+ "tasks": [
+ {
+ "schema_version": 1,
+ "id": "jar_lid_open",
+ "title": "Open a jam jar and set the lid aside",
+ "category": "articulated_manipulation",
+ "description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
+ "difficulty": "hard",
+ "mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "robot": "marvin-bimanual-sharpa-wave",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "table_z": 0.75,
+ "table_half": [
+ 0.45,
+ 0.58
+ ],
+ "jar_xy": [
+ -0.22,
+ -0.08
+ ],
+ "workspace": {
+ "min": [
+ -0.45,
+ -0.4,
+ 0.73
+ ],
+ "max": [
+ 0.45,
+ 0.4,
+ 1.25
+ ]
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.3,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "release_angle_rad": 1.049342105263158,
+ "stop_angle_rad": 1.2614542215317386,
+ "modeling": "Free rigid jar (550 g, glass and jam as one body, twelve glass contact pads on its base ring) and free rigid steel lid (32 g). Contact-only lug closure: four inclined glass ramps (box segments, 2 mm thick, 3 mm rise over a 1.0 rad run plus a 0.2 rad tightening lead) and four 3 x 2.6 x 1.6 mm steel lugs with 0.8 mm radial play to the glass finish; the thread collides only with the lugs (it is enclosed by the lid skirt). Lightly closed lid: no vacuum, seal adhesion or thread preload; the jam is not simulated.",
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ -0.56,
+ 0.08,
+ 0.0
+ ],
+ "base_yaw": 0.0
+ }
+ }
+ ]
+}
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/checker.py b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/checker.py
new file mode 100644
index 0000000000..7a9c808165
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/checker.py
@@ -0,0 +1,311 @@
+"""Strict, state-only verdict for the jam-jar lid task.
+
+Ordered stages (each latches once reached, in order):
+ 1. ``lid_unscrewed``: the lid, still seated on the thread (origin within 6 mm above its closed height and 4 mm of the
+ jar axis), has turned counter-clockwise relative to the jar by at least ``RELEASE_ANGLE`` (1.049 rad), the angle at
+ which every lug has passed its ramp end. The relative turn is unwrapped continuously after every physics substep.
+ 2. ``lid_lifted_clear``: after stage 1, the lowest point of the lid skirt is more than 30 mm above the jar rim.
+ 3. ``lid_set_aside`` (terminal hold): after stage 2, for ``HOLD_STEPS`` consecutive controls the lid rests on the
+ worktop (worktop contact, no hand contact, no jar contact), upright (tilt <= 0.15 rad), with its centre at least
+ 90 mm horizontally from the jar axis and inside the worktop, slow (<= 0.02 m/s, <= 0.3 rad/s); the jar is upright
+ (tilt <= 0.10 rad), on the worktop, untouched by the hand and slow (<= 0.02 m/s). Success ends the episode.
+
+Fail-fast (checked after every physics substep; the first failure is permanent and ends the episode):
+ jar_tipped (jar tilt > 15 deg), jar_slid (jar centre moved > 30 mm horizontally from its reset position),
+ jar_lifted (jar origin > 15 mm above the worktop), lid_knocked_off (the lid touches the worktop before stage 2),
+ lid_dropped (the lid is in the air - its lowest point more than 10 mm above the worktop top - and touches nothing -
+ no hand, jar or worktop contact - while its centre of mass moves down faster than 0.3 m/s, about a 5 mm free fall, or
+ moves down faster than 1.0 m/s whatever it touches; a lid tipping over or falling flat on the worktop is not a drop),
+ lid_off_table (the lid or jar touches the floor,
+ or an object origin is below the worktop top or outside the worktop footprint), object_left_workspace,
+ lid_forced_through_thread (the lid leaves the thread zone upward while its lugs are not in the gaps between ramps),
+ left_arm_contact (the parked left arm or left hand touches the jar or the lid), unstable_physics.
+"""
+
+from __future__ import annotations
+
+import math
+
+import mujoco
+import numpy as np
+
+from scene import LID_RADIUS, LID_SEAT_Z, RELEASE_ANGLE, RIM_Z, STOP_ANGLE, arm_rig, robot_bodies
+
+STAGES = ("lid_unscrewed", "lid_lifted_clear", "lid_set_aside")
+HOLD_STEPS = 50
+JAR_TILT_FAIL = math.radians(15.0)
+JAR_SLIDE_FAIL = 0.03
+JAR_LIFT_FAIL = 0.015
+LID_FREE_FALL_SPEED = 0.3 # m/s downward while the lid touches nothing (about a 5 mm free fall): a drop, no catch window
+LID_FALL_SPEED_FAIL = 1.0 # m/s downward, touching or not (catches drops that graze a finger)
+LID_AIR_HEIGHT = 0.010 # both fall rules apply only while the lid's lowest point is this far above the worktop top:
+ # a lid tipping over on its edge or falling flat on the worktop is not a drop
+LID_TOP = 0.011 # lid body frame: top face of the lid (lid_top), the skirt bottom is SKIRT_BOTTOM
+THREAD_ZONE_HEIGHT = 0.006
+THREAD_ZONE_RADIUS = 0.004
+CLEAR_HEIGHT = 0.03
+SKIRT_BOTTOM = -0.0018
+FINAL = dict(lid_tilt=0.15, lid_distance=0.09, lid_speed=0.02, lid_spin=0.3, jar_tilt=0.10, jar_speed=0.02)
+GAP_TOLERANCE = 0.03
+
+OTHER, JAR, LID, HAND, WORKTOP, FLOOR, ARM = range(7)
+
+
+def tilt_of(xmat):
+ return float(math.acos(max(-1.0, min(1.0, xmat[8]))))
+
+
+class Checker:
+ def __init__(self, model, config):
+ self.model = model
+ self.config = config
+ self.jar = model.body("jar").id
+ self.lid = model.body("lid").id
+ self.lid_dof = int(model.jnt_dofadr[model.joint("lid_free").id])
+ self.jar_dof = int(model.jnt_dofadr[model.joint("jar_free").id])
+ # Robot parts: both hands (the working right hand under "wrist_stage" and the parked left hand) are HAND,
+ # the Marvin stand and arm links are ARM; touching the jar or lid with either counts as robot contact.
+ hand_bodies, arm_bodies = robot_bodies(model)
+ owner = np.full(model.ngeom, OTHER, dtype=np.int8)
+ for g in range(model.ngeom):
+ b = int(model.geom_bodyid[g])
+ root = b
+ while root and root not in (self.jar, self.lid):
+ root = int(model.body_parentid[root])
+ if root == self.jar:
+ owner[g] = JAR
+ elif root == self.lid:
+ owner[g] = LID
+ elif b in hand_bodies:
+ owner[g] = HAND
+ elif b in arm_bodies:
+ owner[g] = ARM
+ owner[model.geom("worktop").id] = WORKTOP
+ owner[model.geom("floor").id] = FLOOR
+ self.owner = owner
+ # The parked left side (its arm links from the shoulder down and its hand): the instruction keeps it parked,
+ # so any contact of it with the jar or the lid fails the episode (left_arm_contact).
+ left = set(arm_rig.hand_body_ids(model, "left"))
+ base, body = model.body("base_link").id, model.body(arm_rig.FLANGE_BODY["left"]).id
+ while body not in (0, base):
+ left.add(body)
+ body = int(model.body_parentid[body])
+ self.left_geom = np.isin(model.geom_bodyid, np.asarray(sorted(left), dtype=int))
+ self.table_z = float(config["table_z"])
+ self.half = np.asarray(config["table_half"], dtype=float)
+ ws = config["workspace"]
+ self.ws_lo, self.ws_hi = np.asarray(ws["min"], float), np.asarray(ws["max"], float)
+ self.reset_state(None)
+
+ # ------------------------------------------------------------------------------------------ state
+ def reset_state(self, data):
+ self.stage = 0
+ self.hold = 0
+ self.success = False
+ self.failure = None
+ self.failure_detail = None
+ self.turn = 0.0 # unwrapped CCW turn of the lid relative to the jar (rad)
+ self.prev_yaw = 0.0
+ self.in_zone = True
+ self.max_turn = 0.0
+ self.max_clear = -1.0
+ self.jar0 = None if data is None else data.xpos[self.jar].copy()
+ if data is not None:
+ self.prev_yaw = self.relative_yaw(data)
+
+ def state(self):
+ return dict(stage=self.stage, hold=self.hold, success=self.success, failure=self.failure,
+ failure_detail=self.failure_detail, turn=self.turn, prev_yaw=self.prev_yaw, in_zone=self.in_zone,
+ max_turn=self.max_turn, max_clear=self.max_clear,
+ jar0=None if self.jar0 is None else self.jar0.tolist())
+
+ def load(self, state):
+ for key, value in state.items():
+ setattr(self, key, np.asarray(value) if key == "jar0" and value is not None else value)
+
+ def digest_values(self):
+ """Numbers that enter the state hash (bit-exact across fresh processes)."""
+ return np.asarray(
+ [self.stage, self.hold, float(self.success), float(self.failure is not None), self.turn, self.prev_yaw,
+ float(self.in_zone), self.max_turn, self.max_clear],
+ dtype="<f8",
+ )
+
+ # ------------------------------------------------------------------------------------------ geometry
+ def relative_pose(self, data):
+ rj = data.xmat[self.jar].reshape(3, 3)
+ rel_r = rj.T @ data.xmat[self.lid].reshape(3, 3)
+ rel_p = rj.T @ (data.xpos[self.lid] - data.xpos[self.jar])
+ return rel_r, rel_p
+
+ def relative_yaw(self, data):
+ rel_r, _ = self.relative_pose(data)
+ return math.atan2(rel_r[1, 0], rel_r[0, 0])
+
+ def lid_lowest(self, data):
+ rl = data.xmat[self.lid].reshape(3, 3)
+ centre = data.xpos[self.lid] + rl[:, 2] * SKIRT_BOTTOM
+ sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
+ return float(centre[2] - LID_RADIUS * sin_tilt)
+
+ def lid_lowest_any(self, data):
+ """World z of the lowest point of the lid cylinder (skirt bottom to top face) in any orientation."""
+ rl = data.xmat[self.lid].reshape(3, 3)
+ sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
+ ends = (data.xpos[self.lid][2] + rl[2, 2] * z for z in (SKIRT_BOTTOM, LID_TOP))
+ return float(min(ends) - LID_RADIUS * sin_tilt)
+
+ def rim_z(self, data):
+ rj = data.xmat[self.jar].reshape(3, 3)
+ return float(data.xpos[self.jar][2] + rj[2, 2] * RIM_Z)
+
+ def contact_sets(self, data):
+ """Pairs of owners in active contact, as a set of frozensets."""
+ n = data.ncon
+ pairs = set()
+ if not n:
+ return pairs
+ geoms = data.contact.geom[:n]
+ active = data.contact.efc_address[:n] >= 0
+ a, b = self.owner[geoms[:, 0]], self.owner[geoms[:, 1]]
+ for x, y in set(zip(a[active].tolist(), b[active].tolist())):
+ pairs.add(frozenset((x, y)))
+ return pairs
+
+ def velocities(self, data, body):
+ v = np.empty(6)
+ mujoco.mj_objectVelocity(self.model, data, mujoco.mjtObj.mjOBJ_BODY, body, v, 0)
+ return float(np.linalg.norm(v[3:])), float(np.linalg.norm(v[:3]))
+
+ # ------------------------------------------------------------------------------------------ updates
+ def substep(self, data, control, substep):
+ """Fail-fast invariants and latched stages 1-2 after one physics substep. Returns True on failure."""
+ if self.failure or self.success:
+ return bool(self.failure)
+
+ def fail(reason, **detail):
+ self.failure = reason
+ self.failure_detail = {"control": control, "substep": substep, **detail}
+ return True
+
+ yaw = self.relative_yaw(data)
+ step = (yaw - self.prev_yaw + math.pi) % (2 * math.pi) - math.pi
+ self.turn += step
+ self.prev_yaw = yaw
+ jar_p = data.xpos[self.jar]
+ lid_p = data.xpos[self.lid]
+ jar_tilt = tilt_of(data.xmat[self.jar])
+ if jar_tilt > JAR_TILT_FAIL:
+ return fail("jar_tipped", tilt_rad=jar_tilt)
+ slide = float(np.linalg.norm(jar_p[:2] - self.jar0[:2]))
+ if slide > JAR_SLIDE_FAIL:
+ return fail("jar_slid", slide_m=slide)
+ if jar_p[2] > self.jar0[2] + JAR_LIFT_FAIL:
+ return fail("jar_lifted", lift_m=float(jar_p[2] - self.jar0[2]))
+ for name, p in (("jar", jar_p), ("lid", lid_p)):
+ if np.any(p < self.ws_lo) or np.any(p > self.ws_hi):
+ return fail("object_left_workspace", object=name)
+ if p[2] < self.table_z - 0.005 or abs(p[0]) > self.half[0] or abs(p[1]) > self.half[1]:
+ return fail("lid_off_table" if name == "lid" else "jar_off_table", object=name)
+ pairs = self.contact_sets(data)
+ for i in range(data.ncon):
+ contact = data.contact[i]
+ if contact.efc_address < 0:
+ continue
+ for g_left, g_other in ((int(contact.geom1), int(contact.geom2)), (int(contact.geom2), int(contact.geom1))):
+ if self.left_geom[g_left] and self.owner[g_other] in (JAR, LID):
+ return fail("left_arm_contact", robot_geom=self.model.geom(g_left).name
+ or self.model.body(int(self.model.geom_bodyid[g_left])).name,
+ touches="jar" if self.owner[g_other] == JAR else "lid")
+ if frozenset((LID, FLOOR)) in pairs or frozenset((JAR, FLOOR)) in pairs:
+ return fail("lid_off_table", object="floor_contact")
+ lid_touch = any(LID in p and len(p) == 2 for p in pairs)
+ if frozenset((LID, WORKTOP)) in pairs and self.stage < 2:
+ return fail("lid_knocked_off")
+ # Centre-of-mass velocity (mj_objectVelocity with mjOBJ_BODY: angular first, then linear at the COM).
+ velocity = np.empty(6)
+ mujoco.mj_objectVelocity(self.model, data, mujoco.mjtObj.mjOBJ_BODY, self.lid, velocity, 0)
+ lid_vz = float(velocity[5])
+ if lid_vz < -LID_FREE_FALL_SPEED:
+ # Only a lid in the air drops; one tipping over or settling on the worktop (lowest point within
+ # LID_AIR_HEIGHT of the worktop top) does not, however fast its centre sinks.
+ height = self.lid_lowest_any(data) - self.table_z
+ if height > LID_AIR_HEIGHT and lid_vz < -LID_FALL_SPEED_FAIL:
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=bool(lid_touch), height_m=height)
+ if height > LID_AIR_HEIGHT and not lid_touch:
+ # Fails at the first substep the lid is unsupported and falling: there is no window to catch it again.
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=False, height_m=height)
+ rel_r, rel_p = self.relative_pose(data)
+ height = float(rel_p[2] - LID_SEAT_Z)
+ radial = float(math.hypot(rel_p[0], rel_p[1]))
+ in_zone = height < THREAD_ZONE_HEIGHT and radial < THREAD_ZONE_RADIUS
+ if self.in_zone and not in_zone and radial < THREAD_ZONE_RADIUS:
+ phase = self.turn % (math.pi / 2)
+ if not (RELEASE_ANGLE - GAP_TOLERANCE <= phase <= STOP_ANGLE + GAP_TOLERANCE):
+ return fail("lid_forced_through_thread", turn_rad=self.turn, height_m=height)
+ self.in_zone = in_zone
+ if in_zone:
+ self.max_turn = max(self.max_turn, self.turn)
+ if self.stage == 0 and in_zone and self.turn >= RELEASE_ANGLE:
+ self.stage = 1
+ clear = self.lid_lowest(data) - self.rim_z(data)
+ self.max_clear = max(self.max_clear, clear)
+ if self.stage == 1 and clear > CLEAR_HEIGHT:
+ self.stage = 2
+ return False
+
+ def final_features(self, data):
+ pairs = self.contact_sets(data)
+ lid_p, jar_p = data.xpos[self.lid], data.xpos[self.jar]
+ lid_v, lid_w = self.velocities(data, self.lid)
+ jar_v, _ = self.velocities(data, self.jar)
+ return dict(
+ lid_on_worktop=frozenset((LID, WORKTOP)) in pairs,
+ lid_hand_contact=frozenset((LID, HAND)) in pairs or frozenset((LID, ARM)) in pairs,
+ lid_jar_contact=frozenset((LID, JAR)) in pairs,
+ jar_on_worktop=frozenset((JAR, WORKTOP)) in pairs,
+ jar_hand_contact=frozenset((JAR, HAND)) in pairs or frozenset((JAR, ARM)) in pairs,
+ lid_tilt_rad=tilt_of(data.xmat[self.lid]),
+ jar_tilt_rad=tilt_of(data.xmat[self.jar]),
+ lid_distance_m=float(np.linalg.norm(lid_p[:2] - jar_p[:2])),
+ lid_speed_m_s=lid_v,
+ lid_spin_rad_s=lid_w,
+ jar_speed_m_s=jar_v,
+ )
+
+ def control_end(self, data):
+ """Terminal hold evaluation after a full control step."""
+ if self.failure or self.success:
+ return
+ f = self.final_features(data)
+ ok = (
+ self.stage >= 2
+ and f["lid_on_worktop"] and not f["lid_hand_contact"] and not f["lid_jar_contact"]
+ and f["jar_on_worktop"] and not f["jar_hand_contact"]
+ and f["lid_tilt_rad"] <= FINAL["lid_tilt"]
+ and f["lid_distance_m"] >= FINAL["lid_distance"]
+ and f["lid_speed_m_s"] <= FINAL["lid_speed"] and f["lid_spin_rad_s"] <= FINAL["lid_spin"]
+ and f["jar_tilt_rad"] <= FINAL["jar_tilt"] and f["jar_speed_m_s"] <= FINAL["jar_speed"]
+ )
+ self.hold = self.hold + 1 if ok else 0
+ if self.hold >= HOLD_STEPS:
+ self.stage = 3
+ self.success = True
+
+ def features(self, data):
+ rel_r, rel_p = self.relative_pose(data)
+ return dict(
+ stage=self.stage,
+ stage_name=STAGES[self.stage - 1] if self.stage else "",
+ hold_steps=self.hold,
+ turn_rad=self.turn,
+ max_seated_turn_rad=self.max_turn,
+ lid_height_above_seat_m=float(rel_p[2] - LID_SEAT_Z),
+ lid_clearance_above_rim_m=self.lid_lowest(data) - self.rim_z(data),
+ max_clearance_m=self.max_clear,
+ jar_slide_m=float(np.linalg.norm(data.xpos[self.jar][:2] - self.jar0[:2])),
+ **self.final_features(data),
+ success=self.success,
+ failure=self.failure,
+ failure_detail=self.failure_detail,
+ )
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/instance.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/instance.json
index 6bf562b367..93033b53ba 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/instance.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/instance.json
@@ -122,7 +122,7 @@
0.0
]
},
- "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"jar_xy": [
-0.22,
-0.08
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/task.json b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/task.json
new file mode 100644
index 0000000000..939ee7c989
--- /dev/null
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-privileged/tests/task.json
@@ -0,0 +1,165 @@
+{
+ "schema_version": 1,
+ "id": "jar_lid_open",
+ "title": "Open a jam jar and set the lid aside",
+ "category": "articulated_manipulation",
+ "description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
+ "difficulty": "hard",
+ "mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "robot": "marvin-bimanual-sharpa-wave",
+ "physics_dt": 0.002,
+ "control_dt": 0.02,
+ "max_steps": 3000,
+ "table_z": 0.75,
+ "table_half": [
+ 0.45,
+ 0.58
+ ],
+ "jar_xy": [
+ -0.22,
+ -0.08
+ ],
+ "workspace": {
+ "min": [
+ -0.45,
+ -0.4,
+ 0.73
+ ],
+ "max": [
+ 0.45,
+ 0.4,
+ 1.25
+ ]
+ },
+ "initial_targets": {
+ "sharpa": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.3,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1,
+ 0.0,
+ 0.2,
+ 0.0,
+ 0.2,
+ 0.1
+ ],
+ "wuji": [
+ 1.570796,
+ -1.570796,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ -0.333096,
+ -0.454164,
+ -0.237051,
+ -2.510727,
+ -2.103047,
+ 0.164443,
+ 1.495989,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ]
+ },
+ "release_angle_rad": 1.049342105263158,
+ "stop_angle_rad": 1.2614542215317386,
+ "modeling": "Free rigid jar (550 g, glass and jam as one body, twelve glass contact pads on its base ring) and free rigid steel lid (32 g). Contact-only lug closure: four inclined glass ramps (box segments, 2 mm thick, 3 mm rise over a 1.0 rad run plus a 0.2 rad tightening lead) and four 3 x 2.6 x 1.6 mm steel lugs with 0.8 mm radial play to the glass finish; the thread collides only with the lugs (it is enclosed by the lid skirt). Lightly closed lid: no vacuum, seal adhesion or thread preload; the jam is not simulated.",
+ "rig": "marvin",
+ "marvin": {
+ "base_pos": [
+ -0.56,
+ 0.08,
+ 0.0
+ ],
+ "base_yaw": 0.0
+ }
+}
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/DIGEST b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/DIGEST
index 36a06a8e67..5608692d61 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/DIGEST
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/DIGEST
@@ -1 +1 @@
-sha256:51330a435e82e3c151cc35947d6572d39e56c12f48769c7e574831949312d693
+sha256:306d8f3367beb4f3b020ae47430cd7f4f7e4105bd4d8e2571d655089df94e5dc
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/README.md b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/README.md
index 4aa52c235f..3a15c5d300 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/README.md
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/README.md
@@ -12,7 +12,7 @@
| Base image | `ghcr.io/mll-lab-nu/efe:dexhand-0.2.0@sha256:0d42994b83d95ab5301c592b35586550c9ee426490115e4b43f3b8cf8cc43350` |
## Task
-Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
## Difficulty
One dexterous hand on the right arm of a Tianji Marvin robot does everything and nothing holds the jar: the lid only
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/catalog.json b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/catalog.json
index cb07a63e05..06d35246c7 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/catalog.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/catalog.json
@@ -9,7 +9,7 @@
"description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
"difficulty": "hard",
"mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
- "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"robot": "marvin-bimanual-sharpa-wave",
"physics_dt": 0.002,
"control_dt": 0.02,
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/checker.py b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/checker.py
index 4177447d3e..7a9c808165 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/checker.py
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/checker.py
@@ -13,8 +13,10 @@ Ordered stages (each latches once reached, in order):
Fail-fast (checked after every physics substep; the first failure is permanent and ends the episode):
jar_tipped (jar tilt > 15 deg), jar_slid (jar centre moved > 30 mm horizontally from its reset position),
jar_lifted (jar origin > 15 mm above the worktop), lid_knocked_off (the lid touches the worktop before stage 2),
- lid_dropped (the lid touches nothing - no hand, jar or worktop contact - while its centre of mass moves down faster
- than 0.3 m/s, about a 5 mm free fall, or moves down faster than 1.0 m/s at any time), lid_off_table (the lid or jar touches the floor,
+ lid_dropped (the lid is in the air - its lowest point more than 10 mm above the worktop top - and touches nothing -
+ no hand, jar or worktop contact - while its centre of mass moves down faster than 0.3 m/s, about a 5 mm free fall, or
+ moves down faster than 1.0 m/s whatever it touches; a lid tipping over or falling flat on the worktop is not a drop),
+ lid_off_table (the lid or jar touches the floor,
or an object origin is below the worktop top or outside the worktop footprint), object_left_workspace,
lid_forced_through_thread (the lid leaves the thread zone upward while its lugs are not in the gaps between ramps),
left_arm_contact (the parked left arm or left hand touches the jar or the lid), unstable_physics.
@@ -35,7 +37,10 @@ JAR_TILT_FAIL = math.radians(15.0)
JAR_SLIDE_FAIL = 0.03
JAR_LIFT_FAIL = 0.015
LID_FREE_FALL_SPEED = 0.3 # m/s downward while the lid touches nothing (about a 5 mm free fall): a drop, no catch window
-LID_FALL_SPEED_FAIL = 1.0 # m/s downward at any time, touching or not (catches drops that graze a finger)
+LID_FALL_SPEED_FAIL = 1.0 # m/s downward, touching or not (catches drops that graze a finger)
+LID_AIR_HEIGHT = 0.010 # both fall rules apply only while the lid's lowest point is this far above the worktop top:
+ # a lid tipping over on its edge or falling flat on the worktop is not a drop
+LID_TOP = 0.011 # lid body frame: top face of the lid (lid_top), the skirt bottom is SKIRT_BOTTOM
THREAD_ZONE_HEIGHT = 0.006
THREAD_ZONE_RADIUS = 0.004
CLEAR_HEIGHT = 0.03
@@ -143,6 +148,13 @@ class Checker:
sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
return float(centre[2] - LID_RADIUS * sin_tilt)
+ def lid_lowest_any(self, data):
+ """World z of the lowest point of the lid cylinder (skirt bottom to top face) in any orientation."""
+ rl = data.xmat[self.lid].reshape(3, 3)
+ sin_tilt = math.sqrt(max(0.0, 1.0 - rl[2, 2] ** 2))
+ ends = (data.xpos[self.lid][2] + rl[2, 2] * z for z in (SKIRT_BOTTOM, LID_TOP))
+ return float(min(ends) - LID_RADIUS * sin_tilt)
+
def rim_z(self, data):
rj = data.xmat[self.jar].reshape(3, 3)
return float(data.xpos[self.jar][2] + rj[2, 2] * RIM_Z)
@@ -214,11 +226,15 @@ class Checker:
velocity = np.empty(6)
mujoco.mj_objectVelocity(self.model, data, mujoco.mjtObj.mjOBJ_BODY, self.lid, velocity, 0)
lid_vz = float(velocity[5])
- if lid_vz < -LID_FALL_SPEED_FAIL:
- return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=bool(lid_touch))
- if not lid_touch and lid_vz < -LID_FREE_FALL_SPEED:
- # Fails at the first substep the lid is unsupported and falling: there is no window to catch it again.
- return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=False)
+ if lid_vz < -LID_FREE_FALL_SPEED:
+ # Only a lid in the air drops; one tipping over or settling on the worktop (lowest point within
+ # LID_AIR_HEIGHT of the worktop top) does not, however fast its centre sinks.
+ height = self.lid_lowest_any(data) - self.table_z
+ if height > LID_AIR_HEIGHT and lid_vz < -LID_FALL_SPEED_FAIL:
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=bool(lid_touch), height_m=height)
+ if height > LID_AIR_HEIGHT and not lid_touch:
+ # Fails at the first substep the lid is unsupported and falling: there is no window to catch it again.
+ return fail("lid_dropped", fall_speed_m_s=-lid_vz, touching=False, height_m=height)
rel_r, rel_p = self.relative_pose(data)
height = float(rel_p[2] - LID_SEAT_Z)
radial = float(math.hypot(rel_p[0], rel_p[1]))
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/grading.json b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/grading.json
index 84f17b7a8b..3408a28974 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/grading.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/grading.json
@@ -1 +1 @@
-{"collect_timeout_s": 1800, "instance_sha256": {"catalog.json": "7ce09e87cf1ab342c611cdd0e5975ccd087e06021fb1ee19f792ca710c8b2a34", "instance.json": "5088aad1c93b6213a11eea1b7cef504f4707d52c1c511101b8a21370f23cdc4f", "task.json": "80a6812ac66bcb02ee95ea0096cebeca152b210b0f5f417eb5d15d5671d4c432"}, "video_timeout_s": 2100}
+{"collect_timeout_s": 1800, "instance_sha256": {"catalog.json": "04ba03086af6c16f914375c957f124ede394991f46cafe7bb6de85961e70ce30", "instance.json": "691db1a4aa94fc1bd046bc14fc1f7f344863433b2a8c13b4780dac87e39d5c49", "task.json": "cc23bf2516204ec02dbd9eba56f4401b14f18e86492d98ec2f2610ce467b81e1"}, "video_timeout_s": 2100}
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/instance.json b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/instance.json
index 6bf562b367..93033b53ba 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/instance.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/instance.json
@@ -122,7 +122,7 @@
0.0
]
},
- "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"jar_xy": [
-0.22,
-0.08
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task.json b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task.json
index 003f8ef1f5..939ee7c989 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task.json
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task.json
@@ -6,7 +6,7 @@
"description": "Unscrew the twist-off lid of a filled jam jar with a dexterous hand on a Tianji Marvin arm (Sharpa Wave by default, or Wuji Hand 2.2), lift it clear and set it down upright on the worktop beside the jar; the lid releases only through a contact-only lug thread, and a tipped or slid jar or a dropped lid fails the episode at once.",
"difficulty": "hard",
"mechanism": "contact-only twist-off lug closure (four glass thread ramps, four lid lugs) on free jar and lid bodies",
- "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
+ "instruction": "Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.",
"robot": "marvin-bimanual-sharpa-wave",
"physics_dt": 0.002,
"control_dt": 0.02,
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task_text.txt b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task_text.txt
index bdfb92b058..85da32ce63 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task_text.txt
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/environment/sim/task_text.txt
@@ -1 +1 @@
-Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
diff --git a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/instruction.md b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/instruction.md
index 0ddc12dc54..b839a00819 100644
--- a/tasks/dexhand/dexhand-jar-lid-open-i00-standard/instruction.md
+++ b/tasks/dexhand/dexhand-jar-lid-open-i00-standard/instruction.md
@@ -1,6 +1,6 @@
# DexHand: Open a jam jar and set the lid aside
-Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
+Open the jam jar with the robot's right hand and set its lid aside on the worktop. Scene (world frame, metres, z up, +x forward from the robot): the worktop top is at z = 0.75 and spans |x| <= 0.45, |y| <= 0.58. A filled 297 ml glass jam jar (550 g, 67 mm body diameter, 110 mm tall, rim at z = 0.86) stands upright on the worktop centred at x = -0.22, y = -0.08. Nothing holds the jar: it stands on its own weight and glass-on-worktop friction, which resists only about 0.13 N m of twisting torque, so the hand must turn the lid without turning, sliding or tipping the jar. Its red 64.8 mm twist-off steel lid (32 g) is closed. Jar and lid are free rigid bodies. The closure is a lug thread made of contact geometry only: four inclined glass ramps on the jar neck hold four inward lugs of the lid, so the closed lid cannot be pulled off. Turning the lid counter-clockwise seen from above (positive rotation about +z relative to the jar) slides the lugs up the ramps; at 1.049 rad they pass the ramp ends, and while they sit in the gaps between the ramps (turn between 1.049 and about 1.26 rad) the lid lifts off freely; turned further without lifting, the lugs run into the next ramps' leads, and turning clockwise from the closed position tightens and jams. The lid is lightly closed: no vacuum, seal adhesion or tightening torque is modelled, and the jam is part of the jar's rigid mass, not a fluid. Complete three stages in this order. (1) Unscrew: while the lid is still seated on the thread (lid origin less than 6 mm above its closed height and within 4 mm of the jar axis, in the jar frame), its counter-clockwise turn relative to the jar, unwrapped after every physics substep, reaches at least 1.049 rad. (2) Lift clear: afterwards, the lowest point of the lid skirt rises more than 30 mm above the jar rim. (3) Set aside: afterwards, for 50 consecutive controls (1 s), the lid touches the worktop and touches neither the hand nor the jar, is upright (tilt at most 0.15 rad), has its centre at least 90 mm horizontally from the jar axis, moves at most 0.02 m/s and turns at most 0.3 rad/s, while the jar touches the worktop, is not touched by the hand, is upright within 0.10 rad and moves at most 0.02 m/s. The episode ends with success at that moment; a partial sequence never counts. The episode ends immediately with failure, checked after every 2 ms physics substep, when: the jar tilts more than 15 degrees (jar_tipped), slides more than 30 mm horizontally from its start (jar_slid) or is lifted more than 15 mm (jar_lifted); the lid touches the worktop before stage 2 (lid_knocked_off); the lid drops: while it is in the air (its lowest point more than 10 mm above the worktop top), at any substep it touches nothing (no hand, jar or worktop contact) while its centre of mass moves downward faster than 0.3 m/s (about a 5 mm free fall; there is no window to catch it again), or its centre of mass moves downward faster than 1.0 m/s whatever it touches (lid_dropped); a lid that tips over or falls flat on the worktop (lowest point within 10 mm of the worktop top) has not dropped; the jar or the lid touches the floor, its origin falls more than 5 mm below the worktop top or leaves the worktop footprint (lid_off_table, jar_off_table) or the workspace box x in [-0.45, 0.45] m, y in [-0.40, 0.40] m, z in [0.73, 1.25] m (object_left_workspace); the lid leaves the thread upward while its lugs are not in the gaps between the ramps, i.e. its turn modulo pi/2 is outside [1.019, 1.291] rad (lid_forced_through_thread); the parked left arm or the left hand touches the jar or the lid (left_arm_contact; moving the left arm is not blocked, but the task is done by the right arm and hand); or the physics becomes unstable (unstable_physics). Later actions cannot undo a failure. Only robot actuator targets are allowed: the joints of the Marvin right arm and its hand (the left arm stays parked with its hand open), no object teleports, grasp welds, scripted object motion or direct object forces. Any robot part touching the jar or the lid counts as the hand touching it. The episode allows at most 3000 controls at 50 Hz; reaching that limit without success is a failure.
You control the right arm and right hand of a fixed Tianji Marvin robot: a stand with two 7-joint arms and a dexterous
hand on each wrist (the robot stands behind the worktop, its base centre at x = -0.56, y = 0.08 on the floor, facing
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/DIGEST b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/DIGEST
index 1b9b15534d..7d236d5a9b 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/DIGEST
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/DIGEST
@@ -1 +1 @@
-sha256:78b24163ef73a220ed928380b54fcdcc0dfdbedb55533c1c1e57f1d75e535a46
+sha256:71637fe27af428c6f88859f9fee382ba2a64892825334d3eb1f65741c1454ef5
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/README.md b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/README.md
index c8f4870278..34813f2e74 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/README.md
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/README.md
@@ -7,7 +7,7 @@
| Twin | `dextoolbench_spatula_flat_spatula_flip_over-standard` |
| Simulator / robot | `mujoco` / `kuka-iiwa14-sharpa-ha4` |
| Family / instance | `dextoolbench/spatula/flat_spatula/flip_over` / seed 0 |
-| Oracle | `partial` — SimToolReal's pretrained policy, replayed in this scene, reaches 7/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged) |
+| Oracle | `partial` — SimToolReal's pretrained policy, replayed in this scene, reaches 22/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged) |
| Agent time budget | 3600 s; tokens: protocol default (docs/protocol/running.md "Official runs") |
| Base image | `ghcr.io/mll-lab-nu/efe:mujoco-0.1.2` |
@@ -15,10 +15,10 @@
DexToolBench task `spatula / flat_spatula / flip_over` (SimToolReal, MIT) ported to plain MuJoCo for this benchmark.
## Difficulty
-Dexterous tool use: a KUKA iiwa 14 arm with a 22-DoF Sharpa HA4 hand (29 position-controlled joints) must carry the tool along DexToolBench's goal trajectory, every goal within 1.5 cm on all keypoints, and success needs every goal. SimToolReal's pretrained policy reaches 7/45 goals here.
+Dexterous tool use: a KUKA iiwa 14 arm with a 22-DoF Sharpa HA4 hand (29 position-controlled joints) must carry the tool along DexToolBench's goal trajectory, every goal within 1.5 cm on all keypoints, and success needs every goal. SimToolReal's pretrained policy reaches 22/45 goals here.
## Reference solution
-`solution/`: SimToolReal's pretrained policy run in this exact scene, recorded targets replayed: **7/45 goals** in 1284 control steps (the policy's own sim2sim progress; a task's reference, not a ceiling); nop 0/45
+`solution/`: SimToolReal's pretrained policy run in this exact scene, recorded targets replayed: **22/45 goals** in 1829 control steps (the policy's own sim2sim progress; a task's reference, not a ceiling); nop 0/45
## Verification
DexToolBench task progress: goal reached when all 8 grasp-box keypoints are within 1.5 cm; 30 s per goal (upstream 10 s); `reward.txt` = 1 iff every goal is reached (both replays agreeing); `progress` = goals / 45 in `reward.json`
@@ -42,4 +42,5 @@ Caps per container (PROTOCOL §6).
| physics | MuJoCo 3.3.7, 600 Hz, implicitfast, elliptic cones; control 60 Hz (10 substeps) |
| deliverable | `(T, 29)` joint targets per control step; bit-exact replay |
| table props | bowl + plate (table_narrow_bowl_plate; primitive stand-ins, the YCB meshes are not in the SimToolReal repo) |
+| start pose | where the spatula rests on the plate and the bowl rim (the demo's pose, flat on a bare table, would put it inside the bowl and plate stand-ins); from it the spatula settles by under 1 mm and 0.4° |
| egress | allowlist (the model APIs and the package registries): the pretrained policy is publicly downloadable |
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/environment/instance.json b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/environment/instance.json
index 76aa19309c..864fbf4140 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/environment/instance.json
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/environment/instance.json
@@ -5,13 +5,13 @@
"task": "flip_over",
"text": "Pick up the flat spatula and move it through the demonstrated motion (flipping something over): bring it to each goal pose in order (the green marker shows the current goal).",
"start_pose": [
- 0.09248568018426495,
- 0.05355371562126787,
- 0.5508237114298127,
- 0.03446977055457573,
- -0.9987702624665962,
- -0.0005223555338989761,
- 0.035630392574571505
+ 0.09034473935297553,
+ 0.055795850120749425,
+ 0.5704359334240338,
+ 0.031024624553323905,
+ -0.991561219942405,
+ 0.11134141753290491,
+ 0.0587103782939438
],
"goals": [
[
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/solution/oracle_targets.npy b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/solution/oracle_targets.npy
index d24ab740f4..12f034f0fe 100644
Binary files a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/solution/oracle_targets.npy and b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/solution/oracle_targets.npy differ
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/task.toml b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/task.toml
index 73d9256484..9f624ece5e 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/task.toml
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/task.toml
@@ -13,7 +13,7 @@ robot = "kuka-iiwa14-sharpa-ha4"
family = "dextoolbench/spatula/flat_spatula/flip_over"
dynamics = "static" # scene dynamics (docs/protocol/README.md §2): the task's own declaration
oracle = "partial"
-oracle_evidence = "SimToolReal's pretrained policy, replayed in this scene, reaches 7/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged)"
+oracle_evidence = "SimToolReal's pretrained policy, replayed in this scene, reaches 22/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged)"
instance_seed = 0 # DexToolBench fixes the start pose and goals (from a human demo); no randomization
expert_time_estimate_hours = 4.0
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/tests/instance.json b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/tests/instance.json
index 76aa19309c..864fbf4140 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/tests/instance.json
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-privileged/tests/instance.json
@@ -5,13 +5,13 @@
"task": "flip_over",
"text": "Pick up the flat spatula and move it through the demonstrated motion (flipping something over): bring it to each goal pose in order (the green marker shows the current goal).",
"start_pose": [
- 0.09248568018426495,
- 0.05355371562126787,
- 0.5508237114298127,
- 0.03446977055457573,
- -0.9987702624665962,
- -0.0005223555338989761,
- 0.035630392574571505
+ 0.09034473935297553,
+ 0.055795850120749425,
+ 0.5704359334240338,
+ 0.031024624553323905,
+ -0.991561219942405,
+ 0.11134141753290491,
+ 0.0587103782939438
],
"goals": [
[
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/DIGEST b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/DIGEST
index 1b59bfecd3..17bc070c45 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/DIGEST
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/DIGEST
@@ -1 +1 @@
-sha256:bbcbf0e6c62e88c968880eb7ab4e095e119bda9c56a0dee1852ce229fc465c43
+sha256:25078527b575fac2e58f7d372e648d301c8a3f672f16424f925640dab61eecb2
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/README.md b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/README.md
index 17112132d6..a3344e4ce1 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/README.md
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/README.md
@@ -7,7 +7,7 @@
| Twin | `dextoolbench_spatula_flat_spatula_flip_over-privileged` |
| Simulator / robot | `mujoco` / `kuka-iiwa14-sharpa-ha4` |
| Family / instance | `dextoolbench/spatula/flat_spatula/flip_over` / seed 0 |
-| Oracle | `partial` — SimToolReal's pretrained policy, replayed in this scene, reaches 7/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged) |
+| Oracle | `partial` — SimToolReal's pretrained policy, replayed in this scene, reaches 22/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged) |
| Agent time budget | 3600 s; tokens: protocol default (docs/protocol/running.md "Official runs") |
| Base image | `ghcr.io/mll-lab-nu/efe:mujoco-0.1.2` |
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/docker-compose.yaml b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/docker-compose.yaml
index 6a4be0fd5b..62b2fb97fb 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/docker-compose.yaml
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/docker-compose.yaml
@@ -25,7 +25,7 @@ services:
RCB_DTB_GOAL_TIMEOUT_S: "0"
RCB_MAX_CONTROL_STEPS: "360000"
RCB_RESET_BUDGET: "${RCB_RESET_BUDGET:-20}" # DexToolBench standard: 20 resets (PROTOCOL §2); 0: one episode
- RCB_START_SHA: "3f09aa00e5d1" # the frozen start's state hash: an episode on another start is refused (instance_mismatch)
+ RCB_START_SHA: "09d060c5bc89" # the frozen start's state hash: an episode on another start is refused (instance_mismatch)
PYTHONPATH: /srv
RCB_MJ_ROOT: /opt/rcb_mj
RCB_WALL_CLOCK_S: "3600"
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/sim/instance.json b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/sim/instance.json
index 76aa19309c..864fbf4140 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/sim/instance.json
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/environment/sim/instance.json
@@ -5,13 +5,13 @@
"task": "flip_over",
"text": "Pick up the flat spatula and move it through the demonstrated motion (flipping something over): bring it to each goal pose in order (the green marker shows the current goal).",
"start_pose": [
- 0.09248568018426495,
- 0.05355371562126787,
- 0.5508237114298127,
- 0.03446977055457573,
- -0.9987702624665962,
- -0.0005223555338989761,
- 0.035630392574571505
+ 0.09034473935297553,
+ 0.055795850120749425,
+ 0.5704359334240338,
+ 0.031024624553323905,
+ -0.991561219942405,
+ 0.11134141753290491,
+ 0.0587103782939438
],
"goals": [
[
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/solution/oracle_targets.npy b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/solution/oracle_targets.npy
index d24ab740f4..12f034f0fe 100644
Binary files a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/solution/oracle_targets.npy and b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/solution/oracle_targets.npy differ
diff --git a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/task.toml b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/task.toml
index 000e40f605..385fa90969 100644
--- a/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/task.toml
+++ b/tasks/dextoolbench/dextoolbench_spatula_flat_spatula_flip_over-standard/task.toml
@@ -24,7 +24,7 @@ instance_seed = 0 # DexToolBench fixes the start pose and goals
expert_time_estimate_hours = 4.0
protocol = "eai-standard/2.1"
oracle = "partial"
-oracle_evidence = "SimToolReal's pretrained policy, replayed in this scene, reaches 7/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged)"
+oracle_evidence = "SimToolReal's pretrained policy, replayed in this scene, reaches 22/45 goals (solution/; README of dextoolbench_spatula_flat_spatula_flip_over-privileged)"
[verifier]
timeout_sec = 1200.0