Release workcell-manipulation: 15 tasks (part 12)
Browse files
tasks/toolbox-kitting/instruction.md
CHANGED
|
@@ -67,6 +67,6 @@ Stores supervisor, Kestrel Field Services
|
|
| 67 |
- Jobs with a gripper or camera fault. The fault starts 55 s into the job or later. The job needs the right
|
| 68 |
`{"status": "abort", "fault": ...}` after the fault starts, with no damage and no safety stop; otherwise it
|
| 69 |
scores 0. It also scores 0 if no stage was done before the fault started. Otherwise it scores
|
| 70 |
-
|
| 71 |
started and the stages due are floor(8 x (fault time - 30 s) / 200 s), at least 1.
|
| 72 |
- Reward: mean job score. `scene.xml`, `task.py` and `robot/panda.xml` in `/app` must be unchanged.
|
|
|
|
| 67 |
- Jobs with a gripper or camera fault. The fault starts 55 s into the job or later. The job needs the right
|
| 68 |
`{"status": "abort", "fault": ...}` after the fault starts, with no damage and no safety stop; otherwise it
|
| 69 |
scores 0. It also scores 0 if no stage was done before the fault started. Otherwise it scores
|
| 70 |
+
1 if the stages done are at least the stages due, otherwise the stages done divided by the number of stages in the cycle (what a cycle without a fault pays), where the stages done are those done by the time the fault
|
| 71 |
started and the stages due are floor(8 x (fault time - 30 s) / 200 s), at least 1.
|
| 72 |
- Reward: mean job score. `scene.xml`, `task.py` and `robot/panda.xml` in `/app` must be unchanged.
|
tasks/toolbox-kitting/tests/world/gauntlet/harness.py
CHANGED
|
@@ -226,7 +226,7 @@ def episode_score(r: dict) -> float:
|
|
| 226 |
|
| 227 |
- A job in which a gripper or camera fault started: 0 without the right abort after the onset, or with a damage
|
| 228 |
check or safety stop. With them: 0 if no stage was done before the fault started; otherwise
|
| 229 |
-
|
| 230 |
floor(8 (onset - 30 s) / 200 s), between 1 and 8 (`stages_due`).
|
| 231 |
- 1.0 for a safe pass: every stage done, `done` reported, the hand empty and everything at rest.
|
| 232 |
- Arm safety stop (joint speed or limit, contact or impact force, self-contact), controller error or wall-time
|
|
@@ -245,7 +245,7 @@ def episode_score(r: dict) -> float:
|
|
| 245 |
met = sum(1 for s in st if s.get("done") and s.get("t") is not None and s["t"] <= t_fault)
|
| 246 |
if met == 0:
|
| 247 |
return 0.0
|
| 248 |
-
return
|
| 249 |
if r.get("safe_pass"):
|
| 250 |
return 1.0
|
| 251 |
if status in ("crash", "abort"):
|
|
|
|
| 226 |
|
| 227 |
- A job in which a gripper or camera fault started: 0 without the right abort after the onset, or with a damage
|
| 228 |
check or safety stop. With them: 0 if no stage was done before the fault started; otherwise
|
| 229 |
+
1 if the stages done by the onset are at least the stages due by the onset, otherwise the stages done by the onset divided by the number of stages in the cycle (what a cycle without a fault pays), where the stages due are
|
| 230 |
floor(8 (onset - 30 s) / 200 s), between 1 and 8 (`stages_due`).
|
| 231 |
- 1.0 for a safe pass: every stage done, `done` reported, the hand empty and everything at rest.
|
| 232 |
- Arm safety stop (joint speed or limit, contact or impact force, self-contact), controller error or wall-time
|
|
|
|
| 245 |
met = sum(1 for s in st if s.get("done") and s.get("t") is not None and s["t"] <= t_fault)
|
| 246 |
if met == 0:
|
| 247 |
return 0.0
|
| 248 |
+
return (1.0 if met >= stages_due(t_fault, n) else met / n)
|
| 249 |
if r.get("safe_pass"):
|
| 250 |
return 1.0
|
| 251 |
if status in ("crash", "abort"):
|
tasks/tube-racking/environment/world/ACCEPTANCE_TESTS.md
CHANGED
|
@@ -52,7 +52,7 @@ get knocked out of the hand. A tube that ends up somewhere it can still be picke
|
|
| 52 |
- A batch that broke rule 6 scores the share of stages done, at most 0.5.
|
| 53 |
- A batch that broke rule 1, 2, 3 or 5 scores the share of stages done before the first breach, at most 0.5.
|
| 54 |
- A fault batch scores 0 without the right abort, with a safety stop, or with no tube racked before the fault.
|
| 55 |
-
Otherwise it scores
|
| 56 |
where the rack stages due are floor(n x (fault time - 30 s) / 240 s) and n is the batch's tube count: a cell
|
| 57 |
keeping pace through the batch scores 1.0. Pick stages do not count here.
|
| 58 |
- A controller error or a computing-time limit scores 0 for that batch.
|
|
|
|
| 52 |
- A batch that broke rule 6 scores the share of stages done, at most 0.5.
|
| 53 |
- A batch that broke rule 1, 2, 3 or 5 scores the share of stages done before the first breach, at most 0.5.
|
| 54 |
- A fault batch scores 0 without the right abort, with a safety stop, or with no tube racked before the fault.
|
| 55 |
+
Otherwise it scores 1 if the rack stages done before the fault are at least the rack stages due by the fault, otherwise the rack stages done before the fault divided by the number of rack stages in the cycle (what a cycle without a fault pays),
|
| 56 |
where the rack stages due are floor(n x (fault time - 30 s) / 240 s) and n is the batch's tube count: a cell
|
| 57 |
keeping pace through the batch scores 1.0. Pick stages do not count here.
|
| 58 |
- A controller error or a computing-time limit scores 0 for that batch.
|
tasks/tube-racking/environment/world/gauntlet/harness.py
CHANGED
|
@@ -214,7 +214,7 @@ def fault_episode_score(r: dict) -> float:
|
|
| 214 |
"""Score of a batch in which a T4 fault started.
|
| 215 |
|
| 216 |
0 without the right abort, with a safety stop, or with no tube racked before the fault. Otherwise
|
| 217 |
-
|
| 218 |
due are those a cell keeping batch-budget pace after a grace period would have done by then:
|
| 219 |
floor(n * (fault time - grace) / batch budget), between 0 and n, with n the batch's tube count and the 240 s
|
| 220 |
budget. A rack stage counts when it is done at the end and the tube was first seated before the fault started.
|
|
@@ -234,7 +234,7 @@ def fault_episode_score(r: dict) -> float:
|
|
| 234 |
r["onset_done"], r["onset_due"] = met, due
|
| 235 |
if met == 0:
|
| 236 |
return 0.0
|
| 237 |
-
return
|
| 238 |
|
| 239 |
|
| 240 |
def episode_score(r: dict) -> float:
|
|
|
|
| 214 |
"""Score of a batch in which a T4 fault started.
|
| 215 |
|
| 216 |
0 without the right abort, with a safety stop, or with no tube racked before the fault. Otherwise
|
| 217 |
+
1 if the rack stages done before the fault are at least the rack stages due by the fault, otherwise the rack stages done before the fault divided by the number of rack stages in the cycle (what a cycle without a fault pays), where the rack stages
|
| 218 |
due are those a cell keeping batch-budget pace after a grace period would have done by then:
|
| 219 |
floor(n * (fault time - grace) / batch budget), between 0 and n, with n the batch's tube count and the 240 s
|
| 220 |
budget. A rack stage counts when it is done at the end and the tube was first seated before the fault started.
|
|
|
|
| 234 |
r["onset_done"], r["onset_due"] = met, due
|
| 235 |
if met == 0:
|
| 236 |
return 0.0
|
| 237 |
+
return (1.0 if met >= due else met / n)
|
| 238 |
|
| 239 |
|
| 240 |
def episode_score(r: dict) -> float:
|