Chrisss commited on
Commit
d62150a
·
verified ·
1 Parent(s): bd34b3a

Document Revo3 reference, policy I/O and deployment integration

Browse files
README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DexSys inference bundles
2
+
3
+ Exported actors, matching references and simulation scenes for
4
+ [DexSys Runtime](https://github.com/Chuan-10/dexsys-runtime). Runtime code and
5
+ installation instructions are on GitHub; weights and assets are hosted here.
6
+
7
+ | Bundle | Scope |
8
+ | --- | --- |
9
+ | [Flexiv + right Revo3](revo3/flexiv-right-revo3-125315-w4-seed42-u100/README.md) | 125315 window 4; `pose` and `pose_contact`, both seed42 / update100; includes the required input reference |
10
+ | [Flexiv + right Sharpa](https://huggingface.co/datasets/Chrisss/DexSys/tree/main/baseline/flexiv-right-sharpa-125315-seed43-u1500) | 125315 single-reference baseline, seed43 / update1500; [runtime instructions](https://github.com/Chuan-10/dexsys-runtime#sharpa-baseline-assets) |
11
+
12
+ Each bundle contains its actor, input/output contract, reference, scene and
13
+ checksums. Follow the linked instructions for the selected bundle;
14
+ hand types, joint orders and observation layouts are not interchangeable.
15
+ These packages support inference and simulation verification. Live perception,
16
+ robot SDK integration and hardware calibration are not included. Preserve the
17
+ asset notices within each bundle.
revo3/flexiv-right-revo3-125315-w4-seed42-u100/README.md CHANGED
@@ -1,46 +1,85 @@
1
  # Flexiv + right Revo3: 125315 window 4
2
 
3
- Two deterministic **seed42 / update100** policies: `policies/pose` and
4
- `policies/pose_contact`. Use with [DexSys Runtime v0.3.0](https://github.com/Chuan-10/dexsys-runtime/tree/v0.3.0).
5
- The GitHub repository contains inference and simulation code only.
 
6
 
7
- | Content | Purpose |
 
 
8
  | --- | --- |
9
- | `policies/*/actor.npz`, `contract.json` | 522 → 128 ELU → 128 ELU → 28 actor, frozen normalization and explicit joint/feature order |
10
- | `case/scene` | Exact collision/visual meshes, MJCF and numeric robot profile |
11
- | `case/reference.npz`, `task.json`, `candidates.json` | Retargeted joint/object reference, one motion window and derived contact anchors |
12
- | `case/initialization/state.npz` | Executed prefix qpos, qvel and last sent command; mandatory cold-reset state |
13
- | `case/window.json`, `case_manifest.json` | Source timing and current/original SHA-256 links |
14
- | `replays/two-policies-fixed-camera.mp4` | Audited batch00 / world0 for each policy, fixed workspace and overview cameras |
15
- | `VALIDATION.json`, `SHA256SUMS` | Numeric implementation and execution checks, file integrity |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
- Run from the downloaded bundle directory after installing the runtime:
18
 
19
  ```bash
20
  dexsys-runtime verify-case --case case
21
  dexsys-runtime inspect --policy policies/pose_contact
22
  dexsys-runtime simulate --case case --policy policies/pose_contact --output outputs/cpu
23
- # Optional pinned native mjlab environment:
 
24
  dexsys-runtime simulate --case case --policy policies/pose --backend mjlab --device cuda:0 --output outputs/gpu
25
  ```
26
 
27
- Add `--zero-residual` for the matching control; use a new output directory for each run.
28
- Prepared reset and four stop-history channels are required. The 21-joint Revo3
29
- hand is not compatible with the 22-joint Sharpa action order. Residual budgets,
30
- force limits, arm–table collision and final task thresholds are unchanged.
31
-
32
- Both exported actors completed the task in independent CPU and native GPU runs.
33
- The two zero-residual GPU controls stopped at 2.40 s with task failure. Independent
34
- CPU geometry audits passed all 2,092 saved GPU states. Actor outputs were exact
35
- on 2,092 shared-state observations; constrained commands were exact on 2,088
36
- transitions. These checks include the failed controls.
37
-
38
- Archived source evaluations achieved 64/64 task passes for each actor from one
39
- fixed initial scene. This measures repeatability, not generalization. These are
40
- partial-training models for the isolated fourth window; the original servo
41
- tracking gate still fails. No hardware deployment, arbitrary-object perception,
42
- or full four-window task success is claimed.
43
-
44
- The bundle contains no critic, optimizer, training launcher, raw human motion,
45
- research notes, private paths or credentials. Preserve `NOTICE.md` and upstream
46
- asset conditions.
 
 
 
 
 
 
 
 
 
 
1
  # Flexiv + right Revo3: 125315 window 4
2
 
3
+ Two deterministic **seed42 / update100** actors, `pose` and `pose_contact`, share
4
+ one fixed fourth-window reference. Install
5
+ [DexSys Runtime](https://github.com/Chuan-10/dexsys-runtime#install) (code v0.3.0).
6
+ This is an inference/simulation bundle; hardware integration is required separately.
7
 
8
+ ## Included files
9
+
10
+ | Path | Content |
11
  | --- | --- |
12
+ | `policies/{pose,pose_contact}/actor.npz`, `contract.json` | Actor weights, frozen normalization, exact input/joint order and limits |
13
+ | `case/reference.npz` | Required input reference: 242 frames / 8.0333 s, timestamps, `q_target [242,28]`, joint names, four object IDs, `reference_objects_world [242,4,4,4]` and availability masks |
14
+ | `case/scene` | Robot/table/object MJCF, collision/visual meshes and numeric robot profile |
15
+ | `case/{task.json,candidates.json,window.json}` | Task window, finger/object-local anchor correspondences and original source timing |
16
+ | `case/initialization/state.npz` | Executed-prefix `qpos`, `qvel` and previous command `ctrl` for simulation reset |
17
+ | `case/case_manifest.json`, `SHA256SUMS`, `VALIDATION.json` | File integrity and release validation |
18
+ | `replays/two-policies-fixed-camera.mp4` | Audited fixed-camera comparison; numeric command traces are generated locally |
19
+
20
+ `q_target` is the **nominal IK reference**, not the PPO-corrected command. No raw
21
+ MANO data or additional IK solve is needed for inference. The local reference
22
+ clock is 0–8.0333 s; the active window is 0.85–5.9667 s, with original source
23
+ offset +29.8 s. The runtime interpolates the 30 Hz reference to 100 Hz.
24
+
25
+ ## Inputs and outputs
26
+
27
+ | Interface | Contract |
28
+ | --- | --- |
29
+ | Input | `float32 [batch,522]`: live robot state, current/future reference and FK goals, actual/goal object states, contacts/masks, candidate distances, previous command and task/contact history |
30
+ | Fixed scene slots | `G21_1`–`G21_4`, all retained; window 4 manipulates `G21_1` |
31
+ | Coordinates | Scene/world positions in metres, joint angles in radians, quaternions `wxyz`; object velocities use MuJoCo free-joint semantics |
32
+ | Actor | 522 → 128 ELU → 128 ELU → 28; packaged normalization applied by `predict` |
33
+ | Raw output | 28 dimensionless residual means, without sampling or tanh |
34
+ | Final output | 7 Flexiv + 21 Revo3 joint position targets: next nominal + scaled/clipped residual, then position/rate limits |
35
+ | Residual/control | Arm ±0.08 rad, hand ±0.12 rad; 100 Hz commands; simulation uses PD with arm gravity compensation |
36
+
37
+ Use the exact field/joint order in `contract.json`. The policy needs live object
38
+ and contact estimates for hardware use; stored goals cannot replace measured
39
+ state. Keep all object slots. Unknown contact is not confirmed no-contact.
40
+ Preserve continuous hold/history updates, including all four `task_stop_history`
41
+ channels for both actors. See the
42
+ [runtime input contract](https://github.com/Chuan-10/dexsys-runtime#policy-inputs-and-outputs).
43
+
44
+ ## Run and integrate
45
 
46
+ After installation and download, run from this bundle directory:
47
 
48
  ```bash
49
  dexsys-runtime verify-case --case case
50
  dexsys-runtime inspect --policy policies/pose_contact
51
  dexsys-runtime simulate --case case --policy policies/pose_contact --output outputs/cpu
52
+ # Use policies/pose for the other actor, or --zero-residual for its control.
53
+ # Optional pinned mjlab environment:
54
  dexsys-runtime simulate --case case --policy policies/pose --backend mjlab --device cuda:0 --output outputs/gpu
55
  ```
56
 
57
+ Use a new output directory for each run. Inspect `summary.json`: physical
58
+ validity, task success and servo tracking are separate results.
59
+
60
+ | Deployment mode | What to use / what is still required |
61
+ | --- | --- |
62
+ | Open-loop joint replay | `simulate` saves `trace.npz`: `sent[:,0,:]` is the constrained command; `reference_time[:,0]` is its target-reference timestamp. Bind names from `contract.json` and implement SDK mapping/timing. Playing `q_target` alone omits PPO corrections |
63
+ | Closed-loop policy | At 100 Hz, build the complete live observation, call `predict`, then the persistent `JointTargetController`; send `command.sent` through a hardware adapter and update task/contact history |
64
+
65
+ The package has no robot driver, live perception/contact adapter or hardware
66
+ calibration. Deployment must align joint order/zero/sign/units, scene coordinates,
67
+ servo behavior, initial-pose transition and reference/history reset. Simulator
68
+ `qpos/qvel` snapshots are not hardware reset commands. Check the actual start
69
+ transition and commands against hardware limits and singularities. This release
70
+ uses the original arm reference, without the experimental null-space refinement.
71
+ See [hardware integration](https://github.com/Chuan-10/dexsys-runtime#hardware-integration).
72
+
73
+ ## Validation scope
74
+
75
+ Both actors completed the task in independent CPU and native GPU runs. The two
76
+ zero-residual GPU controls stopped at 2.40 s with task failure. CPU geometry audits
77
+ passed all 2,092 saved GPU states; actor outputs were exact on 2,092 observations
78
+ and constrained commands on 2,088 transitions, including failed controls.
79
+
80
+ Archived 64/64 task passes per actor repeat one fixed scene and initialization;
81
+ they do not establish generalization. These are partial-training models for
82
+ window 4; the original servo-tracking gate still fails. Hardware deployment and
83
+ full four-window success have not been established. No critic, optimizer, training
84
+ launcher, raw human motion or private research notes are included. Preserve
85
+ `NOTICE.md` and upstream asset conditions.
revo3/flexiv-right-revo3-125315-w4-seed42-u100/SHA256SUMS CHANGED
@@ -1,5 +1,5 @@
1
  34c3ad3dc3988c29e95062dd6577e80689721e045f056b01d6b7e62fcc06ee8b NOTICE.md
2
- d7078baf612b7f75c0f301c3e4bb429d8468967f492b61a09fe55c9719d900aa README.md
3
  83e23b288033486a6b2637e8481552e145e3b48c7865194e76965f646edb2e99 VALIDATION.json
4
  e498ce3f98d3944f553146ec6e3ece4d8ac741e3e342daa2d6ddae9bb49f144a case/candidates.json
5
  218077c482465df6cd4fbde78c847c106705ca1c659342d7b43faea3ca7a681d case/case_manifest.json
 
1
  34c3ad3dc3988c29e95062dd6577e80689721e045f056b01d6b7e62fcc06ee8b NOTICE.md
2
+ e86278c33da16893c43c448a36261e0b40d29261a1f0e924c5e365f30bbfede1 README.md
3
  83e23b288033486a6b2637e8481552e145e3b48c7865194e76965f646edb2e99 VALIDATION.json
4
  e498ce3f98d3944f553146ec6e3ece4d8ac741e3e342daa2d6ddae9bb49f144a case/candidates.json
5
  218077c482465df6cd4fbde78c847c106705ca1c659342d7b43faea3ca7a681d case/case_manifest.json