feat: release v0.3 with RP1 trained skills and scaled arenas

This commit is contained in:
2026-10-29 14:16:04 +08:00
parent fa089d5f0c
commit 1965281004
86 changed files with 4136 additions and 165 deletions
+18 -1
View File
@@ -7,6 +7,7 @@ import {
validateWorld,
} from "../src/platform/loader/SchemaValidator.js";
import { resolveWorldId } from "../src/platform/worlds/arena.js";
import { JointMotionReference } from "../src/platform/policy/JointMotionReference.js";
const root = fileURLToPath(new URL("../public/robots/", import.meta.url));
const entries = JSON.parse(await readFile(resolve(root, "index.json"), "utf8"));
for (const entry of entries) {
@@ -18,9 +19,25 @@ for (const entry of entries) {
config.model,
...config.assets.map((a) => a.path),
...config.skills
.filter((s) => s.controller.type === "onnx")
.filter((s) => s.controller.type === "onnx" && s.available !== false)
.map((s) => s.controller.policy),
];
for (const skill of config.skills.filter((s) => s.reference)) {
const spec = JSON.parse(
await readFile(resolve(dirname(file), skill.reference), "utf8"),
);
const buffer = await readFile(resolve(dirname(file), spec.data));
new JointMotionReference(
spec,
buffer.buffer.slice(
buffer.byteOffset,
buffer.byteOffset + buffer.byteLength,
),
config.joints.groups[skill.owns],
config.sim.timestep * config.sim.decimation,
);
paths.push(skill.reference, spec.data);
}
for (const path of paths) await access(resolve(dirname(file), path));
validateWorld(
JSON.parse(