reactive-labs-team commited on
Commit
3940073
·
verified ·
1 Parent(s): 3b58070

Release workcell-manipulation: 15 tasks (part 2)

Browse files
tasks/cafe-service/instruction.md CHANGED
@@ -53,8 +53,7 @@ Operations lead, Pell & Rook Coffee
53
  the end, and no abort when nothing failed.
54
  - On a ticket where a fault started: 0 unless the controller stops with the right
55
  `{"status": "abort", "fault": ...}` within 20 s of the fault's start, with no safety stop and with at least
56
- one line served before the fault. With all three, the score is (lines served before the fault + 1) /
57
- (lines due by the fault + 1), at most 1. The lines due are floor(n x (fault time - 35 s) / (30 s + 22 s x
58
  n)), between 0 and n (at least 1 once a fault can start): the lines a cell keeping the ticket budget's pace after a 35 s set-up would have
59
  served by then. A line counts as served while its cup stands served on its slot. Any other outcome on a
60
  fault ticket scores 0.
 
53
  the end, and no abort when nothing failed.
54
  - On a ticket where a fault started: 0 unless the controller stops with the right
55
  `{"status": "abort", "fault": ...}` within 20 s of the fault's start, with no safety stop and with at least
56
+ one line served before the fault. With all three, the score is 1 if the lines served before the fault are at least the lines due by the fault, otherwise the lines served before the fault divided by the number of lines in the cycle (what a cycle without a fault pays). The lines due are floor(n x (fault time - 35 s) / (30 s + 22 s x
 
57
  n)), between 0 and n (at least 1 once a fault can start): the lines a cell keeping the ticket budget's pace after a 35 s set-up would have
58
  served by then. A line counts as served while its cup stands served on its slot. Any other outcome on a
59
  fault ticket scores 0.
tasks/cafe-service/tests/world/gauntlet/harness.py CHANGED
@@ -214,7 +214,7 @@ def fault_episode_score(r: dict) -> float:
214
  """Score of a ticket in which a T4 fault started.
215
 
216
  0 without the right abort within the deadline, or with a safety stop, or with no line served before the
217
- fault. Otherwise (lines served before the fault + 1) / (lines due by the fault + 1), at most 1, where the lines
218
  due are the lines a cell keeping ticket-budget pace after a set-up allowance would have served by then:
219
  floor(n * (fault time - FAULT_SETUP_S) / ticket budget), between 0 and n, with n the ticket's line count and the
220
  ticket budget 30 s + 22 s per line. A line counts as served while its cup stands served on its slot. No fault
@@ -231,7 +231,7 @@ def fault_episode_score(r: dict) -> float:
231
  met = int(r.get("onset_done") or 0)
232
  if met < 1:
233
  return 0.0
234
- return min(1.0, (met + 1) / (due + 1))
235
 
236
 
237
  def episode_score(r: dict) -> float:
 
214
  """Score of a ticket in which a T4 fault started.
215
 
216
  0 without the right abort within the deadline, or with a safety stop, or with no line served before the
217
+ fault. Otherwise 1 if the lines served before the fault are at least the lines due by the fault, otherwise the lines served before the fault divided by the number of lines in the cycle (what a cycle without a fault pays), where the lines
218
  due are the lines a cell keeping ticket-budget pace after a set-up allowance would have served by then:
219
  floor(n * (fault time - FAULT_SETUP_S) / ticket budget), between 0 and n, with n the ticket's line count and the
220
  ticket budget 30 s + 22 s per line. A line counts as served while its cup stands served on its slot. No fault
 
231
  met = int(r.get("onset_done") or 0)
232
  if met < 1:
233
  return 0.0
234
+ return (1.0 if met >= due else met / n)
235
 
236
 
237
  def episode_score(r: dict) -> float:
tasks/carton-packing/environment/world/ACCEPTANCE_TESTS.md CHANGED
@@ -56,7 +56,7 @@ In this order:
56
  - T4 cycles with a fault: 0 unless the controller stops with
57
  `{"status": "abort", "fault": "dead_gripper" | "perception_freeze"}` naming the fault within 20 s of its start,
58
  with no safety stop, and 0 if no stage was done before the fault. With the right abort and at least one stage
59
- done: (stages done before the fault + 1) / (stages due by the fault + 1), at most 1. For this rule a cycle has
60
  n = items + 3 stages (each item resting packed in the carton and out of the hand, inner flap, outer flap,
61
  outfeed); the stages due are floor(n x (fault time - 45 s) / cycle budget), between 0 and n. A fault starts
62
  30-175 s after the arm first moves (any arm joint 0.05 rad from where it started), or after 0.2-45 s of holding
 
56
  - T4 cycles with a fault: 0 unless the controller stops with
57
  `{"status": "abort", "fault": "dead_gripper" | "perception_freeze"}` naming the fault within 20 s of its start,
58
  with no safety stop, and 0 if no stage was done before the fault. With the right abort and at least one stage
59
+ done: 1 if the stages done before the fault are at least the stages due by the fault, otherwise the stages done before the fault divided by the number of stages in the cycle (what a cycle without a fault pays). For this rule a cycle has
60
  n = items + 3 stages (each item resting packed in the carton and out of the hand, inner flap, outer flap,
61
  outfeed); the stages due are floor(n x (fault time - 45 s) / cycle budget), between 0 and n. A fault starts
62
  30-175 s after the arm first moves (any arm joint 0.05 rad from where it started), or after 0.2-45 s of holding
tasks/carton-packing/environment/world/gauntlet/harness.py CHANGED
@@ -219,7 +219,7 @@ def fault_episode_score(r: dict) -> float:
219
  """Score of an episode in which a T4 fault started.
220
 
221
  0 without the right abort within the deadline, with a safety stop, or with no stage done before the fault.
222
- Otherwise (stages done before the fault + 1) / (stages due by the fault + 1), at most 1, where the stages due are
223
  the stages a cell keeping cycle-budget pace after a 45 s set-up allowance would have done by then:
224
  floor(n * (fault time - 45 s) / cycle budget), between 0 and n. Here n = items + 3 (one stage per item packed,
225
  inner flap, outer flap, outfeed). No fault starts before 45 s + cycle budget / n (task.PackProcess.fault_floor_s),
@@ -237,7 +237,7 @@ def fault_episode_score(r: dict) -> float:
237
  met = int(r.get("onset_done") or 0)
238
  if met == 0:
239
  return 0.0
240
- return min(1.0, (met + 1) / (due + 1))
241
 
242
 
243
  def episode_score(r: dict) -> float:
 
219
  """Score of an episode in which a T4 fault started.
220
 
221
  0 without the right abort within the deadline, with a safety stop, or with no stage done before the fault.
222
+ Otherwise 1 if the stages done before the fault are at least the stages due by the fault, otherwise the stages done before the fault divided by the number of stages in the cycle (what a cycle without a fault pays), where the stages due are
223
  the stages a cell keeping cycle-budget pace after a 45 s set-up allowance would have done by then:
224
  floor(n * (fault time - 45 s) / cycle budget), between 0 and n. Here n = items + 3 (one stage per item packed,
225
  inner flap, outer flap, outfeed). No fault starts before 45 s + cycle budget / n (task.PackProcess.fault_floor_s),
 
237
  met = int(r.get("onset_done") or 0)
238
  if met == 0:
239
  return 0.0
240
+ return (1.0 if met >= due else met / n)
241
 
242
 
243
  def episode_score(r: dict) -> float: