RemiFabre commited on
Commit ·
1261013
1
Parent(s): 10c600e
Fix broken and redirected repo links
Browse files- README.md +3 -3
- app/src/game/controls/gamepad.js +1 -1
- app/src/game/game.js +3 -3
README.md
CHANGED
|
@@ -31,8 +31,8 @@ policies are lazy-loaded on the first switch.
|
|
| 31 |
| Crouch (rollers) | `BEST_roller_crouch.onnx` | One-shot crouch-glide: sinks low over ~3.5 s and stands back up (phase-encoded command) |
|
| 32 |
|
| 33 |
Policies and MJCF model from
|
| 34 |
-
[
|
| 35 |
-
and [
|
| 36 |
|
| 37 |
## Controls
|
| 38 |
|
|
@@ -104,7 +104,7 @@ UI intents in).
|
|
| 104 |
official `@mujoco/mujoco` WASM bindings.
|
| 105 |
- Both variants share the exact same policy interface: 61D observation
|
| 106 |
(gyro, projected gravity, 14 joint pos/vel, last action, 13D command)
|
| 107 |
-
and 14 position-targets, matching `
|
| 108 |
The roller variant adds 4 passive wheel hinges that appear in `qpos`
|
| 109 |
(zeroed in the keyframe) but not in the observation.
|
| 110 |
- Rendering is a three.js rig built from `kinematics.json` /
|
|
|
|
| 31 |
| Crouch (rollers) | `BEST_roller_crouch.onnx` | One-shot crouch-glide: sinks low over ~3.5 s and stands back up (phase-encoded command) |
|
| 32 |
|
| 33 |
Policies and MJCF model from
|
| 34 |
+
[pollen-robotics/microduck](https://github.com/pollen-robotics/microduck)
|
| 35 |
+
and [pollen-robotics/microduck_rl](https://github.com/pollen-robotics/microduck_rl).
|
| 36 |
|
| 37 |
## Controls
|
| 38 |
|
|
|
|
| 104 |
official `@mujoco/mujoco` WASM bindings.
|
| 105 |
- Both variants share the exact same policy interface: 61D observation
|
| 106 |
(gyro, projected gravity, 14 joint pos/vel, last action, 13D command)
|
| 107 |
+
and 14 position-targets, matching [`microduck_rl/scripts/infer_policy.py`](https://github.com/pollen-robotics/microduck_rl/blob/main/scripts/infer_policy.py).
|
| 108 |
The roller variant adds 4 passive wheel hinges that appear in `qpos`
|
| 109 |
(zeroed in the keyframe) but not in the observation.
|
| 110 |
- Rendering is a three.js rig built from `kinematics.json` /
|
app/src/game/controls/gamepad.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
// Gamepad input source (see controller.js for the source interface
|
| 2 |
-
// contract). Same mapping as the robot runtime (
|
| 3 |
//
|
| 4 |
// Left stick vertical = vx (asymmetric fwd/back), horizontal = turn,
|
| 5 |
// EMA-smoothed like the runtime's cmd_alpha.
|
|
|
|
| 1 |
// Gamepad input source (see controller.js for the source interface
|
| 2 |
+
// contract). Same mapping as the robot runtime (pollen-robotics/microduck):
|
| 3 |
//
|
| 4 |
// Left stick vertical = vx (asymmetric fwd/back), horizontal = turn,
|
| 5 |
// EMA-smoothed like the runtime's cmd_alpha.
|
app/src/game/game.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
| 3 |
//
|
| 4 |
// Physics runs in MuJoCo compiled to WebAssembly (the official
|
| 5 |
// @mujoco/mujoco bindings), stepping the same MJCF the policies were
|
| 6 |
-
// trained on (
|
| 7 |
-
// exported ONNX checkpoints from
|
| 8 |
// onnxruntime-web at 50 Hz (timestep 0.005 s, decimation 4) - exactly the
|
| 9 |
-
// loop from
|
| 10 |
//
|
| 11 |
// Obs layout (61D, "new-cmd-obs" flavor, from the ONNX metadata):
|
| 12 |
// [base_ang_vel(3), projected_gravity(3), joint_pos(14), joint_vel(14),
|
|
|
|
| 3 |
//
|
| 4 |
// Physics runs in MuJoCo compiled to WebAssembly (the official
|
| 5 |
// @mujoco/mujoco bindings), stepping the same MJCF the policies were
|
| 6 |
+
// trained on (pollen-robotics/microduck_rl). The controller is one of the
|
| 7 |
+
// exported ONNX checkpoints from pollen-robotics/microduck, executed with
|
| 8 |
// onnxruntime-web at 50 Hz (timestep 0.005 s, decimation 4) - exactly the
|
| 9 |
+
// loop from microduck_rl/scripts/infer_policy.py.
|
| 10 |
//
|
| 11 |
// Obs layout (61D, "new-cmd-obs" flavor, from the ONNX metadata):
|
| 12 |
// [base_ang_vel(3), projected_gravity(3), joint_pos(14), joint_vel(14),
|