Release workcell-manipulation: 15 tasks (part 11)
Browse files
tasks/shelf-recovery/environment/world/gauntlet/harness.py
CHANGED
|
@@ -232,8 +232,7 @@ def episode_score(r: dict) -> float:
|
|
| 232 |
"""Visit score (SR-2 acceptance table). Credit is per fallen bottle, and only for its whole chain: stood up and
|
| 233 |
seated on a footprint (a bottle only stood up earns nothing).
|
| 234 |
- a visit where a fault started: 0 without the right abort within 20 s, with a safety stop, or with no bottle
|
| 235 |
-
finished before the fault; otherwise
|
| 236 |
-
at most 1, where the bottles due are those a cell keeping pace (one bottle per 75 s after a 55 s set-up
|
| 237 |
allowance) would have finished by then: floor((fault time - 55 s) / 75 s), between 1 and n;
|
| 238 |
- a crash or an abort when nothing failed: 0;
|
| 239 |
- otherwise 1.0 for a safe pass; on a safe visit the share of bottles finished (0.9 at most); after a safety
|
|
@@ -251,7 +250,7 @@ def episode_score(r: dict) -> float:
|
|
| 251 |
met = bottles_done(stages, t_fault)
|
| 252 |
if met == 0:
|
| 253 |
return 0.0
|
| 254 |
-
return
|
| 255 |
if r.get("safe_pass"):
|
| 256 |
return 1.0
|
| 257 |
viol = set(r.get("violations", []))
|
|
|
|
| 232 |
"""Visit score (SR-2 acceptance table). Credit is per fallen bottle, and only for its whole chain: stood up and
|
| 233 |
seated on a footprint (a bottle only stood up earns nothing).
|
| 234 |
- a visit where a fault started: 0 without the right abort within 20 s, with a safety stop, or with no bottle
|
| 235 |
+
finished before the fault; otherwise 1 if the bottles finished before the fault are at least the bottles due by the fault, otherwise the bottles finished before the fault divided by the number of bottles in the cycle (what a cycle without a fault pays), where the bottles due are those a cell keeping pace (one bottle per 75 s after a 55 s set-up
|
|
|
|
| 236 |
allowance) would have finished by then: floor((fault time - 55 s) / 75 s), between 1 and n;
|
| 237 |
- a crash or an abort when nothing failed: 0;
|
| 238 |
- otherwise 1.0 for a safe pass; on a safe visit the share of bottles finished (0.9 at most); after a safety
|
|
|
|
| 250 |
met = bottles_done(stages, t_fault)
|
| 251 |
if met == 0:
|
| 252 |
return 0.0
|
| 253 |
+
return (1.0 if met >= bottles_due(nb, t_fault) else met / nb)
|
| 254 |
if r.get("safe_pass"):
|
| 255 |
return 1.0
|
| 256 |
viol = set(r.get("violations", []))
|
tasks/shelf-recovery/instruction.md
CHANGED
|
@@ -89,7 +89,7 @@ the visit as a controller error. The whole acceptance run of 18 visits must fini
|
|
| 89 |
- 0 without the right `{"status": "abort", "fault": ...}` within 20 s after the fault starts, or with a
|
| 90 |
safety stop;
|
| 91 |
- 0 if no fallen bottle was finished before the fault, even with the right abort;
|
| 92 |
-
- otherwise
|
| 93 |
bottles due are those a cell finishing one fallen bottle per 75 s after a 55 s set-up allowance would
|
| 94 |
have finished: floor((fault time - 55 s) / 75 s), between 1 and the visit's number of fallen bottles.
|
| 95 |
- Reward: mean visit score. `scene.xml`, `task.py` and `robot/so101.xml` in `/app` must be unchanged.
|
|
|
|
| 89 |
- 0 without the right `{"status": "abort", "fault": ...}` within 20 s after the fault starts, or with a
|
| 90 |
safety stop;
|
| 91 |
- 0 if no fallen bottle was finished before the fault, even with the right abort;
|
| 92 |
+
- otherwise 1 if the bottles finished before the fault are at least the bottles due by the fault, otherwise the bottles finished before the fault divided by the number of bottles in the cycle (what a cycle without a fault pays). The
|
| 93 |
bottles due are those a cell finishing one fallen bottle per 75 s after a 55 s set-up allowance would
|
| 94 |
have finished: floor((fault time - 55 s) / 75 s), between 1 and the visit's number of fallen bottles.
|
| 95 |
- Reward: mean visit score. `scene.xml`, `task.py` and `robot/so101.xml` in `/app` must be unchanged.
|
tasks/shelf-recovery/tests/world/gauntlet/harness.py
CHANGED
|
@@ -232,8 +232,7 @@ def episode_score(r: dict) -> float:
|
|
| 232 |
"""Visit score (SR-2 acceptance table). Credit is per fallen bottle, and only for its whole chain: stood up and
|
| 233 |
seated on a footprint (a bottle only stood up earns nothing).
|
| 234 |
- a visit where a fault started: 0 without the right abort within 20 s, with a safety stop, or with no bottle
|
| 235 |
-
finished before the fault; otherwise
|
| 236 |
-
at most 1, where the bottles due are those a cell keeping pace (one bottle per 75 s after a 55 s set-up
|
| 237 |
allowance) would have finished by then: floor((fault time - 55 s) / 75 s), between 1 and n;
|
| 238 |
- a crash or an abort when nothing failed: 0;
|
| 239 |
- otherwise 1.0 for a safe pass; on a safe visit the share of bottles finished (0.9 at most); after a safety
|
|
@@ -251,7 +250,7 @@ def episode_score(r: dict) -> float:
|
|
| 251 |
met = bottles_done(stages, t_fault)
|
| 252 |
if met == 0:
|
| 253 |
return 0.0
|
| 254 |
-
return
|
| 255 |
if r.get("safe_pass"):
|
| 256 |
return 1.0
|
| 257 |
viol = set(r.get("violations", []))
|
|
|
|
| 232 |
"""Visit score (SR-2 acceptance table). Credit is per fallen bottle, and only for its whole chain: stood up and
|
| 233 |
seated on a footprint (a bottle only stood up earns nothing).
|
| 234 |
- a visit where a fault started: 0 without the right abort within 20 s, with a safety stop, or with no bottle
|
| 235 |
+
finished before the fault; otherwise 1 if the bottles finished before the fault are at least the bottles due by the fault, otherwise the bottles finished before the fault divided by the number of bottles in the cycle (what a cycle without a fault pays), where the bottles due are those a cell keeping pace (one bottle per 75 s after a 55 s set-up
|
|
|
|
| 236 |
allowance) would have finished by then: floor((fault time - 55 s) / 75 s), between 1 and n;
|
| 237 |
- a crash or an abort when nothing failed: 0;
|
| 238 |
- otherwise 1.0 for a safe pass; on a safe visit the share of bottles finished (0.9 at most); after a safety
|
|
|
|
| 250 |
met = bottles_done(stages, t_fault)
|
| 251 |
if met == 0:
|
| 252 |
return 0.0
|
| 253 |
+
return (1.0 if met >= bottles_due(nb, t_fault) else met / nb)
|
| 254 |
if r.get("safe_pass"):
|
| 255 |
return 1.0
|
| 256 |
viol = set(r.get("violations", []))
|
tasks/toolbox-kitting/environment/world/ACCEPTANCE_TESTS.md
CHANGED
|
@@ -69,8 +69,7 @@ takes 30 s to set up and then does the eight stages in 200 s:
|
|
| 69 |
- stages done at the fault = the stages done (as in the stage table) at or before the moment the fault started.
|
| 70 |
|
| 71 |
The job scores 0 without the right abort after the fault started, with damage or a safety stop, or with no stage
|
| 72 |
-
done before the fault, even if the abort is right. Otherwise it scores
|
| 73 |
-
most 1. Example: a fault at 120 s has 3 stages due; a job with 2 stages done by then scores 3/4, with 3 or more
|
| 74 |
it scores 1.
|
| 75 |
|
| 76 |
## Upsets and variation
|
|
|
|
| 69 |
- stages done at the fault = the stages done (as in the stage table) at or before the moment the fault started.
|
| 70 |
|
| 71 |
The job scores 0 without the right abort after the fault started, with damage or a safety stop, or with no stage
|
| 72 |
+
done before the fault, even if the abort is right. Otherwise it scores 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). Example: a fault at 120 s has 3 stages due; a job with 2 stages done by then scores 3/4, with 3 or more
|
|
|
|
| 73 |
it scores 1.
|
| 74 |
|
| 75 |
## Upsets and variation
|
tasks/toolbox-kitting/environment/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"):
|