commit e2ef0b2aa1ede7151a03b151e8f905964e8c5577 Author: eust-w Date: Wed Jun 24 06:23:35 2026 +0800 Initial MotrixSim Web preview productization diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a856a48 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +node_modules/ +dist/ +.vite/ +*.log +.DS_Store +__pycache__/ +*.py[cod] +/tmp.json +test-results/ +!test-results/.gitkeep diff --git a/README.md b/README.md new file mode 100644 index 0000000..1171b8e --- /dev/null +++ b/README.md @@ -0,0 +1,172 @@ +# MotrixSim Universal Three.js Preview + +This repository now contains a working universal-preview path: + +```text +MotrixSim / MJCF scene + -> scene manifest + -> Three.js WebGL renderer + -> replay / polling / websocket state source +``` + +The first verified version supports primitives, OBJ/STL/GLTF/GLB mesh loading, +Z-up MotrixSim coordinate conversion, body-name state binding, desktop/mobile +responsive layout, MJCF `` expansion, HTTP asset serving, headless +MotrixSim bridge controls, and basic Franka joint/gripper operation. + +The current exporter/renderer path also covers higher-variance MJCF assets: +nested `` inheritance for visible-vs-collision geoms, `assetdir` / +`meshdir` / `texturedir` resolution, file textures, builtin checker textures, +mesh scale, `fromto`, `xyaxes`, `zaxis`, inline convex meshes, and browser-side +mesh caching for repeated assets. + +## Run Locally + +```bash +npm install +npm run dev -- --port 5173 +``` + +Open: + +```text +http://127.0.0.1:5173/ +``` + +The first screen is now a Scene Builder. It can compose a base scene, one live +robot manifest, and front-end primitive objects into a single Three.js preview. +Use `Build Preview` for visual composition, or `Physical Scene` to load the +native Franka + cube MotrixSim scene where collision is computed by the backend. +The `G1 + Store + blocks physics` preset uses `http://127.0.0.1:18090/manifest` +and is a backend-composed MJCF scene, so G1, store shelves/products, and demo +objects share one MotrixSim physics world. +When the matching bridge exposes `POST /compose`, Scene Builder object +Add/Remove/Clear operations regenerate the combined MJCF on the backend and +reload the live manifest. Those objects are real MotrixSim bodies with +free joints and collision geoms, not front-end-only Three.js meshes. + +To load a remote manifest: + +```text +http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18083%2Fmanifest +``` + +## Verify + +```bash +npm run build +npm run verify:exporter +npm run verify:preview +``` + +For a MotrixSim bridge with only primitive objects: + +```bash +MIN_OBJECTS=2 MIN_MESHES=0 npm run verify:preview -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18083%2Fmanifest' \ + test-results/remote-motrix +``` + +For a larger robot scene with many mesh files, raise the verification timeout: + +```bash +VERIFY_TIMEOUT_MS=45000 MIN_OBJECTS=50 MIN_MESHES=40 npm run verify:preview -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest' \ + test-results/robot-panda +``` + +For the backend control path: + +```bash +VERIFY_TIMEOUT_MS=60000 MIN_OBJECTS=50 MIN_MESHES=40 npm run verify:control -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest' \ + test-results/control-panda +``` + +For the Franka joint/gripper control path: + +```bash +VERIFY_TIMEOUT_MS=70000 MIN_OBJECTS=50 MIN_MESHES=40 npm run verify:joint -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest' \ + test-results/joint-panda +``` + +For a large textured store scene on the remote MotrixSim bridge: + +```bash +VERIFY_TIMEOUT_MS=120000 MIN_OBJECTS=500 MIN_MESHES=20 npm run verify:preview -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18085%2Fmanifest' \ + test-results/store-textured +``` + +For a Go2 quadruped robot scene: + +```bash +VERIFY_TIMEOUT_MS=60000 MIN_OBJECTS=30 MIN_MESHES=20 npm run verify:preview -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest' \ + test-results/go2-robot +``` + +## Headless MotrixSim Bridge + +Run this on a Linux server with MotrixSim available: + +```bash +python server/headless_motrix_bridge.py \ + --scene /path/to/scene.xml \ + --host 127.0.0.1 \ + --port 18083 \ + --hz 120 +``` + +It exposes: + +- `GET /manifest`: Three.js preview manifest generated from the XML scene. +- `GET /state`: live MotrixSim body pose state. +- `GET /assets/...`: mesh sidecar assets referenced by the manifest. +- `POST /control`: `pause`, `resume`, `reset`, `step`, `home`, + `set_joint`, and `gripper`. +- `POST /compose`: for supported physical presets, generate a new combined + MJCF scene from selected robot/scene/object choices, hot-swap the runtime, + and return the refreshed manifest. +- `GET /health`: service health. + +No display server is required for this state-driven preview path. + +## Current Boundary + +This is a real Three.js/WebGL preview path, not the earlier Canvas 2.5D page. +It is not yet a perfect renderer for every MotrixSim feature. Unsupported or +private features still need explicit adapters or a server-side render/video +fallback. + +Scene Builder visual composition does not create a new MotrixSim physics world. +Added front-end objects are preview-only unless they are sent through a physical +compose endpoint. The current physical compose path supports the +`G1 + Store + blocks physics` preset and the built-in primitive object set. + +## 页面内上传与组装(已支持) + +- 左侧「场景上传 / 上传场景包」支持一次选择 `.json` manifest 和关联的 mesh / texture / bin 文件。manifest 至少需要包含 `version` 与 `objects`。 +- 上传后会自动插入到场景下拉列表首位,并把 manifest 内相对路径(例如 `meshes/robot.obj`、`textures/base.png`)匹配到同批上传的本地文件,改写为浏览器可加载的 `blob:` URL。 +- 左侧「资产库 / 上传资产」支持 `.gltf/.glb/.obj/.stl`,也可以同时选择 `.bin/.png/.jpg/.webp/.ktx2/.mtl` 等 sidecar 文件;`.gltf` 内部的 buffer / image 相对引用会同步改写。 +- 点击资产卡片会把该对象加入当前场景列表,可继续调整位置(X/Y/Z 输入框)和通过左键拖拽编辑(暂停时可拖拽)。 +- 上传面板支持拖放文件;「清空自定义」会清理上传资产;「清空场景」会移除当前上传场景并回到默认场景列表。 + +边界:本地上传 mesh 默认是 Three.js 可视资产。它可以预览和摆放,但不会自动变成 MotrixSim 后端碰撞体。需要真实碰撞时,仍要通过后端 `/compose` 把对象转成 MJCF body / geom;当前后端物理组合只覆盖内置 primitive 对象。 + +The Franka Panda MJCF robot scene has been verified as a real robot asset +preview: 59 manifest objects, 58 loaded OBJ/STL meshes, and zero mesh fallback. +Joint-level operation is now wired for this scene through MotrixSim +`joint_names`, `link_names`, and link pose streaming. Broader task-level robot +actions still need scene-specific policy/action adapters. + +Additional remote scenes verified: + +- Store shelf scene: 569 objects, 568 loaded meshes, 17 textured materials, zero + fallback, desktop/mobile nonblank. +- Go2 quadruped scene: 34 objects, 33 loaded meshes, 12 joints exposed, zero + fallback, desktop/mobile nonblank. +- G1 + Store + demo blocks physical scene: served from bridge port 18090 with + shared backend collision bodies for the robot, shelves, products, and demo + primitives. diff --git a/docs/manifest-spec.md b/docs/manifest-spec.md new file mode 100644 index 0000000..bc5e7d7 --- /dev/null +++ b/docs/manifest-spec.md @@ -0,0 +1,117 @@ +# MotrixSim Universal Three.js Manifest + +This project uses a small scene manifest as the boundary between MotrixSim/MJCF +assets and the browser renderer. + +The manifest does not try to duplicate every engine feature. It carries enough +data for a browser to load visible assets, create stable Three.js nodes, and bind +runtime state by body name. + +## Minimal Shape + +```json +{ + "version": "0.1", + "name": "demo", + "coordinateSystem": { "up": "Z", "handedness": "right" }, + "materials": [ + { "id": "ball", "color": "#4f8cff" }, + { "id": "checker_floor", "textureKind": "checker", "textureColors": ["#334155", "#e2e8f0"], "textureRepeat": [4, 4] }, + { "id": "label", "color": "#ffffff", "textureUrl": "/assets/label.png", "textureRepeat": [1, 1] } + ], + "objects": [ + { + "id": "ball_visual", + "body": "_unnamed_link_0", + "geometry": { "kind": "primitive", "primitive": "sphere", "radius": 0.5 }, + "material": "ball" + }, + { + "id": "inline_convex", + "geometry": { "kind": "convexMesh", "vertices": [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1] }, + "material": "checker_floor" + } + ], + "state": { "mode": "poll", "url": "/state", "controlUrl": "/control", "pollIntervalMs": 50 }, + "controls": { + "joints": [ + { "name": "joint1", "index": 0, "range": [-2.8973, 2.8973] } + ], + "actuators": [] + } +} +``` + +## Supported Visuals + +- Primitives: `box`, `sphere`, `capsule`, `cylinder`, `plane`, `axes`. +- Meshes: `gltf`, `glb`, `obj`, `stl`, plus small inline convex meshes. +- Materials: solid color, transparent color, file texture, and generated + checker texture with repeat. +- State binding: `object.body` maps a visual node to a runtime body name. +- Runtime body names may be MotrixSim body names or link names. The headless + bridge publishes link poses first, then fills non-duplicate body poses. +- MJCF export: the current exporter expands `` files, resolves mesh + names from either `name` or file stem, resolves `assetdir` / `meshdir` / + `texturedir`, applies nested `` geom inheritance, skips + collision-only geoms, handles `fromto`, `xyaxes`, `zaxis`, mesh `scale`, file + textures, builtin checker textures, and emits an internal asset map for the + headless bridge to serve `/assets/...`. + +Repeated mesh URLs are cached by the browser renderer and cloned into the scene, +so large scenes with hundreds of repeated OBJ assets do not refetch or reparse +the same asset for every instance. + +## Runtime State + +For `state.mode = "poll"`, the browser repeatedly fetches `state.url` and +applies the returned pose data to body-bound objects. A typical response is: + +```json +{ + "step": 12, + "time": 0.012, + "paused": true, + "running": false, + "link_names": ["link0", "link1", "hand"], + "joint_names": ["joint1", "joint2"], + "bodies": { + "hand": { + "pos": [0.4, 0.0, 0.77], + "quat": [-0.88, -0.36, 0.27, 0.11] + } + }, + "joints": { + "joint2": { "pos": 0.6, "vel": 0.0, "range": [-1.7628, 1.7628], "index": 1 } + }, + "actuators": {} +} +``` + +## Control Endpoint + +When `state.controlUrl` is present, the UI can POST JSON commands to the +bridge. The current bridge supports: + +- `{"action": "pause"}` / `{"action": "resume"}` / `{"action": "toggle"}` +- `{"action": "step"}` for one paused physics step +- `{"action": "reset"}` for engine reset +- `{"action": "home"}` for zeroing exposed joints +- `{"action": "set_joint", "joint": "joint2", "value": 0.6}` +- `{"action": "set_joints", "values": {"joint1": 0, "joint2": 0.6}}` +- `{"action": "gripper", "value": 0.04}` for known finger joints + +The bridge returns the same frame shape as `/state`, so the frontend can update +the renderer and the control panel from one response. + +## Coordinate Policy + +MotrixSim/MJCF scenes are assumed to be Z-up. Three.js is Y-up. The renderer +converts positions, rotations, primitive dimensions, and loaded mesh local +coordinate bases when `coordinateSystem.up` is `Z`. + +## Security Boundary + +If the browser renders the real mesh, that mesh is downloaded to the browser. +Private assets that must not leave the server should use a server-side video or +image stream instead of Three.js mesh delivery. diff --git a/index.html b/index.html new file mode 100644 index 0000000..6b53499 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + MotrixSim Universal Three.js Preview + + +
+ + + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..7b9c9bf --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1171 @@ +{ + "name": "motrixsim-web", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "motrixsim-web", + "version": "0.1.0", + "dependencies": { + "three": "^0.181.2", + "vite": "^7.3.0" + }, + "devDependencies": { + "@types/three": "^0.184.1", + "playwright": "^1.61.0", + "typescript": "^5.9.3" + } + }, + "node_modules/@dimforge/rapier3d-compat": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz", + "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz", + "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz", + "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz", + "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz", + "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz", + "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz", + "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz", + "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz", + "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz", + "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz", + "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz", + "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz", + "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz", + "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz", + "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz", + "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz", + "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz", + "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz", + "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz", + "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz", + "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz", + "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz", + "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz", + "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz", + "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz", + "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tweenjs/tween.js": { + "version": "23.1.3", + "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", + "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "license": "MIT" + }, + "node_modules/@types/stats.js": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz", + "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/three": { + "version": "0.184.1", + "resolved": "https://registry.npmjs.org/@types/three/-/three-0.184.1.tgz", + "integrity": "sha512-6q4VdiqVsrTRqmk62/BnlcAvIrnDM0zf2ZDVKI5kZiniWrSaOHaQzmbp+BNzoggc/8tgW412pL//wZIxu2PPTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@dimforge/rapier3d-compat": "~0.12.0", + "@tweenjs/tween.js": "~23.1.3", + "@types/stats.js": "*", + "@types/webxr": ">=0.5.17", + "fflate": "~0.8.2", + "meshoptimizer": "~1.1.1" + } + }, + "node_modules/@types/webxr": { + "version": "0.5.24", + "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz", + "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fflate": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", + "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", + "dev": true, + "license": "MIT" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/meshoptimizer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz", + "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.15", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", + "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/playwright": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.61.0.tgz", + "integrity": "sha512-Z+7BeeqQPRRzklHsVFP4KTGIyMxKUmfeRA4WisM6G3/XW6nwGeX6fX9qYaDa+CiUqpOkb2f6X3nar05R3kSuJQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.61.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.61.0.tgz", + "integrity": "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/playwright/node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rollup": { + "version": "4.62.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz", + "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==", + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.62.2", + "@rollup/rollup-android-arm64": "4.62.2", + "@rollup/rollup-darwin-arm64": "4.62.2", + "@rollup/rollup-darwin-x64": "4.62.2", + "@rollup/rollup-freebsd-arm64": "4.62.2", + "@rollup/rollup-freebsd-x64": "4.62.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.62.2", + "@rollup/rollup-linux-arm-musleabihf": "4.62.2", + "@rollup/rollup-linux-arm64-gnu": "4.62.2", + "@rollup/rollup-linux-arm64-musl": "4.62.2", + "@rollup/rollup-linux-loong64-gnu": "4.62.2", + "@rollup/rollup-linux-loong64-musl": "4.62.2", + "@rollup/rollup-linux-ppc64-gnu": "4.62.2", + "@rollup/rollup-linux-ppc64-musl": "4.62.2", + "@rollup/rollup-linux-riscv64-gnu": "4.62.2", + "@rollup/rollup-linux-riscv64-musl": "4.62.2", + "@rollup/rollup-linux-s390x-gnu": "4.62.2", + "@rollup/rollup-linux-x64-gnu": "4.62.2", + "@rollup/rollup-linux-x64-musl": "4.62.2", + "@rollup/rollup-openbsd-x64": "4.62.2", + "@rollup/rollup-openharmony-arm64": "4.62.2", + "@rollup/rollup-win32-arm64-msvc": "4.62.2", + "@rollup/rollup-win32-ia32-msvc": "4.62.2", + "@rollup/rollup-win32-x64-gnu": "4.62.2", + "@rollup/rollup-win32-x64-msvc": "4.62.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/three": { + "version": "0.181.2", + "resolved": "https://registry.npmjs.org/three/-/three-0.181.2.tgz", + "integrity": "sha512-k/CjiZ80bYss6Qs7/ex1TBlPD11whT9oKfT8oTGiHa34W4JRd1NiH/Tr1DbHWQ2/vMUypxksLnF2CfmlmM5XFQ==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/vite": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.5.tgz", + "integrity": "sha512-KuOaNhcnGFN2zIPGA7wRmzF+lJA1sea7rHq17aiJ++9lzY1WWG6Jpwqwe1KNbRVPIqHmr8GLYx7jbrQcN/7/ww==", + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..0e37fc8 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "motrixsim-web", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 127.0.0.1", + "build": "tsc && vite build", + "preview": "vite preview --host 127.0.0.1", + "typecheck": "tsc --noEmit", + "verify:preview": "node scripts/verify-universal-preview.mjs", + "verify:control": "node scripts/verify-control-preview.mjs", + "verify:joint": "node scripts/verify-joint-control.mjs", + "verify:motrix-input": "node scripts/verify-motrix-input.mjs", + "verify:go2-policy": "node scripts/verify-go2-policy-motion.mjs", + "verify:exporter": "python3 scripts/verify_exporter_features.py", + "acceptance:probe": "node scripts/acceptance-probe.mjs" + }, + "dependencies": { + "three": "^0.181.2", + "vite": "^7.3.0" + }, + "devDependencies": { + "@types/three": "^0.184.1", + "playwright": "^1.61.0", + "typescript": "^5.9.3" + } +} diff --git a/public/generated/g1-store-blocks-lite.manifest.json b/public/generated/g1-store-blocks-lite.manifest.json new file mode 100644 index 0000000..2b15dee --- /dev/null +++ b/public/generated/g1-store-blocks-lite.manifest.json @@ -0,0 +1,5546 @@ +{ + "version": "1.0", + "name": "G1 + Store Lite + Demo blocks", + "description": "Composite visual manifest: complete G1 with live MotrixSim state, selected Store shelves/products, and demo primitives.", + "units": "m", + "coordinateSystem": { + "up": "Z", + "handedness": "right" + }, + "materials": [ + { + "id": "default", + "color": "#93c5fd", + "roughness": 0.65 + }, + { + "id": "fallback", + "color": "#fb7185", + "wireframe": true + }, + { + "id": "g1_silver", + "color": "#b2b2b2", + "opacity": 1, + "roughness": 0.7, + "metalness": 0 + }, + { + "id": "g1_black", + "color": "#333333", + "opacity": 1, + "roughness": 0.7, + "metalness": 0 + }, + { + "id": "g1_groundplane", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.7, + "metalness": 0, + "textureKind": "checker", + "textureColors": [ + "#6e87a4", + "#d0dae7" + ], + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "default", + "color": "#93c5fd", + "roughness": 0.65 + }, + { + "id": "fallback", + "color": "#fb7185", + "wireframe": true + }, + { + "id": "store_Bottle_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_E", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_F", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S330.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_G", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.5, + "metalness": 0.12, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.48, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Metal_White", + "color": "#687382", + "opacity": 1, + "roughness": 0.84, + "metalness": 0.02, + "textureUrl": "http://127.0.0.1:18085/assets/assets/metal_painted_white_basecolor.png", + "textureRepeat": [ + 3, + 3 + ] + }, + { + "id": "store_groundplane", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.7, + "metalness": 0, + "textureKind": "checker", + "textureColors": [ + "#6e87a4", + "#d0dae7" + ], + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "demo_red", + "color": "#e11d48", + "roughness": 0.55 + }, + { + "id": "demo_blue", + "color": "#2563eb", + "roughness": 0.55 + }, + { + "id": "demo_green", + "color": "#16a34a", + "roughness": 0.55 + }, + { + "id": "demo_yellow", + "color": "#eab308", + "roughness": 0.55 + } + ], + "objects": [ + { + "id": "g1_geom_1", + "name": "g1_geom_1", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_2", + "name": "g1_geom_2", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis_contour_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_3", + "name": "g1_geom_3", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis_contour_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_4", + "name": "g1_geom_4", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_pitch_link" + }, + { + "id": "g1_geom_5", + "name": "g1_geom_5", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_pitch_link" + }, + { + "id": "g1_geom_6", + "name": "g1_geom_6", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_roll_link" + }, + { + "id": "g1_geom_7", + "name": "g1_geom_7", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_roll_link" + }, + { + "id": "g1_geom_8", + "name": "g1_geom_8", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_yaw_link" + }, + { + "id": "g1_geom_9", + "name": "g1_geom_9", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_yaw_link" + }, + { + "id": "g1_geom_10", + "name": "g1_geom_10", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_knee_link" + }, + { + "id": "g1_geom_11", + "name": "g1_geom_11", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_knee_link" + }, + { + "id": "g1_geom_12", + "name": "g1_geom_12", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_pitch_link" + }, + { + "id": "g1_geom_13", + "name": "g1_geom_13", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_pitch_link" + }, + { + "id": "g1_geom_14", + "name": "g1_geom_14", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_roll_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_roll_link" + }, + { + "id": "g1_geom_15", + "name": "g1_geom_15", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_pitch_link" + }, + { + "id": "g1_geom_16", + "name": "g1_geom_16", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_pitch_link" + }, + { + "id": "g1_geom_17", + "name": "g1_geom_17", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_roll_link" + }, + { + "id": "g1_geom_18", + "name": "g1_geom_18", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_roll_link" + }, + { + "id": "g1_geom_19", + "name": "g1_geom_19", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_yaw_link" + }, + { + "id": "g1_geom_20", + "name": "g1_geom_20", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_yaw_link" + }, + { + "id": "g1_geom_21", + "name": "g1_geom_21", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_knee_link" + }, + { + "id": "g1_geom_22", + "name": "g1_geom_22", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_knee_link" + }, + { + "id": "g1_geom_23", + "name": "g1_geom_23", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_pitch_link" + }, + { + "id": "g1_geom_24", + "name": "g1_geom_24", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_pitch_link" + }, + { + "id": "g1_geom_25", + "name": "g1_geom_25", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_roll_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_roll_link" + }, + { + "id": "g1_geom_26", + "name": "g1_geom_26", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/waist_yaw_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "waist_yaw_link" + }, + { + "id": "g1_geom_27", + "name": "g1_geom_27", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/waist_roll_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "waist_roll_link" + }, + { + "id": "g1_geom_28", + "name": "g1_geom_28", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/torso_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_29", + "name": "g1_geom_29", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/torso_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_30", + "name": "g1_geom_30", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/logo_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_31", + "name": "g1_geom_31", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/logo_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_32", + "name": "g1_geom_32", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/head_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_33", + "name": "g1_geom_33", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/head_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_34", + "name": "g1_geom_34", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_pitch_link" + }, + { + "id": "g1_geom_35", + "name": "g1_geom_35", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.05 + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0.04, + -0.01 + ], + "quaternion": [ + 0, + 0.7071067811865475, + 0, + 0.7071067811865475 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_pitch_link" + }, + { + "id": "g1_geom_36", + "name": "g1_geom_36", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_roll_link" + }, + { + "id": "g1_geom_37", + "name": "g1_geom_37", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.03 + }, + "material": "g1_silver", + "pose": { + "position": [ + -0.004, + 0.006, + -0.053 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_roll_link" + }, + { + "id": "g1_geom_38", + "name": "g1_geom_38", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_yaw_link" + }, + { + "id": "g1_geom_39", + "name": "g1_geom_39", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_yaw_link" + }, + { + "id": "g1_geom_40", + "name": "g1_geom_40", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_elbow_link" + }, + { + "id": "g1_geom_41", + "name": "g1_geom_41", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_elbow_link" + }, + { + "id": "g1_geom_42", + "name": "g1_geom_42", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_roll_link" + }, + { + "id": "g1_geom_43", + "name": "g1_geom_43", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_roll_link" + }, + { + "id": "g1_geom_44", + "name": "g1_geom_44", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_pitch_link" + }, + { + "id": "g1_geom_45", + "name": "g1_geom_45", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_pitch_link" + }, + { + "id": "g1_geom_46", + "name": "g1_geom_46", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_47", + "name": "g1_geom_47", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_48", + "name": "g1_geom_48", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_rubber_hand.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0.0415, + 0.003, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_49", + "name": "g1_geom_49", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_pitch_link" + }, + { + "id": "g1_geom_50", + "name": "g1_geom_50", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.05 + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + -0.04, + -0.01 + ], + "quaternion": [ + 0, + 0.7071067811865475, + 0, + 0.7071067811865475 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_pitch_link" + }, + { + "id": "g1_geom_51", + "name": "g1_geom_51", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_roll_link" + }, + { + "id": "g1_geom_52", + "name": "g1_geom_52", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.03 + }, + "material": "g1_silver", + "pose": { + "position": [ + -0.004, + -0.006, + -0.053 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_roll_link" + }, + { + "id": "g1_geom_53", + "name": "g1_geom_53", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_yaw_link" + }, + { + "id": "g1_geom_54", + "name": "g1_geom_54", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_yaw_link" + }, + { + "id": "g1_geom_55", + "name": "g1_geom_55", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_elbow_link" + }, + { + "id": "g1_geom_56", + "name": "g1_geom_56", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_elbow_link" + }, + { + "id": "g1_geom_57", + "name": "g1_geom_57", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_roll_link" + }, + { + "id": "g1_geom_58", + "name": "g1_geom_58", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_roll_link" + }, + { + "id": "g1_geom_59", + "name": "g1_geom_59", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_pitch_link" + }, + { + "id": "g1_geom_60", + "name": "g1_geom_60", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_pitch_link" + }, + { + "id": "g1_geom_61", + "name": "g1_geom_61", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_geom_62", + "name": "g1_geom_62", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_geom_63", + "name": "g1_geom_63", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_rubber_hand.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0.0415, + -0.003, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_floor", + "name": "g1_floor", + "geometry": { + "kind": "primitive", + "primitive": "plane", + "size": [ + 0, + 0, + 0 + ] + }, + "material": "g1_groundplane", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_1", + "name": "store_geom_1", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3133227825164795, + 1.0419902801513672, + 0 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_2", + "name": "store_geom_2", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.44424617290496826, + 1.2267184257507324, + 0 + ], + "quaternion": [ + 0, + 0, + 0.052336205388961096, + 0.9986295216973533 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_3", + "name": "store_geom_3", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.4442458748817444, + 1.2267179489135742, + 0 + ], + "quaternion": [ + 0, + 0, + -0.05233585737062552, + 0.9986295399362476 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_4", + "name": "store_geom_4", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3133219480514526, + 1.0419902801513672, + 0 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_5", + "name": "store_geom_5", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_6", + "name": "store_geom_6", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_7", + "name": "store_geom_7", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_8", + "name": "store_geom_8", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_9", + "name": "store_geom_9", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_10", + "name": "store_geom_10", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_11", + "name": "store_geom_11", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_12", + "name": "store_geom_12", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_13", + "name": "store_geom_13", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_14", + "name": "store_geom_14", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_15", + "name": "store_geom_15", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_16", + "name": "store_geom_16", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_17", + "name": "store_geom_17", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_18", + "name": "store_geom_18", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + 0.052336179983237904, + 0.9986295230288168 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_19", + "name": "store_geom_19", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + -0.05233585737062552, + 0.9986295399362476 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_20", + "name": "store_geom_20", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_21", + "name": "store_geom_21", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.001" + }, + { + "id": "store_geom_22", + "name": "store_geom_22", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.002" + }, + { + "id": "store_geom_23", + "name": "store_geom_23", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.003" + }, + { + "id": "store_geom_24", + "name": "store_geom_24", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.004" + }, + { + "id": "store_geom_25", + "name": "store_geom_25", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.005" + }, + { + "id": "store_geom_26", + "name": "store_geom_26", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.006" + }, + { + "id": "store_geom_27", + "name": "store_geom_27", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.007" + }, + { + "id": "store_geom_28", + "name": "store_geom_28", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.008" + }, + { + "id": "store_geom_29", + "name": "store_geom_29", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.009" + }, + { + "id": "store_geom_30", + "name": "store_geom_30", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.010" + }, + { + "id": "store_geom_31", + "name": "store_geom_31", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.011" + }, + { + "id": "store_geom_32", + "name": "store_geom_32", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.012" + }, + { + "id": "store_geom_33", + "name": "store_geom_33", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.013" + }, + { + "id": "store_geom_34", + "name": "store_geom_34", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.014" + }, + { + "id": "store_geom_35", + "name": "store_geom_35", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.015" + }, + { + "id": "store_geom_36", + "name": "store_geom_36", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.016" + }, + { + "id": "store_geom_37", + "name": "store_geom_37", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.017" + }, + { + "id": "store_geom_38", + "name": "store_geom_38", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.018" + }, + { + "id": "store_geom_39", + "name": "store_geom_39", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.019" + }, + { + "id": "store_geom_40", + "name": "store_geom_40", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.020" + }, + { + "id": "store_geom_41", + "name": "store_geom_41", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.021" + }, + { + "id": "store_geom_42", + "name": "store_geom_42", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.022" + }, + { + "id": "store_geom_43", + "name": "store_geom_43", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.023" + }, + { + "id": "store_geom_44", + "name": "store_geom_44", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.024" + }, + { + "id": "store_geom_45", + "name": "store_geom_45", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.025" + }, + { + "id": "store_geom_46", + "name": "store_geom_46", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.026" + }, + { + "id": "store_geom_47", + "name": "store_geom_47", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.027" + }, + { + "id": "store_geom_48", + "name": "store_geom_48", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.028" + }, + { + "id": "store_geom_49", + "name": "store_geom_49", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.029" + }, + { + "id": "store_geom_50", + "name": "store_geom_50", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.030" + }, + { + "id": "store_geom_51", + "name": "store_geom_51", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.031" + }, + { + "id": "store_geom_52", + "name": "store_geom_52", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.032" + }, + { + "id": "store_geom_53", + "name": "store_geom_53", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.033" + }, + { + "id": "store_geom_54", + "name": "store_geom_54", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.034" + }, + { + "id": "store_geom_55", + "name": "store_geom_55", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.035" + }, + { + "id": "store_geom_56", + "name": "store_geom_56", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.036" + }, + { + "id": "store_geom_57", + "name": "store_geom_57", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.037" + }, + { + "id": "store_geom_58", + "name": "store_geom_58", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.038" + }, + { + "id": "store_geom_59", + "name": "store_geom_59", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.039" + }, + { + "id": "store_geom_60", + "name": "store_geom_60", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.040" + }, + { + "id": "store_geom_61", + "name": "store_geom_61", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.041" + }, + { + "id": "store_geom_62", + "name": "store_geom_62", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.042" + }, + { + "id": "store_geom_63", + "name": "store_geom_63", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.043" + }, + { + "id": "store_geom_64", + "name": "store_geom_64", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.044" + }, + { + "id": "store_geom_65", + "name": "store_geom_65", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.045" + }, + { + "id": "store_geom_66", + "name": "store_geom_66", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.046" + }, + { + "id": "store_geom_67", + "name": "store_geom_67", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.047" + }, + { + "id": "store_geom_68", + "name": "store_geom_68", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.048" + }, + { + "id": "store_geom_69", + "name": "store_geom_69", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.049" + }, + { + "id": "store_geom_70", + "name": "store_geom_70", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.050" + }, + { + "id": "store_geom_71", + "name": "store_geom_71", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.051" + }, + { + "id": "store_geom_72", + "name": "store_geom_72", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.052" + }, + { + "id": "store_geom_73", + "name": "store_geom_73", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.053" + }, + { + "id": "store_geom_74", + "name": "store_geom_74", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.054" + }, + { + "id": "store_geom_75", + "name": "store_geom_75", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.055" + }, + { + "id": "store_geom_76", + "name": "store_geom_76", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.056" + }, + { + "id": "store_geom_77", + "name": "store_geom_77", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.057" + }, + { + "id": "store_geom_78", + "name": "store_geom_78", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.058" + }, + { + "id": "store_geom_79", + "name": "store_geom_79", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.059" + }, + { + "id": "store_geom_80", + "name": "store_geom_80", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.060" + }, + { + "id": "store_geom_81", + "name": "store_geom_81", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.061" + }, + { + "id": "store_geom_82", + "name": "store_geom_82", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.062" + }, + { + "id": "store_geom_83", + "name": "store_geom_83", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.063" + }, + { + "id": "store_geom_84", + "name": "store_geom_84", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.064" + }, + { + "id": "store_geom_85", + "name": "store_geom_85", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.065" + }, + { + "id": "store_geom_86", + "name": "store_geom_86", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.084" + }, + { + "id": "store_geom_87", + "name": "store_geom_87", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.085" + }, + { + "id": "store_geom_88", + "name": "store_geom_88", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.086" + }, + { + "id": "store_geom_89", + "name": "store_geom_89", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.087" + }, + { + "id": "store_geom_90", + "name": "store_geom_90", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.088" + }, + { + "id": "store_geom_91", + "name": "store_geom_91", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.089" + }, + { + "id": "store_geom_92", + "name": "store_geom_92", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.090" + }, + { + "id": "store_geom_93", + "name": "store_geom_93", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.091" + }, + { + "id": "store_geom_94", + "name": "store_geom_94", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.092" + }, + { + "id": "store_geom_95", + "name": "store_geom_95", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.001" + }, + { + "id": "store_geom_96", + "name": "store_geom_96", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.002" + }, + { + "id": "store_geom_97", + "name": "store_geom_97", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.003" + }, + { + "id": "store_geom_98", + "name": "store_geom_98", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.004" + }, + { + "id": "store_geom_99", + "name": "store_geom_99", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.005" + }, + { + "id": "store_geom_100", + "name": "store_geom_100", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.006" + }, + { + "id": "store_geom_101", + "name": "store_geom_101", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.007" + }, + { + "id": "store_geom_102", + "name": "store_geom_102", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.008" + }, + { + "id": "store_geom_103", + "name": "store_geom_103", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.009" + }, + { + "id": "store_geom_104", + "name": "store_geom_104", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.010" + }, + { + "id": "store_geom_105", + "name": "store_geom_105", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.011" + }, + { + "id": "store_geom_106", + "name": "store_geom_106", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.012" + }, + { + "id": "store_geom_107", + "name": "store_geom_107", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.013" + }, + { + "id": "store_geom_108", + "name": "store_geom_108", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.014" + }, + { + "id": "store_geom_109", + "name": "store_geom_109", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.015" + }, + { + "id": "store_geom_110", + "name": "store_geom_110", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.016" + }, + { + "id": "demo_cube_red", + "name": "demo_cube_red", + "geometry": { + "kind": "primitive", + "primitive": "box", + "size": [ + 0.12, + 0.12, + 0.12 + ] + }, + "material": "demo_red", + "pose": { + "position": [ + 0.85, + -0.45, + 0.06 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_cube_blue", + "name": "demo_cube_blue", + "geometry": { + "kind": "primitive", + "primitive": "box", + "size": [ + 0.1, + 0.16, + 0.09 + ] + }, + "material": "demo_blue", + "pose": { + "position": [ + 1.05, + -0.28, + 0.05 + ], + "euler": [ + 0, + 0, + 0.4 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_ball_green", + "name": "demo_ball_green", + "geometry": { + "kind": "primitive", + "primitive": "sphere", + "radius": 0.075 + }, + "material": "demo_green", + "pose": { + "position": [ + 0.65, + -0.22, + 0.08 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_capsule_yellow", + "name": "demo_capsule_yellow", + "geometry": { + "kind": "primitive", + "primitive": "capsule", + "radius": 0.035, + "length": 0.22 + }, + "material": "demo_yellow", + "pose": { + "position": [ + 1.2, + -0.55, + 0.08 + ], + "euler": [ + 0, + 1.5708, + 0.25 + ] + }, + "castShadow": true, + "receiveShadow": true + } + ], + "lights": [ + { + "type": "ambient", + "color": "#ffffff", + "intensity": 0.24 + }, + { + "type": "hemisphere", + "color": "#e0f2fe", + "intensity": 0.72 + }, + { + "type": "directional", + "color": "#ffffff", + "intensity": 2.15, + "position": [ + 4, + -5, + 8 + ] + }, + { + "type": "directional", + "color": "#dbeafe", + "intensity": 0.85, + "position": [ + -4, + 3, + 4 + ] + } + ], + "camera": { + "position": [ + 3.4, + -4.4, + 2.2 + ], + "target": [ + 0.35, + 0.55, + 0.9 + ], + "fov": 46 + }, + "state": { + "mode": "poll", + "url": "http://127.0.0.1:18087/state", + "controlUrl": "http://127.0.0.1:18087/control", + "pollIntervalMs": 50 + }, + "controls": { + "joints": [ + { + "name": "left_hip_pitch_joint", + "index": 0, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "left_hip_roll_joint", + "index": 1, + "range": [ + -0.5235999822616577, + 2.967099905014038 + ], + "value": 0 + }, + { + "name": "left_hip_yaw_joint", + "index": 2, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "value": 0 + }, + { + "name": "left_knee_joint", + "index": 3, + "range": [ + -0.08726699650287628, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "left_ankle_pitch_joint", + "index": 4, + "range": [ + -0.8726699948310852, + 0.5235999822616577 + ], + "value": 0 + }, + { + "name": "left_ankle_roll_joint", + "index": 5, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "value": 0 + }, + { + "name": "right_hip_pitch_joint", + "index": 6, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "right_hip_roll_joint", + "index": 7, + "range": [ + -0.5235999822616577, + 2.967099905014038 + ], + "value": 0 + }, + { + "name": "right_hip_yaw_joint", + "index": 8, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "value": 0 + }, + { + "name": "right_knee_joint", + "index": 9, + "range": [ + -0.08726699650287628, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "right_ankle_pitch_joint", + "index": 10, + "range": [ + -0.8726699948310852, + 0.5235999822616577 + ], + "value": 0 + }, + { + "name": "right_ankle_roll_joint", + "index": 11, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "value": 0 + }, + { + "name": "waist_yaw_joint", + "index": 12, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "waist_roll_joint", + "index": 13, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "value": 0 + }, + { + "name": "waist_pitch_joint", + "index": 14, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "value": 0 + }, + { + "name": "left_shoulder_pitch_joint", + "index": 15, + "range": [ + -3.089200019836426, + 2.6703999042510986 + ], + "value": 0 + }, + { + "name": "left_shoulder_roll_joint", + "index": 16, + "range": [ + -1.5881999731063843, + 2.251499891281128 + ], + "value": 0 + }, + { + "name": "left_shoulder_yaw_joint", + "index": 17, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "left_elbow_joint", + "index": 18, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "value": 0 + }, + { + "name": "left_wrist_roll_joint", + "index": 19, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "value": 0 + }, + { + "name": "left_wrist_pitch_joint", + "index": 20, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "left_wrist_yaw_joint", + "index": 21, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "right_shoulder_pitch_joint", + "index": 22, + "range": [ + -3.089200019836426, + 2.6703999042510986 + ], + "value": 0 + }, + { + "name": "right_shoulder_roll_joint", + "index": 23, + "range": [ + -2.251499891281128, + 1.5881999731063843 + ], + "value": 0 + }, + { + "name": "right_shoulder_yaw_joint", + "index": 24, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "right_elbow_joint", + "index": 25, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "value": 0 + }, + { + "name": "right_wrist_roll_joint", + "index": 26, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "value": 0 + }, + { + "name": "right_wrist_pitch_joint", + "index": 27, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "right_wrist_yaw_joint", + "index": 28, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + } + ], + "actuators": [ + { + "name": "left_hip_pitch_joint", + "index": 0, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "targetName": "left_hip_pitch_joint", + "value": -0.31200000643730164 + }, + { + "name": "left_hip_roll_joint", + "index": 1, + "range": [ + -0.5235998630523682, + 2.967099905014038 + ], + "targetName": "left_hip_roll_joint", + "value": 0 + }, + { + "name": "left_hip_yaw_joint", + "index": 2, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "targetName": "left_hip_yaw_joint", + "value": 0 + }, + { + "name": "left_knee_joint", + "index": 3, + "range": [ + -0.08726692199707031, + 2.8798000812530518 + ], + "targetName": "left_knee_joint", + "value": 0.6690000295639038 + }, + { + "name": "left_ankle_pitch_joint", + "index": 4, + "range": [ + -0.87267005443573, + 0.5235999822616577 + ], + "targetName": "left_ankle_pitch_joint", + "value": -0.3630000054836273 + }, + { + "name": "left_ankle_roll_joint", + "index": 5, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "targetName": "left_ankle_roll_joint", + "value": 0 + }, + { + "name": "right_hip_pitch_joint", + "index": 6, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "targetName": "right_hip_pitch_joint", + "value": -0.31200000643730164 + }, + { + "name": "right_hip_roll_joint", + "index": 7, + "range": [ + -0.5235998630523682, + 2.967099905014038 + ], + "targetName": "right_hip_roll_joint", + "value": 0 + }, + { + "name": "right_hip_yaw_joint", + "index": 8, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "targetName": "right_hip_yaw_joint", + "value": 0 + }, + { + "name": "right_knee_joint", + "index": 9, + "range": [ + -0.08726692199707031, + 2.8798000812530518 + ], + "targetName": "right_knee_joint", + "value": 0.6690000295639038 + }, + { + "name": "right_ankle_pitch_joint", + "index": 10, + "range": [ + -0.87267005443573, + 0.5235999822616577 + ], + "targetName": "right_ankle_pitch_joint", + "value": -0.3630000054836273 + }, + { + "name": "right_ankle_roll_joint", + "index": 11, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "targetName": "right_ankle_roll_joint", + "value": 0 + }, + { + "name": "waist_yaw_joint", + "index": 12, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "waist_yaw_joint", + "value": 0 + }, + { + "name": "waist_roll_joint", + "index": 13, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "targetName": "waist_roll_joint", + "value": 0 + }, + { + "name": "waist_pitch_joint", + "index": 14, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "targetName": "waist_pitch_joint", + "value": 0.0729999989271164 + }, + { + "name": "left_shoulder_pitch_joint", + "index": 15, + "range": [ + -3.089200019836426, + 2.6703996658325195 + ], + "targetName": "left_shoulder_pitch_joint", + "value": 0.20000000298023224 + }, + { + "name": "left_shoulder_roll_joint", + "index": 16, + "range": [ + -1.5881998538970947, + 2.251499891281128 + ], + "targetName": "left_shoulder_roll_joint", + "value": 0.20000000298023224 + }, + { + "name": "left_shoulder_yaw_joint", + "index": 17, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "left_shoulder_yaw_joint", + "value": 0 + }, + { + "name": "left_elbow_joint", + "index": 18, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "targetName": "left_elbow_joint", + "value": 0.6000000238418579 + }, + { + "name": "left_wrist_roll_joint", + "index": 19, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "targetName": "left_wrist_roll_joint", + "value": 0 + }, + { + "name": "left_wrist_pitch_joint", + "index": 20, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "left_wrist_pitch_joint", + "value": 0 + }, + { + "name": "left_wrist_yaw_joint", + "index": 21, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "left_wrist_yaw_joint", + "value": 0 + }, + { + "name": "right_shoulder_pitch_joint", + "index": 22, + "range": [ + -3.089200019836426, + 2.6703996658325195 + ], + "targetName": "right_shoulder_pitch_joint", + "value": 0.20000000298023224 + }, + { + "name": "right_shoulder_roll_joint", + "index": 23, + "range": [ + -2.251499891281128, + 1.5881998538970947 + ], + "targetName": "right_shoulder_roll_joint", + "value": -0.20000000298023224 + }, + { + "name": "right_shoulder_yaw_joint", + "index": 24, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "right_shoulder_yaw_joint", + "value": 0 + }, + { + "name": "right_elbow_joint", + "index": 25, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "targetName": "right_elbow_joint", + "value": 0.6000000238418579 + }, + { + "name": "right_wrist_roll_joint", + "index": 26, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "targetName": "right_wrist_roll_joint", + "value": 0 + }, + { + "name": "right_wrist_pitch_joint", + "index": 27, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "right_wrist_pitch_joint", + "value": 0 + }, + { + "name": "right_wrist_yaw_joint", + "index": 28, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "right_wrist_yaw_joint", + "value": 0 + } + ], + "keyboard": { + "source": "MotrixSim RenderApp examples", + "command": { + "forward": [ + "w", + "up" + ], + "backward": [ + "s", + "down" + ], + "strafeLeft": [ + "left" + ], + "strafeRight": [ + "right" + ], + "yawLeft": [ + "a" + ], + "yawRight": [ + "d" + ] + }, + "camera": { + "rotate": "left mouse drag", + "pan": "right mouse drag", + "zoom": "mouse wheel", + "focusMarker": true + } + } + }, + "composite": { + "type": "visual-manifest-merge-lite", + "sources": [ + "http://127.0.0.1:18087/manifest", + "http://127.0.0.1:18085/manifest" + ], + "storeObjects": 110, + "note": "Store/demo objects are visual/static; G1 live state/control comes from 18087." + } +} diff --git a/public/generated/g1-store-blocks.manifest.json b/public/generated/g1-store-blocks.manifest.json new file mode 100644 index 0000000..5bb0574 --- /dev/null +++ b/public/generated/g1-store-blocks.manifest.json @@ -0,0 +1,17467 @@ +{ + "version": "1.0", + "name": "G1 humanoid + Store shelves + Demo blocks", + "description": "Composite visual manifest: G1 live MotrixSim state plus Store static assets and demo primitives.", + "units": "m", + "coordinateSystem": { + "up": "Z", + "handedness": "right" + }, + "materials": [ + { + "id": "default", + "color": "#93c5fd", + "roughness": 0.65 + }, + { + "id": "fallback", + "color": "#fb7185", + "wireframe": true + }, + { + "id": "g1_silver", + "color": "#b2b2b2", + "opacity": 1, + "roughness": 0.7, + "metalness": 0 + }, + { + "id": "g1_black", + "color": "#333333", + "opacity": 1, + "roughness": 0.7, + "metalness": 0 + }, + { + "id": "g1_groundplane", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.7, + "metalness": 0, + "textureKind": "checker", + "textureColors": [ + "#6e87a4", + "#d0dae7" + ], + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "default", + "color": "#93c5fd", + "roughness": 0.65 + }, + { + "id": "fallback", + "color": "#fb7185", + "wireframe": true + }, + { + "id": "store_Bottle_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.20000000298023224, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.20000000298023224, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.20000000298023224, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Bottle_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.20000000298023224, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_E", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_F", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S330.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Cans_G", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_A", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.30000001192092896, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_B", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.30000001192092896, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_C", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.30000001192092896, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Tetra_D", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.30000001192092896, + "metalness": 0, + "textureUrl": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.png", + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "store_Metal_White", + "color": "#ffffff", + "opacity": 1, + "roughness": 1, + "metalness": 1, + "textureUrl": "http://127.0.0.1:18085/assets/assets/metal_painted_white_basecolor.png", + "textureRepeat": [ + 3, + 3 + ] + }, + { + "id": "store_groundplane", + "color": "#ffffff", + "opacity": 1, + "roughness": 0.7, + "metalness": 0, + "textureKind": "checker", + "textureColors": [ + "#6e87a4", + "#d0dae7" + ], + "textureRepeat": [ + 1, + 1 + ] + }, + { + "id": "demo_red", + "color": "#e11d48", + "roughness": 0.55 + }, + { + "id": "demo_blue", + "color": "#2563eb", + "roughness": 0.55 + }, + { + "id": "demo_green", + "color": "#16a34a", + "roughness": 0.55 + }, + { + "id": "demo_yellow", + "color": "#eab308", + "roughness": 0.55 + } + ], + "objects": [ + { + "id": "g1_geom_1", + "name": "g1_geom_1", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_2", + "name": "g1_geom_2", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis_contour_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_3", + "name": "g1_geom_3", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/pelvis_contour_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "pelvis" + }, + { + "id": "g1_geom_4", + "name": "g1_geom_4", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_pitch_link" + }, + { + "id": "g1_geom_5", + "name": "g1_geom_5", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_pitch_link" + }, + { + "id": "g1_geom_6", + "name": "g1_geom_6", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_roll_link" + }, + { + "id": "g1_geom_7", + "name": "g1_geom_7", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_roll_link" + }, + { + "id": "g1_geom_8", + "name": "g1_geom_8", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_yaw_link" + }, + { + "id": "g1_geom_9", + "name": "g1_geom_9", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_hip_yaw_link" + }, + { + "id": "g1_geom_10", + "name": "g1_geom_10", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_knee_link" + }, + { + "id": "g1_geom_11", + "name": "g1_geom_11", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_knee_link" + }, + { + "id": "g1_geom_12", + "name": "g1_geom_12", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_pitch_link" + }, + { + "id": "g1_geom_13", + "name": "g1_geom_13", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_pitch_link" + }, + { + "id": "g1_geom_14", + "name": "g1_geom_14", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_ankle_roll_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_ankle_roll_link" + }, + { + "id": "g1_geom_15", + "name": "g1_geom_15", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_pitch_link" + }, + { + "id": "g1_geom_16", + "name": "g1_geom_16", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_pitch_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_pitch_link" + }, + { + "id": "g1_geom_17", + "name": "g1_geom_17", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_roll_link" + }, + { + "id": "g1_geom_18", + "name": "g1_geom_18", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_roll_link" + }, + { + "id": "g1_geom_19", + "name": "g1_geom_19", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_yaw_link" + }, + { + "id": "g1_geom_20", + "name": "g1_geom_20", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_hip_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_hip_yaw_link" + }, + { + "id": "g1_geom_21", + "name": "g1_geom_21", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_knee_link" + }, + { + "id": "g1_geom_22", + "name": "g1_geom_22", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_knee_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_knee_link" + }, + { + "id": "g1_geom_23", + "name": "g1_geom_23", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_pitch_link" + }, + { + "id": "g1_geom_24", + "name": "g1_geom_24", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_pitch_link" + }, + { + "id": "g1_geom_25", + "name": "g1_geom_25", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_ankle_roll_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_ankle_roll_link" + }, + { + "id": "g1_geom_26", + "name": "g1_geom_26", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/waist_yaw_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "waist_yaw_link" + }, + { + "id": "g1_geom_27", + "name": "g1_geom_27", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/waist_roll_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "waist_roll_link" + }, + { + "id": "g1_geom_28", + "name": "g1_geom_28", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/torso_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_29", + "name": "g1_geom_29", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/torso_link_rev_1_0.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_30", + "name": "g1_geom_30", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/logo_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_31", + "name": "g1_geom_31", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/logo_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_32", + "name": "g1_geom_32", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/head_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_33", + "name": "g1_geom_33", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/head_link.STL", + "format": "stl" + }, + "material": "g1_black", + "pose": { + "position": [ + 0.0039635, + 0, + -0.044 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "torso_link" + }, + { + "id": "g1_geom_34", + "name": "g1_geom_34", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_pitch_link" + }, + { + "id": "g1_geom_35", + "name": "g1_geom_35", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.05 + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0.04, + -0.01 + ], + "quaternion": [ + 0, + 0.7071067811865475, + 0, + 0.7071067811865475 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_pitch_link" + }, + { + "id": "g1_geom_36", + "name": "g1_geom_36", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_roll_link" + }, + { + "id": "g1_geom_37", + "name": "g1_geom_37", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.03 + }, + "material": "g1_silver", + "pose": { + "position": [ + -0.004, + 0.006, + -0.053 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_roll_link" + }, + { + "id": "g1_geom_38", + "name": "g1_geom_38", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_yaw_link" + }, + { + "id": "g1_geom_39", + "name": "g1_geom_39", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_shoulder_yaw_link" + }, + { + "id": "g1_geom_40", + "name": "g1_geom_40", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_elbow_link" + }, + { + "id": "g1_geom_41", + "name": "g1_geom_41", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_elbow_link" + }, + { + "id": "g1_geom_42", + "name": "g1_geom_42", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_roll_link" + }, + { + "id": "g1_geom_43", + "name": "g1_geom_43", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_roll_link" + }, + { + "id": "g1_geom_44", + "name": "g1_geom_44", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_pitch_link" + }, + { + "id": "g1_geom_45", + "name": "g1_geom_45", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_pitch_link" + }, + { + "id": "g1_geom_46", + "name": "g1_geom_46", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_47", + "name": "g1_geom_47", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_48", + "name": "g1_geom_48", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/left_rubber_hand.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0.0415, + 0.003, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "left_wrist_yaw_link" + }, + { + "id": "g1_geom_49", + "name": "g1_geom_49", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_pitch_link" + }, + { + "id": "g1_geom_50", + "name": "g1_geom_50", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.05 + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + -0.04, + -0.01 + ], + "quaternion": [ + 0, + 0.7071067811865475, + 0, + 0.7071067811865475 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_pitch_link" + }, + { + "id": "g1_geom_51", + "name": "g1_geom_51", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_roll_link" + }, + { + "id": "g1_geom_52", + "name": "g1_geom_52", + "geometry": { + "kind": "primitive", + "primitive": "cylinder", + "radius": 0.03, + "length": 0.03 + }, + "material": "g1_silver", + "pose": { + "position": [ + -0.004, + -0.006, + -0.053 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_roll_link" + }, + { + "id": "g1_geom_53", + "name": "g1_geom_53", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_yaw_link" + }, + { + "id": "g1_geom_54", + "name": "g1_geom_54", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_shoulder_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_shoulder_yaw_link" + }, + { + "id": "g1_geom_55", + "name": "g1_geom_55", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_elbow_link" + }, + { + "id": "g1_geom_56", + "name": "g1_geom_56", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_elbow_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_elbow_link" + }, + { + "id": "g1_geom_57", + "name": "g1_geom_57", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_roll_link" + }, + { + "id": "g1_geom_58", + "name": "g1_geom_58", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_roll_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_roll_link" + }, + { + "id": "g1_geom_59", + "name": "g1_geom_59", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_pitch_link" + }, + { + "id": "g1_geom_60", + "name": "g1_geom_60", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_pitch_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_pitch_link" + }, + { + "id": "g1_geom_61", + "name": "g1_geom_61", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_geom_62", + "name": "g1_geom_62", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_wrist_yaw_link.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_geom_63", + "name": "g1_geom_63", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18087/assets/assets/right_rubber_hand.STL", + "format": "stl" + }, + "material": "g1_silver", + "pose": { + "position": [ + 0.0415, + -0.003, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "right_wrist_yaw_link" + }, + { + "id": "g1_floor", + "name": "g1_floor", + "geometry": { + "kind": "primitive", + "primitive": "plane", + "size": [ + 0, + 0, + 0 + ] + }, + "material": "g1_groundplane", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_1", + "name": "store_geom_1", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3133227825164795, + 1.0419902801513672, + 0 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_2", + "name": "store_geom_2", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.44424617290496826, + 1.2267184257507324, + 0 + ], + "quaternion": [ + 0, + 0, + 0.052336205388961096, + 0.9986295216973533 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_3", + "name": "store_geom_3", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.4442458748817444, + 1.2267179489135742, + 0 + ], + "quaternion": [ + 0, + 0, + -0.05233585737062552, + 0.9986295399362476 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_4", + "name": "store_geom_4", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Frame.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3133219480514526, + 1.0419902801513672, + 0 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_5", + "name": "store_geom_5", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_6", + "name": "store_geom_6", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_7", + "name": "store_geom_7", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_8", + "name": "store_geom_8", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 0.5529000759124756 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_9", + "name": "store_geom_9", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_10", + "name": "store_geom_10", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_11", + "name": "store_geom_11", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_12", + "name": "store_geom_12", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 0.9129000902175903 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_13", + "name": "store_geom_13", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_14", + "name": "store_geom_14", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + 0.052336201673874615, + 0.9986295218920537 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_15", + "name": "store_geom_15", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + -0.05233586731608257, + 0.9986295394150293 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_16", + "name": "store_geom_16", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 1.272900104522705 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_17", + "name": "store_geom_17", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -1.3028161525726318, + 1.0096545219421387, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + 0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_18", + "name": "store_geom_18", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + -0.4406922459602356, + 1.192903995513916, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + 0.052336179983237904, + 0.9986295230288168 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_19", + "name": "store_geom_19", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 0.44069185853004456, + 1.1929049491882324, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + -0.05233585737062552, + 0.9986295399362476 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_20", + "name": "store_geom_20", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Shelf_Plat.obj", + "format": "obj" + }, + "material": "store_Metal_White", + "pose": { + "position": [ + 1.3028154373168945, + 1.0096549987792969, + 1.6329001188278198 + ], + "quaternion": [ + 0, + 0, + -0.15643462727295232, + 0.9876883148999853 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "store_geom_21", + "name": "store_geom_21", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.001" + }, + { + "id": "store_geom_22", + "name": "store_geom_22", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.002" + }, + { + "id": "store_geom_23", + "name": "store_geom_23", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.003" + }, + { + "id": "store_geom_24", + "name": "store_geom_24", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.004" + }, + { + "id": "store_geom_25", + "name": "store_geom_25", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.005" + }, + { + "id": "store_geom_26", + "name": "store_geom_26", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.006" + }, + { + "id": "store_geom_27", + "name": "store_geom_27", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.007" + }, + { + "id": "store_geom_28", + "name": "store_geom_28", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.008" + }, + { + "id": "store_geom_29", + "name": "store_geom_29", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.009" + }, + { + "id": "store_geom_30", + "name": "store_geom_30", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.010" + }, + { + "id": "store_geom_31", + "name": "store_geom_31", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.011" + }, + { + "id": "store_geom_32", + "name": "store_geom_32", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.012" + }, + { + "id": "store_geom_33", + "name": "store_geom_33", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.013" + }, + { + "id": "store_geom_34", + "name": "store_geom_34", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.014" + }, + { + "id": "store_geom_35", + "name": "store_geom_35", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.015" + }, + { + "id": "store_geom_36", + "name": "store_geom_36", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.016" + }, + { + "id": "store_geom_37", + "name": "store_geom_37", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.017" + }, + { + "id": "store_geom_38", + "name": "store_geom_38", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.018" + }, + { + "id": "store_geom_39", + "name": "store_geom_39", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.019" + }, + { + "id": "store_geom_40", + "name": "store_geom_40", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.020" + }, + { + "id": "store_geom_41", + "name": "store_geom_41", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.021" + }, + { + "id": "store_geom_42", + "name": "store_geom_42", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.022" + }, + { + "id": "store_geom_43", + "name": "store_geom_43", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.023" + }, + { + "id": "store_geom_44", + "name": "store_geom_44", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.024" + }, + { + "id": "store_geom_45", + "name": "store_geom_45", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.025" + }, + { + "id": "store_geom_46", + "name": "store_geom_46", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.026" + }, + { + "id": "store_geom_47", + "name": "store_geom_47", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.027" + }, + { + "id": "store_geom_48", + "name": "store_geom_48", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.028" + }, + { + "id": "store_geom_49", + "name": "store_geom_49", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.029" + }, + { + "id": "store_geom_50", + "name": "store_geom_50", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.030" + }, + { + "id": "store_geom_51", + "name": "store_geom_51", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.031" + }, + { + "id": "store_geom_52", + "name": "store_geom_52", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.032" + }, + { + "id": "store_geom_53", + "name": "store_geom_53", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.033" + }, + { + "id": "store_geom_54", + "name": "store_geom_54", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.034" + }, + { + "id": "store_geom_55", + "name": "store_geom_55", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.035" + }, + { + "id": "store_geom_56", + "name": "store_geom_56", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.036" + }, + { + "id": "store_geom_57", + "name": "store_geom_57", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.037" + }, + { + "id": "store_geom_58", + "name": "store_geom_58", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.038" + }, + { + "id": "store_geom_59", + "name": "store_geom_59", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.039" + }, + { + "id": "store_geom_60", + "name": "store_geom_60", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.040" + }, + { + "id": "store_geom_61", + "name": "store_geom_61", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.041" + }, + { + "id": "store_geom_62", + "name": "store_geom_62", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.042" + }, + { + "id": "store_geom_63", + "name": "store_geom_63", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.043" + }, + { + "id": "store_geom_64", + "name": "store_geom_64", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.044" + }, + { + "id": "store_geom_65", + "name": "store_geom_65", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.045" + }, + { + "id": "store_geom_66", + "name": "store_geom_66", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.046" + }, + { + "id": "store_geom_67", + "name": "store_geom_67", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.047" + }, + { + "id": "store_geom_68", + "name": "store_geom_68", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.048" + }, + { + "id": "store_geom_69", + "name": "store_geom_69", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.049" + }, + { + "id": "store_geom_70", + "name": "store_geom_70", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.050" + }, + { + "id": "store_geom_71", + "name": "store_geom_71", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.051" + }, + { + "id": "store_geom_72", + "name": "store_geom_72", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.052" + }, + { + "id": "store_geom_73", + "name": "store_geom_73", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.053" + }, + { + "id": "store_geom_74", + "name": "store_geom_74", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.054" + }, + { + "id": "store_geom_75", + "name": "store_geom_75", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.055" + }, + { + "id": "store_geom_76", + "name": "store_geom_76", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.056" + }, + { + "id": "store_geom_77", + "name": "store_geom_77", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.057" + }, + { + "id": "store_geom_78", + "name": "store_geom_78", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.058" + }, + { + "id": "store_geom_79", + "name": "store_geom_79", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.059" + }, + { + "id": "store_geom_80", + "name": "store_geom_80", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.060" + }, + { + "id": "store_geom_81", + "name": "store_geom_81", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.061" + }, + { + "id": "store_geom_82", + "name": "store_geom_82", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.062" + }, + { + "id": "store_geom_83", + "name": "store_geom_83", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.063" + }, + { + "id": "store_geom_84", + "name": "store_geom_84", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.064" + }, + { + "id": "store_geom_85", + "name": "store_geom_85", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.065" + }, + { + "id": "store_geom_86", + "name": "store_geom_86", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.084" + }, + { + "id": "store_geom_87", + "name": "store_geom_87", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.085" + }, + { + "id": "store_geom_88", + "name": "store_geom_88", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.086" + }, + { + "id": "store_geom_89", + "name": "store_geom_89", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.087" + }, + { + "id": "store_geom_90", + "name": "store_geom_90", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.088" + }, + { + "id": "store_geom_91", + "name": "store_geom_91", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.089" + }, + { + "id": "store_geom_92", + "name": "store_geom_92", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.090" + }, + { + "id": "store_geom_93", + "name": "store_geom_93", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.091" + }, + { + "id": "store_geom_94", + "name": "store_geom_94", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.092" + }, + { + "id": "store_geom_95", + "name": "store_geom_95", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.001" + }, + { + "id": "store_geom_96", + "name": "store_geom_96", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.002" + }, + { + "id": "store_geom_97", + "name": "store_geom_97", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.003" + }, + { + "id": "store_geom_98", + "name": "store_geom_98", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.004" + }, + { + "id": "store_geom_99", + "name": "store_geom_99", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.005" + }, + { + "id": "store_geom_100", + "name": "store_geom_100", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.006" + }, + { + "id": "store_geom_101", + "name": "store_geom_101", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.007" + }, + { + "id": "store_geom_102", + "name": "store_geom_102", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.008" + }, + { + "id": "store_geom_103", + "name": "store_geom_103", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.009" + }, + { + "id": "store_geom_104", + "name": "store_geom_104", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.010" + }, + { + "id": "store_geom_105", + "name": "store_geom_105", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.011" + }, + { + "id": "store_geom_106", + "name": "store_geom_106", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.012" + }, + { + "id": "store_geom_107", + "name": "store_geom_107", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.013" + }, + { + "id": "store_geom_108", + "name": "store_geom_108", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.014" + }, + { + "id": "store_geom_109", + "name": "store_geom_109", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.015" + }, + { + "id": "store_geom_110", + "name": "store_geom_110", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.016" + }, + { + "id": "store_geom_111", + "name": "store_geom_111", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.024" + }, + { + "id": "store_geom_112", + "name": "store_geom_112", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.025" + }, + { + "id": "store_geom_113", + "name": "store_geom_113", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.026" + }, + { + "id": "store_geom_114", + "name": "store_geom_114", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.027" + }, + { + "id": "store_geom_115", + "name": "store_geom_115", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.028" + }, + { + "id": "store_geom_116", + "name": "store_geom_116", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.029" + }, + { + "id": "store_geom_117", + "name": "store_geom_117", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.030" + }, + { + "id": "store_geom_118", + "name": "store_geom_118", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.031" + }, + { + "id": "store_geom_119", + "name": "store_geom_119", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.032" + }, + { + "id": "store_geom_120", + "name": "store_geom_120", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.033" + }, + { + "id": "store_geom_121", + "name": "store_geom_121", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.034" + }, + { + "id": "store_geom_122", + "name": "store_geom_122", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.035" + }, + { + "id": "store_geom_123", + "name": "store_geom_123", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.036" + }, + { + "id": "store_geom_124", + "name": "store_geom_124", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.037" + }, + { + "id": "store_geom_125", + "name": "store_geom_125", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.001" + }, + { + "id": "store_geom_126", + "name": "store_geom_126", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.002" + }, + { + "id": "store_geom_127", + "name": "store_geom_127", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.003" + }, + { + "id": "store_geom_128", + "name": "store_geom_128", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.004" + }, + { + "id": "store_geom_129", + "name": "store_geom_129", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.005" + }, + { + "id": "store_geom_130", + "name": "store_geom_130", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.006" + }, + { + "id": "store_geom_131", + "name": "store_geom_131", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.007" + }, + { + "id": "store_geom_132", + "name": "store_geom_132", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.008" + }, + { + "id": "store_geom_133", + "name": "store_geom_133", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.009" + }, + { + "id": "store_geom_134", + "name": "store_geom_134", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.010" + }, + { + "id": "store_geom_135", + "name": "store_geom_135", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.011" + }, + { + "id": "store_geom_136", + "name": "store_geom_136", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_400.obj", + "format": "obj" + }, + "material": "store_Bottle_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_400.012" + }, + { + "id": "store_geom_137", + "name": "store_geom_137", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.010" + }, + { + "id": "store_geom_138", + "name": "store_geom_138", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.011" + }, + { + "id": "store_geom_139", + "name": "store_geom_139", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.012" + }, + { + "id": "store_geom_140", + "name": "store_geom_140", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.013" + }, + { + "id": "store_geom_141", + "name": "store_geom_141", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.014" + }, + { + "id": "store_geom_142", + "name": "store_geom_142", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.015" + }, + { + "id": "store_geom_143", + "name": "store_geom_143", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.001" + }, + { + "id": "store_geom_144", + "name": "store_geom_144", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.002" + }, + { + "id": "store_geom_145", + "name": "store_geom_145", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.003" + }, + { + "id": "store_geom_146", + "name": "store_geom_146", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.004" + }, + { + "id": "store_geom_147", + "name": "store_geom_147", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.005" + }, + { + "id": "store_geom_148", + "name": "store_geom_148", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.006" + }, + { + "id": "store_geom_149", + "name": "store_geom_149", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.007" + }, + { + "id": "store_geom_150", + "name": "store_geom_150", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.008" + }, + { + "id": "store_geom_151", + "name": "store_geom_151", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.009" + }, + { + "id": "store_geom_152", + "name": "store_geom_152", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.010" + }, + { + "id": "store_geom_153", + "name": "store_geom_153", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.011" + }, + { + "id": "store_geom_154", + "name": "store_geom_154", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.012" + }, + { + "id": "store_geom_155", + "name": "store_geom_155", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.013" + }, + { + "id": "store_geom_156", + "name": "store_geom_156", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.014" + }, + { + "id": "store_geom_157", + "name": "store_geom_157", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.015" + }, + { + "id": "store_geom_158", + "name": "store_geom_158", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.016" + }, + { + "id": "store_geom_159", + "name": "store_geom_159", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.017" + }, + { + "id": "store_geom_160", + "name": "store_geom_160", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.018" + }, + { + "id": "store_geom_161", + "name": "store_geom_161", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.019" + }, + { + "id": "store_geom_162", + "name": "store_geom_162", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.020" + }, + { + "id": "store_geom_163", + "name": "store_geom_163", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.021" + }, + { + "id": "store_geom_164", + "name": "store_geom_164", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.022" + }, + { + "id": "store_geom_165", + "name": "store_geom_165", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N250.obj", + "format": "obj" + }, + "material": "store_Cans_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N250.023" + }, + { + "id": "store_geom_166", + "name": "store_geom_166", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.001" + }, + { + "id": "store_geom_167", + "name": "store_geom_167", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.002" + }, + { + "id": "store_geom_168", + "name": "store_geom_168", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.003" + }, + { + "id": "store_geom_169", + "name": "store_geom_169", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.004" + }, + { + "id": "store_geom_170", + "name": "store_geom_170", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.005" + }, + { + "id": "store_geom_171", + "name": "store_geom_171", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.006" + }, + { + "id": "store_geom_172", + "name": "store_geom_172", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.007" + }, + { + "id": "store_geom_173", + "name": "store_geom_173", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.008" + }, + { + "id": "store_geom_174", + "name": "store_geom_174", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.009" + }, + { + "id": "store_geom_175", + "name": "store_geom_175", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.010" + }, + { + "id": "store_geom_176", + "name": "store_geom_176", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.011" + }, + { + "id": "store_geom_177", + "name": "store_geom_177", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.012" + }, + { + "id": "store_geom_178", + "name": "store_geom_178", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.013" + }, + { + "id": "store_geom_179", + "name": "store_geom_179", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.014" + }, + { + "id": "store_geom_180", + "name": "store_geom_180", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.015" + }, + { + "id": "store_geom_181", + "name": "store_geom_181", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.023" + }, + { + "id": "store_geom_182", + "name": "store_geom_182", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.024" + }, + { + "id": "store_geom_183", + "name": "store_geom_183", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.025" + }, + { + "id": "store_geom_184", + "name": "store_geom_184", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.026" + }, + { + "id": "store_geom_185", + "name": "store_geom_185", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.027" + }, + { + "id": "store_geom_186", + "name": "store_geom_186", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.028" + }, + { + "id": "store_geom_187", + "name": "store_geom_187", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.029" + }, + { + "id": "store_geom_188", + "name": "store_geom_188", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.030" + }, + { + "id": "store_geom_189", + "name": "store_geom_189", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.001" + }, + { + "id": "store_geom_190", + "name": "store_geom_190", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.002" + }, + { + "id": "store_geom_191", + "name": "store_geom_191", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.003" + }, + { + "id": "store_geom_192", + "name": "store_geom_192", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.004" + }, + { + "id": "store_geom_193", + "name": "store_geom_193", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.005" + }, + { + "id": "store_geom_194", + "name": "store_geom_194", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.006" + }, + { + "id": "store_geom_195", + "name": "store_geom_195", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.007" + }, + { + "id": "store_geom_196", + "name": "store_geom_196", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.008" + }, + { + "id": "store_geom_197", + "name": "store_geom_197", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.009" + }, + { + "id": "store_geom_198", + "name": "store_geom_198", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.010" + }, + { + "id": "store_geom_199", + "name": "store_geom_199", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.011" + }, + { + "id": "store_geom_200", + "name": "store_geom_200", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.012" + }, + { + "id": "store_geom_201", + "name": "store_geom_201", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N355.obj", + "format": "obj" + }, + "material": "store_Cans_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N355.013" + }, + { + "id": "store_geom_202", + "name": "store_geom_202", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.001" + }, + { + "id": "store_geom_203", + "name": "store_geom_203", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.002" + }, + { + "id": "store_geom_204", + "name": "store_geom_204", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.003" + }, + { + "id": "store_geom_205", + "name": "store_geom_205", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.004" + }, + { + "id": "store_geom_206", + "name": "store_geom_206", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.005" + }, + { + "id": "store_geom_207", + "name": "store_geom_207", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.006" + }, + { + "id": "store_geom_208", + "name": "store_geom_208", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.007" + }, + { + "id": "store_geom_209", + "name": "store_geom_209", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.008" + }, + { + "id": "store_geom_210", + "name": "store_geom_210", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.009" + }, + { + "id": "store_geom_211", + "name": "store_geom_211", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.010" + }, + { + "id": "store_geom_212", + "name": "store_geom_212", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.011" + }, + { + "id": "store_geom_213", + "name": "store_geom_213", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.012" + }, + { + "id": "store_geom_214", + "name": "store_geom_214", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.013" + }, + { + "id": "store_geom_215", + "name": "store_geom_215", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.014" + }, + { + "id": "store_geom_216", + "name": "store_geom_216", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.015" + }, + { + "id": "store_geom_217", + "name": "store_geom_217", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.016" + }, + { + "id": "store_geom_218", + "name": "store_geom_218", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.017" + }, + { + "id": "store_geom_219", + "name": "store_geom_219", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.018" + }, + { + "id": "store_geom_220", + "name": "store_geom_220", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.019" + }, + { + "id": "store_geom_221", + "name": "store_geom_221", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.020" + }, + { + "id": "store_geom_222", + "name": "store_geom_222", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N500.obj", + "format": "obj" + }, + "material": "store_Cans_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N500.021" + }, + { + "id": "store_geom_223", + "name": "store_geom_223", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.001" + }, + { + "id": "store_geom_224", + "name": "store_geom_224", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.002" + }, + { + "id": "store_geom_225", + "name": "store_geom_225", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.003" + }, + { + "id": "store_geom_226", + "name": "store_geom_226", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.004" + }, + { + "id": "store_geom_227", + "name": "store_geom_227", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.005" + }, + { + "id": "store_geom_228", + "name": "store_geom_228", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.006" + }, + { + "id": "store_geom_229", + "name": "store_geom_229", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.007" + }, + { + "id": "store_geom_230", + "name": "store_geom_230", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.008" + }, + { + "id": "store_geom_231", + "name": "store_geom_231", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.009" + }, + { + "id": "store_geom_232", + "name": "store_geom_232", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.010" + }, + { + "id": "store_geom_233", + "name": "store_geom_233", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.011" + }, + { + "id": "store_geom_234", + "name": "store_geom_234", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.012" + }, + { + "id": "store_geom_235", + "name": "store_geom_235", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.013" + }, + { + "id": "store_geom_236", + "name": "store_geom_236", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.014" + }, + { + "id": "store_geom_237", + "name": "store_geom_237", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.015" + }, + { + "id": "store_geom_238", + "name": "store_geom_238", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.016" + }, + { + "id": "store_geom_239", + "name": "store_geom_239", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.017" + }, + { + "id": "store_geom_240", + "name": "store_geom_240", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.018" + }, + { + "id": "store_geom_241", + "name": "store_geom_241", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.019" + }, + { + "id": "store_geom_242", + "name": "store_geom_242", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.020" + }, + { + "id": "store_geom_243", + "name": "store_geom_243", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.021" + }, + { + "id": "store_geom_244", + "name": "store_geom_244", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.022" + }, + { + "id": "store_geom_245", + "name": "store_geom_245", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.023" + }, + { + "id": "store_geom_246", + "name": "store_geom_246", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.024" + }, + { + "id": "store_geom_247", + "name": "store_geom_247", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.025" + }, + { + "id": "store_geom_248", + "name": "store_geom_248", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.026" + }, + { + "id": "store_geom_249", + "name": "store_geom_249", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.027" + }, + { + "id": "store_geom_250", + "name": "store_geom_250", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.028" + }, + { + "id": "store_geom_251", + "name": "store_geom_251", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.029" + }, + { + "id": "store_geom_252", + "name": "store_geom_252", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.030" + }, + { + "id": "store_geom_253", + "name": "store_geom_253", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.031" + }, + { + "id": "store_geom_254", + "name": "store_geom_254", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.032" + }, + { + "id": "store_geom_255", + "name": "store_geom_255", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.033" + }, + { + "id": "store_geom_256", + "name": "store_geom_256", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.034" + }, + { + "id": "store_geom_257", + "name": "store_geom_257", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.035" + }, + { + "id": "store_geom_258", + "name": "store_geom_258", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.036" + }, + { + "id": "store_geom_259", + "name": "store_geom_259", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.037" + }, + { + "id": "store_geom_260", + "name": "store_geom_260", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.038" + }, + { + "id": "store_geom_261", + "name": "store_geom_261", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.039" + }, + { + "id": "store_geom_262", + "name": "store_geom_262", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.040" + }, + { + "id": "store_geom_263", + "name": "store_geom_263", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.041" + }, + { + "id": "store_geom_264", + "name": "store_geom_264", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.042" + }, + { + "id": "store_geom_265", + "name": "store_geom_265", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.060" + }, + { + "id": "store_geom_266", + "name": "store_geom_266", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.061" + }, + { + "id": "store_geom_267", + "name": "store_geom_267", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.062" + }, + { + "id": "store_geom_268", + "name": "store_geom_268", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.063" + }, + { + "id": "store_geom_269", + "name": "store_geom_269", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.064" + }, + { + "id": "store_geom_270", + "name": "store_geom_270", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.065" + }, + { + "id": "store_geom_271", + "name": "store_geom_271", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.066" + }, + { + "id": "store_geom_272", + "name": "store_geom_272", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.067" + }, + { + "id": "store_geom_273", + "name": "store_geom_273", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.068" + }, + { + "id": "store_geom_274", + "name": "store_geom_274", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.069" + }, + { + "id": "store_geom_275", + "name": "store_geom_275", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.070" + }, + { + "id": "store_geom_276", + "name": "store_geom_276", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.071" + }, + { + "id": "store_geom_277", + "name": "store_geom_277", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.072" + }, + { + "id": "store_geom_278", + "name": "store_geom_278", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.073" + }, + { + "id": "store_geom_279", + "name": "store_geom_279", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.074" + }, + { + "id": "store_geom_280", + "name": "store_geom_280", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.075" + }, + { + "id": "store_geom_281", + "name": "store_geom_281", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.076" + }, + { + "id": "store_geom_282", + "name": "store_geom_282", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.077" + }, + { + "id": "store_geom_283", + "name": "store_geom_283", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.078" + }, + { + "id": "store_geom_284", + "name": "store_geom_284", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.079" + }, + { + "id": "store_geom_285", + "name": "store_geom_285", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.080" + }, + { + "id": "store_geom_286", + "name": "store_geom_286", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.081" + }, + { + "id": "store_geom_287", + "name": "store_geom_287", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.082" + }, + { + "id": "store_geom_288", + "name": "store_geom_288", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.001" + }, + { + "id": "store_geom_289", + "name": "store_geom_289", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.002" + }, + { + "id": "store_geom_290", + "name": "store_geom_290", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.003" + }, + { + "id": "store_geom_291", + "name": "store_geom_291", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.004" + }, + { + "id": "store_geom_292", + "name": "store_geom_292", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.005" + }, + { + "id": "store_geom_293", + "name": "store_geom_293", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.006" + }, + { + "id": "store_geom_294", + "name": "store_geom_294", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.007" + }, + { + "id": "store_geom_295", + "name": "store_geom_295", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.008" + }, + { + "id": "store_geom_296", + "name": "store_geom_296", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.009" + }, + { + "id": "store_geom_297", + "name": "store_geom_297", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.010" + }, + { + "id": "store_geom_298", + "name": "store_geom_298", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.011" + }, + { + "id": "store_geom_299", + "name": "store_geom_299", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.012" + }, + { + "id": "store_geom_300", + "name": "store_geom_300", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.013" + }, + { + "id": "store_geom_301", + "name": "store_geom_301", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.014" + }, + { + "id": "store_geom_302", + "name": "store_geom_302", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.015" + }, + { + "id": "store_geom_303", + "name": "store_geom_303", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.016" + }, + { + "id": "store_geom_304", + "name": "store_geom_304", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.017" + }, + { + "id": "store_geom_305", + "name": "store_geom_305", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.018" + }, + { + "id": "store_geom_306", + "name": "store_geom_306", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.019" + }, + { + "id": "store_geom_307", + "name": "store_geom_307", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.020" + }, + { + "id": "store_geom_308", + "name": "store_geom_308", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.021" + }, + { + "id": "store_geom_309", + "name": "store_geom_309", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.022" + }, + { + "id": "store_geom_310", + "name": "store_geom_310", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.023" + }, + { + "id": "store_geom_311", + "name": "store_geom_311", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.024" + }, + { + "id": "store_geom_312", + "name": "store_geom_312", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.025" + }, + { + "id": "store_geom_313", + "name": "store_geom_313", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.026" + }, + { + "id": "store_geom_314", + "name": "store_geom_314", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.027" + }, + { + "id": "store_geom_315", + "name": "store_geom_315", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.028" + }, + { + "id": "store_geom_316", + "name": "store_geom_316", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.029" + }, + { + "id": "store_geom_317", + "name": "store_geom_317", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.030" + }, + { + "id": "store_geom_318", + "name": "store_geom_318", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.031" + }, + { + "id": "store_geom_319", + "name": "store_geom_319", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.032" + }, + { + "id": "store_geom_320", + "name": "store_geom_320", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.033" + }, + { + "id": "store_geom_321", + "name": "store_geom_321", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.034" + }, + { + "id": "store_geom_322", + "name": "store_geom_322", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.035" + }, + { + "id": "store_geom_323", + "name": "store_geom_323", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.036" + }, + { + "id": "store_geom_324", + "name": "store_geom_324", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.037" + }, + { + "id": "store_geom_325", + "name": "store_geom_325", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.038" + }, + { + "id": "store_geom_326", + "name": "store_geom_326", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.039" + }, + { + "id": "store_geom_327", + "name": "store_geom_327", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.040" + }, + { + "id": "store_geom_328", + "name": "store_geom_328", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.041" + }, + { + "id": "store_geom_329", + "name": "store_geom_329", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.042" + }, + { + "id": "store_geom_330", + "name": "store_geom_330", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.043" + }, + { + "id": "store_geom_331", + "name": "store_geom_331", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.044" + }, + { + "id": "store_geom_332", + "name": "store_geom_332", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.045" + }, + { + "id": "store_geom_333", + "name": "store_geom_333", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.046" + }, + { + "id": "store_geom_334", + "name": "store_geom_334", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.047" + }, + { + "id": "store_geom_335", + "name": "store_geom_335", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.048" + }, + { + "id": "store_geom_336", + "name": "store_geom_336", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.049" + }, + { + "id": "store_geom_337", + "name": "store_geom_337", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.050" + }, + { + "id": "store_geom_338", + "name": "store_geom_338", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.051" + }, + { + "id": "store_geom_339", + "name": "store_geom_339", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.052" + }, + { + "id": "store_geom_340", + "name": "store_geom_340", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.053" + }, + { + "id": "store_geom_341", + "name": "store_geom_341", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.054" + }, + { + "id": "store_geom_342", + "name": "store_geom_342", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.055" + }, + { + "id": "store_geom_343", + "name": "store_geom_343", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.056" + }, + { + "id": "store_geom_344", + "name": "store_geom_344", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.057" + }, + { + "id": "store_geom_345", + "name": "store_geom_345", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.058" + }, + { + "id": "store_geom_346", + "name": "store_geom_346", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.059" + }, + { + "id": "store_geom_347", + "name": "store_geom_347", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.060" + }, + { + "id": "store_geom_348", + "name": "store_geom_348", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.061" + }, + { + "id": "store_geom_349", + "name": "store_geom_349", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.062" + }, + { + "id": "store_geom_350", + "name": "store_geom_350", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.063" + }, + { + "id": "store_geom_351", + "name": "store_geom_351", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.064" + }, + { + "id": "store_geom_352", + "name": "store_geom_352", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.001" + }, + { + "id": "store_geom_353", + "name": "store_geom_353", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.002" + }, + { + "id": "store_geom_354", + "name": "store_geom_354", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.003" + }, + { + "id": "store_geom_355", + "name": "store_geom_355", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.004" + }, + { + "id": "store_geom_356", + "name": "store_geom_356", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.005" + }, + { + "id": "store_geom_357", + "name": "store_geom_357", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.006" + }, + { + "id": "store_geom_358", + "name": "store_geom_358", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.007" + }, + { + "id": "store_geom_359", + "name": "store_geom_359", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.008" + }, + { + "id": "store_geom_360", + "name": "store_geom_360", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.009" + }, + { + "id": "store_geom_361", + "name": "store_geom_361", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.010" + }, + { + "id": "store_geom_362", + "name": "store_geom_362", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.011" + }, + { + "id": "store_geom_363", + "name": "store_geom_363", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.012" + }, + { + "id": "store_geom_364", + "name": "store_geom_364", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.013" + }, + { + "id": "store_geom_365", + "name": "store_geom_365", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.014" + }, + { + "id": "store_geom_366", + "name": "store_geom_366", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.015" + }, + { + "id": "store_geom_367", + "name": "store_geom_367", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.016" + }, + { + "id": "store_geom_368", + "name": "store_geom_368", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.017" + }, + { + "id": "store_geom_369", + "name": "store_geom_369", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.018" + }, + { + "id": "store_geom_370", + "name": "store_geom_370", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.019" + }, + { + "id": "store_geom_371", + "name": "store_geom_371", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.020" + }, + { + "id": "store_geom_372", + "name": "store_geom_372", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.021" + }, + { + "id": "store_geom_373", + "name": "store_geom_373", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.022" + }, + { + "id": "store_geom_374", + "name": "store_geom_374", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.023" + }, + { + "id": "store_geom_375", + "name": "store_geom_375", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.024" + }, + { + "id": "store_geom_376", + "name": "store_geom_376", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.025" + }, + { + "id": "store_geom_377", + "name": "store_geom_377", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.026" + }, + { + "id": "store_geom_378", + "name": "store_geom_378", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.027" + }, + { + "id": "store_geom_379", + "name": "store_geom_379", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.028" + }, + { + "id": "store_geom_380", + "name": "store_geom_380", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.029" + }, + { + "id": "store_geom_381", + "name": "store_geom_381", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.030" + }, + { + "id": "store_geom_382", + "name": "store_geom_382", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.031" + }, + { + "id": "store_geom_383", + "name": "store_geom_383", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.032" + }, + { + "id": "store_geom_384", + "name": "store_geom_384", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.033" + }, + { + "id": "store_geom_385", + "name": "store_geom_385", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.034" + }, + { + "id": "store_geom_386", + "name": "store_geom_386", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.035" + }, + { + "id": "store_geom_387", + "name": "store_geom_387", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.036" + }, + { + "id": "store_geom_388", + "name": "store_geom_388", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.037" + }, + { + "id": "store_geom_389", + "name": "store_geom_389", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.038" + }, + { + "id": "store_geom_390", + "name": "store_geom_390", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.039" + }, + { + "id": "store_geom_391", + "name": "store_geom_391", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.040" + }, + { + "id": "store_geom_392", + "name": "store_geom_392", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.041" + }, + { + "id": "store_geom_393", + "name": "store_geom_393", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.042" + }, + { + "id": "store_geom_394", + "name": "store_geom_394", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.043" + }, + { + "id": "store_geom_395", + "name": "store_geom_395", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.044" + }, + { + "id": "store_geom_396", + "name": "store_geom_396", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.045" + }, + { + "id": "store_geom_397", + "name": "store_geom_397", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.046" + }, + { + "id": "store_geom_398", + "name": "store_geom_398", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.047" + }, + { + "id": "store_geom_399", + "name": "store_geom_399", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.048" + }, + { + "id": "store_geom_400", + "name": "store_geom_400", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.049" + }, + { + "id": "store_geom_401", + "name": "store_geom_401", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.050" + }, + { + "id": "store_geom_402", + "name": "store_geom_402", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.051" + }, + { + "id": "store_geom_403", + "name": "store_geom_403", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.052" + }, + { + "id": "store_geom_404", + "name": "store_geom_404", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.053" + }, + { + "id": "store_geom_405", + "name": "store_geom_405", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.054" + }, + { + "id": "store_geom_406", + "name": "store_geom_406", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.055" + }, + { + "id": "store_geom_407", + "name": "store_geom_407", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.001" + }, + { + "id": "store_geom_408", + "name": "store_geom_408", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.002" + }, + { + "id": "store_geom_409", + "name": "store_geom_409", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.003" + }, + { + "id": "store_geom_410", + "name": "store_geom_410", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.004" + }, + { + "id": "store_geom_411", + "name": "store_geom_411", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.005" + }, + { + "id": "store_geom_412", + "name": "store_geom_412", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.006" + }, + { + "id": "store_geom_413", + "name": "store_geom_413", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.007" + }, + { + "id": "store_geom_414", + "name": "store_geom_414", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.008" + }, + { + "id": "store_geom_415", + "name": "store_geom_415", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.009" + }, + { + "id": "store_geom_416", + "name": "store_geom_416", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.010" + }, + { + "id": "store_geom_417", + "name": "store_geom_417", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.011" + }, + { + "id": "store_geom_418", + "name": "store_geom_418", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.012" + }, + { + "id": "store_geom_419", + "name": "store_geom_419", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.013" + }, + { + "id": "store_geom_420", + "name": "store_geom_420", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.014" + }, + { + "id": "store_geom_421", + "name": "store_geom_421", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.015" + }, + { + "id": "store_geom_422", + "name": "store_geom_422", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.016" + }, + { + "id": "store_geom_423", + "name": "store_geom_423", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.017" + }, + { + "id": "store_geom_424", + "name": "store_geom_424", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.018" + }, + { + "id": "store_geom_425", + "name": "store_geom_425", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.019" + }, + { + "id": "store_geom_426", + "name": "store_geom_426", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.020" + }, + { + "id": "store_geom_427", + "name": "store_geom_427", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.021" + }, + { + "id": "store_geom_428", + "name": "store_geom_428", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.001" + }, + { + "id": "store_geom_429", + "name": "store_geom_429", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.002" + }, + { + "id": "store_geom_430", + "name": "store_geom_430", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.003" + }, + { + "id": "store_geom_431", + "name": "store_geom_431", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.004" + }, + { + "id": "store_geom_432", + "name": "store_geom_432", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.005" + }, + { + "id": "store_geom_433", + "name": "store_geom_433", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.006" + }, + { + "id": "store_geom_434", + "name": "store_geom_434", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.007" + }, + { + "id": "store_geom_435", + "name": "store_geom_435", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.008" + }, + { + "id": "store_geom_436", + "name": "store_geom_436", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.009" + }, + { + "id": "store_geom_437", + "name": "store_geom_437", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.010" + }, + { + "id": "store_geom_438", + "name": "store_geom_438", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.011" + }, + { + "id": "store_geom_439", + "name": "store_geom_439", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.012" + }, + { + "id": "store_geom_440", + "name": "store_geom_440", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.013" + }, + { + "id": "store_geom_441", + "name": "store_geom_441", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.014" + }, + { + "id": "store_geom_442", + "name": "store_geom_442", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.015" + }, + { + "id": "store_geom_443", + "name": "store_geom_443", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.016" + }, + { + "id": "store_geom_444", + "name": "store_geom_444", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.017" + }, + { + "id": "store_geom_445", + "name": "store_geom_445", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.018" + }, + { + "id": "store_geom_446", + "name": "store_geom_446", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.019" + }, + { + "id": "store_geom_447", + "name": "store_geom_447", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.020" + }, + { + "id": "store_geom_448", + "name": "store_geom_448", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.021" + }, + { + "id": "store_geom_449", + "name": "store_geom_449", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.028" + }, + { + "id": "store_geom_450", + "name": "store_geom_450", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.029" + }, + { + "id": "store_geom_451", + "name": "store_geom_451", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.030" + }, + { + "id": "store_geom_452", + "name": "store_geom_452", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.031" + }, + { + "id": "store_geom_453", + "name": "store_geom_453", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.032" + }, + { + "id": "store_geom_454", + "name": "store_geom_454", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.066" + }, + { + "id": "store_geom_455", + "name": "store_geom_455", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.067" + }, + { + "id": "store_geom_456", + "name": "store_geom_456", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.068" + }, + { + "id": "store_geom_457", + "name": "store_geom_457", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.069" + }, + { + "id": "store_geom_458", + "name": "store_geom_458", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.070" + }, + { + "id": "store_geom_459", + "name": "store_geom_459", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.071" + }, + { + "id": "store_geom_460", + "name": "store_geom_460", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.072" + }, + { + "id": "store_geom_461", + "name": "store_geom_461", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.073" + }, + { + "id": "store_geom_462", + "name": "store_geom_462", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.074" + }, + { + "id": "store_geom_463", + "name": "store_geom_463", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.075" + }, + { + "id": "store_geom_464", + "name": "store_geom_464", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.076" + }, + { + "id": "store_geom_465", + "name": "store_geom_465", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.077" + }, + { + "id": "store_geom_466", + "name": "store_geom_466", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.078" + }, + { + "id": "store_geom_467", + "name": "store_geom_467", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.079" + }, + { + "id": "store_geom_468", + "name": "store_geom_468", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.080" + }, + { + "id": "store_geom_469", + "name": "store_geom_469", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.081" + }, + { + "id": "store_geom_470", + "name": "store_geom_470", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.082" + }, + { + "id": "store_geom_471", + "name": "store_geom_471", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_350.obj", + "format": "obj" + }, + "material": "store_Bottle_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_350.083" + }, + { + "id": "store_geom_472", + "name": "store_geom_472", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.017" + }, + { + "id": "store_geom_473", + "name": "store_geom_473", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.018" + }, + { + "id": "store_geom_474", + "name": "store_geom_474", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.019" + }, + { + "id": "store_geom_475", + "name": "store_geom_475", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.020" + }, + { + "id": "store_geom_476", + "name": "store_geom_476", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.021" + }, + { + "id": "store_geom_477", + "name": "store_geom_477", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.022" + }, + { + "id": "store_geom_478", + "name": "store_geom_478", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_360.obj", + "format": "obj" + }, + "material": "store_Bottle_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_360.023" + }, + { + "id": "store_geom_479", + "name": "store_geom_479", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.001" + }, + { + "id": "store_geom_480", + "name": "store_geom_480", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.002" + }, + { + "id": "store_geom_481", + "name": "store_geom_481", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.003" + }, + { + "id": "store_geom_482", + "name": "store_geom_482", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.004" + }, + { + "id": "store_geom_483", + "name": "store_geom_483", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.005" + }, + { + "id": "store_geom_484", + "name": "store_geom_484", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.006" + }, + { + "id": "store_geom_485", + "name": "store_geom_485", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.007" + }, + { + "id": "store_geom_486", + "name": "store_geom_486", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.008" + }, + { + "id": "store_geom_487", + "name": "store_geom_487", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Bottle_600.obj", + "format": "obj" + }, + "material": "store_Bottle_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Bottle_600.009" + }, + { + "id": "store_geom_488", + "name": "store_geom_488", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.016" + }, + { + "id": "store_geom_489", + "name": "store_geom_489", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.017" + }, + { + "id": "store_geom_490", + "name": "store_geom_490", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.018" + }, + { + "id": "store_geom_491", + "name": "store_geom_491", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.019" + }, + { + "id": "store_geom_492", + "name": "store_geom_492", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.020" + }, + { + "id": "store_geom_493", + "name": "store_geom_493", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.021" + }, + { + "id": "store_geom_494", + "name": "store_geom_494", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_N330.obj", + "format": "obj" + }, + "material": "store_Cans_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_N330.022" + }, + { + "id": "store_geom_495", + "name": "store_geom_495", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.043" + }, + { + "id": "store_geom_496", + "name": "store_geom_496", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.044" + }, + { + "id": "store_geom_497", + "name": "store_geom_497", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.045" + }, + { + "id": "store_geom_498", + "name": "store_geom_498", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.046" + }, + { + "id": "store_geom_499", + "name": "store_geom_499", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.047" + }, + { + "id": "store_geom_500", + "name": "store_geom_500", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.048" + }, + { + "id": "store_geom_501", + "name": "store_geom_501", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.049" + }, + { + "id": "store_geom_502", + "name": "store_geom_502", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.050" + }, + { + "id": "store_geom_503", + "name": "store_geom_503", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.051" + }, + { + "id": "store_geom_504", + "name": "store_geom_504", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.052" + }, + { + "id": "store_geom_505", + "name": "store_geom_505", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.053" + }, + { + "id": "store_geom_506", + "name": "store_geom_506", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.054" + }, + { + "id": "store_geom_507", + "name": "store_geom_507", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.055" + }, + { + "id": "store_geom_508", + "name": "store_geom_508", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.056" + }, + { + "id": "store_geom_509", + "name": "store_geom_509", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.057" + }, + { + "id": "store_geom_510", + "name": "store_geom_510", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.058" + }, + { + "id": "store_geom_511", + "name": "store_geom_511", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.059" + }, + { + "id": "store_geom_512", + "name": "store_geom_512", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.083" + }, + { + "id": "store_geom_513", + "name": "store_geom_513", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.084" + }, + { + "id": "store_geom_514", + "name": "store_geom_514", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.085" + }, + { + "id": "store_geom_515", + "name": "store_geom_515", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.086" + }, + { + "id": "store_geom_516", + "name": "store_geom_516", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.087" + }, + { + "id": "store_geom_517", + "name": "store_geom_517", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.088" + }, + { + "id": "store_geom_518", + "name": "store_geom_518", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S250.obj", + "format": "obj" + }, + "material": "store_Cans_E", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S250.089" + }, + { + "id": "store_geom_519", + "name": "store_geom_519", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.001" + }, + { + "id": "store_geom_520", + "name": "store_geom_520", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.002" + }, + { + "id": "store_geom_521", + "name": "store_geom_521", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.003" + }, + { + "id": "store_geom_522", + "name": "store_geom_522", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.004" + }, + { + "id": "store_geom_523", + "name": "store_geom_523", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.005" + }, + { + "id": "store_geom_524", + "name": "store_geom_524", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.006" + }, + { + "id": "store_geom_525", + "name": "store_geom_525", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.007" + }, + { + "id": "store_geom_526", + "name": "store_geom_526", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.008" + }, + { + "id": "store_geom_527", + "name": "store_geom_527", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.009" + }, + { + "id": "store_geom_528", + "name": "store_geom_528", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.010" + }, + { + "id": "store_geom_529", + "name": "store_geom_529", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.011" + }, + { + "id": "store_geom_530", + "name": "store_geom_530", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.012" + }, + { + "id": "store_geom_531", + "name": "store_geom_531", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.013" + }, + { + "id": "store_geom_532", + "name": "store_geom_532", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Cans_S355.obj", + "format": "obj" + }, + "material": "store_Cans_G", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Cans_S355.014" + }, + { + "id": "store_geom_533", + "name": "store_geom_533", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.065" + }, + { + "id": "store_geom_534", + "name": "store_geom_534", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.066" + }, + { + "id": "store_geom_535", + "name": "store_geom_535", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.067" + }, + { + "id": "store_geom_536", + "name": "store_geom_536", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.068" + }, + { + "id": "store_geom_537", + "name": "store_geom_537", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.069" + }, + { + "id": "store_geom_538", + "name": "store_geom_538", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.070" + }, + { + "id": "store_geom_539", + "name": "store_geom_539", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.071" + }, + { + "id": "store_geom_540", + "name": "store_geom_540", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.072" + }, + { + "id": "store_geom_541", + "name": "store_geom_541", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.073" + }, + { + "id": "store_geom_542", + "name": "store_geom_542", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.074" + }, + { + "id": "store_geom_543", + "name": "store_geom_543", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.075" + }, + { + "id": "store_geom_544", + "name": "store_geom_544", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_F.obj", + "format": "obj" + }, + "material": "store_Tetra_A", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_F.076" + }, + { + "id": "store_geom_545", + "name": "store_geom_545", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.056" + }, + { + "id": "store_geom_546", + "name": "store_geom_546", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.057" + }, + { + "id": "store_geom_547", + "name": "store_geom_547", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.058" + }, + { + "id": "store_geom_548", + "name": "store_geom_548", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.059" + }, + { + "id": "store_geom_549", + "name": "store_geom_549", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.060" + }, + { + "id": "store_geom_550", + "name": "store_geom_550", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.061" + }, + { + "id": "store_geom_551", + "name": "store_geom_551", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.062" + }, + { + "id": "store_geom_552", + "name": "store_geom_552", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.063" + }, + { + "id": "store_geom_553", + "name": "store_geom_553", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.064" + }, + { + "id": "store_geom_554", + "name": "store_geom_554", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.065" + }, + { + "id": "store_geom_555", + "name": "store_geom_555", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.066" + }, + { + "id": "store_geom_556", + "name": "store_geom_556", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_250_T.obj", + "format": "obj" + }, + "material": "store_Tetra_B", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_250_T.067" + }, + { + "id": "store_geom_557", + "name": "store_geom_557", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.022" + }, + { + "id": "store_geom_558", + "name": "store_geom_558", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.023" + }, + { + "id": "store_geom_559", + "name": "store_geom_559", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.024" + }, + { + "id": "store_geom_560", + "name": "store_geom_560", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.025" + }, + { + "id": "store_geom_561", + "name": "store_geom_561", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.026" + }, + { + "id": "store_geom_562", + "name": "store_geom_562", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_300.obj", + "format": "obj" + }, + "material": "store_Tetra_C", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_300.027" + }, + { + "id": "store_geom_563", + "name": "store_geom_563", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.022" + }, + { + "id": "store_geom_564", + "name": "store_geom_564", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.023" + }, + { + "id": "store_geom_565", + "name": "store_geom_565", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.024" + }, + { + "id": "store_geom_566", + "name": "store_geom_566", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.025" + }, + { + "id": "store_geom_567", + "name": "store_geom_567", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.026" + }, + { + "id": "store_geom_568", + "name": "store_geom_568", + "geometry": { + "kind": "mesh", + "url": "http://127.0.0.1:18085/assets/assets/V_Tetra_500.obj", + "format": "obj" + }, + "material": "store_Tetra_D", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true, + "body": "Tetra_500.027" + }, + { + "id": "store_floor", + "name": "store_floor", + "geometry": { + "kind": "primitive", + "primitive": "plane", + "size": [ + 0, + 0, + 0 + ] + }, + "material": "store_groundplane", + "pose": { + "position": [ + 0, + 0, + 0 + ], + "quaternion": [ + 0, + 0, + 0, + 1 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_cube_red", + "name": "demo_cube_red", + "geometry": { + "kind": "primitive", + "primitive": "box", + "size": [ + 0.12, + 0.12, + 0.12 + ] + }, + "material": "demo_red", + "pose": { + "position": [ + 0.85, + -0.45, + 0.06 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_cube_blue", + "name": "demo_cube_blue", + "geometry": { + "kind": "primitive", + "primitive": "box", + "size": [ + 0.1, + 0.16, + 0.09 + ] + }, + "material": "demo_blue", + "pose": { + "position": [ + 1.05, + -0.28, + 0.05 + ], + "euler": [ + 0, + 0, + 0.4 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_ball_green", + "name": "demo_ball_green", + "geometry": { + "kind": "primitive", + "primitive": "sphere", + "radius": 0.075 + }, + "material": "demo_green", + "pose": { + "position": [ + 0.65, + -0.22, + 0.08 + ] + }, + "castShadow": true, + "receiveShadow": true + }, + { + "id": "demo_capsule_yellow", + "name": "demo_capsule_yellow", + "geometry": { + "kind": "primitive", + "primitive": "capsule", + "radius": 0.035, + "length": 0.22 + }, + "material": "demo_yellow", + "pose": { + "position": [ + 1.2, + -0.55, + 0.08 + ], + "euler": [ + 0, + 1.5708, + 0.25 + ] + }, + "castShadow": true, + "receiveShadow": true + } + ], + "lights": [ + { + "type": "hemisphere", + "color": "#dbeafe", + "intensity": 0.65 + }, + { + "type": "directional", + "color": "#ffffff", + "intensity": 2.2, + "position": [ + 4, + -5, + 7 + ] + } + ], + "camera": { + "position": [ + 3.4, + -4.4, + 2.2 + ], + "target": [ + 0.35, + 0.55, + 0.9 + ], + "fov": 46 + }, + "state": { + "mode": "poll", + "url": "http://127.0.0.1:18087/state", + "controlUrl": "http://127.0.0.1:18087/control", + "pollIntervalMs": 50 + }, + "controls": { + "joints": [ + { + "name": "left_hip_pitch_joint", + "index": 0, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "left_hip_roll_joint", + "index": 1, + "range": [ + -0.5235999822616577, + 2.967099905014038 + ], + "value": 0 + }, + { + "name": "left_hip_yaw_joint", + "index": 2, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "value": 0 + }, + { + "name": "left_knee_joint", + "index": 3, + "range": [ + -0.08726699650287628, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "left_ankle_pitch_joint", + "index": 4, + "range": [ + -0.8726699948310852, + 0.5235999822616577 + ], + "value": 0 + }, + { + "name": "left_ankle_roll_joint", + "index": 5, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "value": 0 + }, + { + "name": "right_hip_pitch_joint", + "index": 6, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "right_hip_roll_joint", + "index": 7, + "range": [ + -0.5235999822616577, + 2.967099905014038 + ], + "value": 0 + }, + { + "name": "right_hip_yaw_joint", + "index": 8, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "value": 0 + }, + { + "name": "right_knee_joint", + "index": 9, + "range": [ + -0.08726699650287628, + 2.8798000812530518 + ], + "value": 0 + }, + { + "name": "right_ankle_pitch_joint", + "index": 10, + "range": [ + -0.8726699948310852, + 0.5235999822616577 + ], + "value": 0 + }, + { + "name": "right_ankle_roll_joint", + "index": 11, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "value": 0 + }, + { + "name": "waist_yaw_joint", + "index": 12, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "waist_roll_joint", + "index": 13, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "value": 0 + }, + { + "name": "waist_pitch_joint", + "index": 14, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "value": 0 + }, + { + "name": "left_shoulder_pitch_joint", + "index": 15, + "range": [ + -3.089200019836426, + 2.6703999042510986 + ], + "value": 0 + }, + { + "name": "left_shoulder_roll_joint", + "index": 16, + "range": [ + -1.5881999731063843, + 2.251499891281128 + ], + "value": 0 + }, + { + "name": "left_shoulder_yaw_joint", + "index": 17, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "left_elbow_joint", + "index": 18, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "value": 0 + }, + { + "name": "left_wrist_roll_joint", + "index": 19, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "value": 0 + }, + { + "name": "left_wrist_pitch_joint", + "index": 20, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "left_wrist_yaw_joint", + "index": 21, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "right_shoulder_pitch_joint", + "index": 22, + "range": [ + -3.089200019836426, + 2.6703999042510986 + ], + "value": 0 + }, + { + "name": "right_shoulder_roll_joint", + "index": 23, + "range": [ + -2.251499891281128, + 1.5881999731063843 + ], + "value": 0 + }, + { + "name": "right_shoulder_yaw_joint", + "index": 24, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "value": 0 + }, + { + "name": "right_elbow_joint", + "index": 25, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "value": 0 + }, + { + "name": "right_wrist_roll_joint", + "index": 26, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "value": 0 + }, + { + "name": "right_wrist_pitch_joint", + "index": 27, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + }, + { + "name": "right_wrist_yaw_joint", + "index": 28, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "value": 0 + } + ], + "actuators": [ + { + "name": "left_hip_pitch_joint", + "index": 0, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "targetName": "left_hip_pitch_joint", + "value": -0.31200000643730164 + }, + { + "name": "left_hip_roll_joint", + "index": 1, + "range": [ + -0.5235998630523682, + 2.967099905014038 + ], + "targetName": "left_hip_roll_joint", + "value": 0 + }, + { + "name": "left_hip_yaw_joint", + "index": 2, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "targetName": "left_hip_yaw_joint", + "value": 0 + }, + { + "name": "left_knee_joint", + "index": 3, + "range": [ + -0.08726692199707031, + 2.8798000812530518 + ], + "targetName": "left_knee_joint", + "value": 0.6690000295639038 + }, + { + "name": "left_ankle_pitch_joint", + "index": 4, + "range": [ + -0.87267005443573, + 0.5235999822616577 + ], + "targetName": "left_ankle_pitch_joint", + "value": -0.3630000054836273 + }, + { + "name": "left_ankle_roll_joint", + "index": 5, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "targetName": "left_ankle_roll_joint", + "value": 0 + }, + { + "name": "right_hip_pitch_joint", + "index": 6, + "range": [ + -2.5306999683380127, + 2.8798000812530518 + ], + "targetName": "right_hip_pitch_joint", + "value": -0.31200000643730164 + }, + { + "name": "right_hip_roll_joint", + "index": 7, + "range": [ + -0.5235998630523682, + 2.967099905014038 + ], + "targetName": "right_hip_roll_joint", + "value": 0 + }, + { + "name": "right_hip_yaw_joint", + "index": 8, + "range": [ + -2.7576000690460205, + 2.7576000690460205 + ], + "targetName": "right_hip_yaw_joint", + "value": 0 + }, + { + "name": "right_knee_joint", + "index": 9, + "range": [ + -0.08726692199707031, + 2.8798000812530518 + ], + "targetName": "right_knee_joint", + "value": 0.6690000295639038 + }, + { + "name": "right_ankle_pitch_joint", + "index": 10, + "range": [ + -0.87267005443573, + 0.5235999822616577 + ], + "targetName": "right_ankle_pitch_joint", + "value": -0.3630000054836273 + }, + { + "name": "right_ankle_roll_joint", + "index": 11, + "range": [ + -0.26179999113082886, + 0.26179999113082886 + ], + "targetName": "right_ankle_roll_joint", + "value": 0 + }, + { + "name": "waist_yaw_joint", + "index": 12, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "waist_yaw_joint", + "value": 0 + }, + { + "name": "waist_roll_joint", + "index": 13, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "targetName": "waist_roll_joint", + "value": 0 + }, + { + "name": "waist_pitch_joint", + "index": 14, + "range": [ + -0.5199999809265137, + 0.5199999809265137 + ], + "targetName": "waist_pitch_joint", + "value": 0.0729999989271164 + }, + { + "name": "left_shoulder_pitch_joint", + "index": 15, + "range": [ + -3.089200019836426, + 2.6703996658325195 + ], + "targetName": "left_shoulder_pitch_joint", + "value": 0.20000000298023224 + }, + { + "name": "left_shoulder_roll_joint", + "index": 16, + "range": [ + -1.5881998538970947, + 2.251499891281128 + ], + "targetName": "left_shoulder_roll_joint", + "value": 0.20000000298023224 + }, + { + "name": "left_shoulder_yaw_joint", + "index": 17, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "left_shoulder_yaw_joint", + "value": 0 + }, + { + "name": "left_elbow_joint", + "index": 18, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "targetName": "left_elbow_joint", + "value": 0.6000000238418579 + }, + { + "name": "left_wrist_roll_joint", + "index": 19, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "targetName": "left_wrist_roll_joint", + "value": 0 + }, + { + "name": "left_wrist_pitch_joint", + "index": 20, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "left_wrist_pitch_joint", + "value": 0 + }, + { + "name": "left_wrist_yaw_joint", + "index": 21, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "left_wrist_yaw_joint", + "value": 0 + }, + { + "name": "right_shoulder_pitch_joint", + "index": 22, + "range": [ + -3.089200019836426, + 2.6703996658325195 + ], + "targetName": "right_shoulder_pitch_joint", + "value": 0.20000000298023224 + }, + { + "name": "right_shoulder_roll_joint", + "index": 23, + "range": [ + -2.251499891281128, + 1.5881998538970947 + ], + "targetName": "right_shoulder_roll_joint", + "value": -0.20000000298023224 + }, + { + "name": "right_shoulder_yaw_joint", + "index": 24, + "range": [ + -2.618000030517578, + 2.618000030517578 + ], + "targetName": "right_shoulder_yaw_joint", + "value": 0 + }, + { + "name": "right_elbow_joint", + "index": 25, + "range": [ + -1.0471999645233154, + 2.094399929046631 + ], + "targetName": "right_elbow_joint", + "value": 0.6000000238418579 + }, + { + "name": "right_wrist_roll_joint", + "index": 26, + "range": [ + -1.9722199440002441, + 1.9722199440002441 + ], + "targetName": "right_wrist_roll_joint", + "value": 0 + }, + { + "name": "right_wrist_pitch_joint", + "index": 27, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "right_wrist_pitch_joint", + "value": 0 + }, + { + "name": "right_wrist_yaw_joint", + "index": 28, + "range": [ + -1.6144299507141113, + 1.6144299507141113 + ], + "targetName": "right_wrist_yaw_joint", + "value": 0 + } + ], + "keyboard": { + "source": "MotrixSim RenderApp examples", + "command": { + "forward": [ + "w", + "up" + ], + "backward": [ + "s", + "down" + ], + "strafeLeft": [ + "left" + ], + "strafeRight": [ + "right" + ], + "yawLeft": [ + "a" + ], + "yawRight": [ + "d" + ] + }, + "camera": { + "rotate": "left mouse drag", + "pan": "right mouse drag", + "zoom": "mouse wheel", + "focusMarker": true + } + } + }, + "composite": { + "type": "visual-manifest-merge", + "sources": [ + "http://127.0.0.1:18087/manifest", + "http://127.0.0.1:18085/manifest" + ], + "note": "Store and demo objects are visual/static; G1 state/control comes from 18087." + } +} diff --git a/public/samples/assets/pyramid.obj b/public/samples/assets/pyramid.obj new file mode 100644 index 0000000..a4754bd --- /dev/null +++ b/public/samples/assets/pyramid.obj @@ -0,0 +1,12 @@ +o unknown_mesh_marker +v 0.000 0.000 0.700 +v -0.600 -0.600 0.000 +v 0.600 -0.600 0.000 +v 0.600 0.600 0.000 +v -0.600 0.600 0.000 +f 1 2 3 +f 1 3 4 +f 1 4 5 +f 1 5 2 +f 2 5 4 3 + diff --git a/public/samples/universal-demo-state.json b/public/samples/universal-demo-state.json new file mode 100644 index 0000000..43252b7 --- /dev/null +++ b/public/samples/universal-demo-state.json @@ -0,0 +1,18 @@ +{ + "frames": [ + { "step": 0, "time": 0.00, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 4.98], "quat": [0, 0, 0, 1] } } }, + { "step": 20, "time": 0.16, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 4.22], "quat": [0, 0, 0.02, 0.9998] } } }, + { "step": 40, "time": 0.32, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 3.02], "quat": [0, 0, 0.04, 0.9992] } } }, + { "step": 60, "time": 0.48, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 1.42], "quat": [0, 0, 0.06, 0.9982] } } }, + { "step": 80, "time": 0.64, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.52], "quat": [0, 0, 0.08, 0.9968] } } }, + { "step": 100, "time": 0.80, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.70], "quat": [0, 0, 0.10, 0.9950] } } }, + { "step": 120, "time": 0.96, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.50], "quat": [0, 0, 0.12, 0.9928] } } }, + { "step": 140, "time": 1.12, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.50], "quat": [0, 0, 0.14, 0.9902] } } }, + { "step": 160, "time": 1.28, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 4.95], "quat": [0, 0, 0.16, 0.9871] } } }, + { "step": 180, "time": 1.44, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 3.78], "quat": [0, 0, 0.18, 0.9837] } } }, + { "step": 200, "time": 1.60, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 2.18], "quat": [0, 0, 0.20, 0.9798] } } }, + { "step": 220, "time": 1.76, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.66], "quat": [0, 0, 0.22, 0.9755] } } }, + { "step": 240, "time": 1.92, "bodies": { "_unnamed_link_0": { "pos": [0, 0, 0.50], "quat": [0, 0, 0.24, 0.9708] } } } + ] +} + diff --git a/public/samples/universal-demo.manifest.json b/public/samples/universal-demo.manifest.json new file mode 100644 index 0000000..43f9ddb --- /dev/null +++ b/public/samples/universal-demo.manifest.json @@ -0,0 +1,73 @@ +{ + "version": "0.1", + "name": "Universal Three.js Preview Demo", + "description": "Motrix-style Z-up scene manifest with primitives, mesh loading, and replayed body state.", + "units": "m", + "coordinateSystem": { "up": "Z", "handedness": "right" }, + "materials": [ + { "id": "floor", "color": "#263449", "roughness": 0.92 }, + { "id": "ball", "color": "#4f8cff", "roughness": 0.36, "metalness": 0.05 }, + { "id": "capsule", "color": "#f59e0b", "roughness": 0.48 }, + { "id": "mesh", "color": "#a7f3d0", "roughness": 0.62 }, + { "id": "fallback", "color": "#fb7185", "wireframe": true } + ], + "objects": [ + { + "id": "floor", + "name": "factory_floor", + "geometry": { "kind": "primitive", "primitive": "box", "size": [9, 9, 0.08] }, + "pose": { "position": [0, 0, -0.04] }, + "material": "floor", + "receiveShadow": true + }, + { + "id": "falling_ball", + "name": "MotrixSim falling ball body", + "body": "_unnamed_link_0", + "geometry": { "kind": "primitive", "primitive": "sphere", "radius": 0.5, "segments": 48 }, + "material": "ball", + "castShadow": true + }, + { + "id": "capsule_demo", + "name": "capsule primitive support", + "geometry": { "kind": "primitive", "primitive": "capsule", "radius": 0.22, "length": 1.4, "segments": 24 }, + "pose": { "position": [-2.8, 1.6, 0.75], "quaternion": [0, 0, 0, 1] }, + "material": "capsule", + "castShadow": true + }, + { + "id": "obj_mesh_demo", + "name": "OBJ mesh asset support", + "geometry": { "kind": "mesh", "url": "/samples/assets/pyramid.obj", "format": "obj" }, + "pose": { "position": [2.6, -1.8, 0.02], "scale": [1.1, 1.1, 1.1] }, + "material": "mesh", + "castShadow": true + }, + { + "id": "axes", + "name": "scene axes", + "geometry": { "kind": "primitive", "primitive": "axes", "size": [1.4, 1.4, 1.4] }, + "pose": { "position": [-4.1, -4.1, 0.03] } + } + ], + "lights": [ + { "type": "hemisphere", "color": "#dbeafe", "intensity": 0.65 }, + { "type": "directional", "color": "#ffffff", "intensity": 2.4, "position": [4, -6, 7] }, + { "type": "ambient", "color": "#9fb4d1", "intensity": 0.22 } + ], + "camera": { + "position": [5.5, -7.2, 4.6], + "target": [0, 0, 1.2], + "fov": 46, + "near": 0.05, + "far": 200 + }, + "state": { + "mode": "replay", + "url": "/samples/universal-demo-state.json", + "fps": 12, + "loop": true + } +} + diff --git a/research-tests/2026-06-22-motrixsim-web-preview/README.md b/research-tests/2026-06-22-motrixsim-web-preview/README.md new file mode 100644 index 0000000..f43968d --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/README.md @@ -0,0 +1,49 @@ +# MotrixSim Web Preview Research Test + +This folder contains the 2026-06-22 investigation for MotrixSim Web preview architecture. + +## Reports + +- `research-report.md`: test evidence and implementation recommendation. +- `comparison-report.md`: WASM vs backend streaming comparison. +- `motrixsim-operation-consistency-report.md`: MotrixSim-style keyboard, mouse camera, actuator, pause/reset operation verification. +- `evidence/`: latest Go2 and Franka screenshots plus JSON evidence for MotrixSim operation consistency. +- `figures/real-web-preview/motrix-live-web-preview.jpg`: real browser screenshot of the MotrixSim Web preview. +- `figures/real-web-preview/motrix-live-web-preview-recording.mp4`: simple screen recording generated from browser frames. +- `figures/real-web-preview/motrix-live-web-preview-recording.gif`: lightweight animated preview for inline reports. +- `figures/real-web-preview/universal-three-preview-sample-desktop.jpg`: real Three.js WebGL sample preview, desktop viewport. +- `figures/real-web-preview/universal-three-preview-sample-mobile.jpg`: real Three.js WebGL sample preview, mobile viewport. +- `figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg`: real MotrixSim bridge scene rendered by Three.js, desktop viewport. +- `figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg`: real MotrixSim bridge scene rendered by Three.js, mobile viewport. +- `figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg`: real Franka Panda robot MJCF scene rendered by Three.js, desktop viewport. +- `figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg`: real Franka Panda robot MJCF scene rendered by Three.js, mobile viewport. +- `figures/real-web-preview/universal-three-preview-control-desktop.jpg`: real backend pause/step/reset/resume control verification. +- `figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg`: real Franka joint and gripper control verification. +- `figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg`: real Store scene with OBJ/PNG textured assets. +- `figures/real-web-preview/universal-three-preview-store-textured-mobile.jpg`: Store scene mobile viewport verification. +- `figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg`: real Go2 quadruped robot scene. +- `figures/real-web-preview/universal-three-preview-go2-robot-mobile.jpg`: Go2 mobile viewport verification. +- `artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json`: DOM/state evidence captured from the browser page. +- `artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json`: frame-level state evidence for the recording. +- `artifacts/universal_three_preview_sample_evidence_2026-06-22.json`: Playwright evidence for the bundled universal Three.js sample. +- `artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json`: Playwright evidence for the remote MotrixSim bridge scene. +- `artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json`: Playwright evidence for the real Franka Panda robot scene. +- `artifacts/universal_three_preview_control_evidence_2026-06-22.json`: Playwright evidence for pause/step/reset/resume control. +- `artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json`: Playwright evidence for joint2 and gripper control. +- `artifacts/universal_three_preview_store_textured_evidence_2026-06-22.json`: Playwright evidence for Store textured scene. +- `artifacts/universal_three_preview_go2_robot_evidence_2026-06-22.json`: Playwright evidence for Go2 quadruped scene. +- `figures/test-screenshots/`: PNG screenshots generated from the real test artifacts. +- Feishu Wiki: https://horizonrobotics.feishu.cn/wiki/UKxEwcYjwiuSapkDeaXcqRlUnVd + +## Reproduce + +```bash +bash scripts/wuying_probe.sh +scp scripts/motrix_state_stream_probe.py root@39.106.101.95:/tmp/motrix_state_stream_probe.py +scp scripts/motrix_live_web_preview.py root@39.106.101.95:/tmp/motrix_live_web_preview.py +ssh root@39.106.101.95 '/opt/gs_playground_real2sim_48q/.venv/bin/python /tmp/motrix_live_web_preview.py --host 127.0.0.1 --port 18081' +ssh -L 18081:127.0.0.1:18081 root@39.106.101.95 +cd web-wasm-smoke && npm install && node smoke.mjs +``` + +The Wuying SSH key is intentionally referenced from the private document repo and is not copied into this project. diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/local_motrix_code_audit_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/local_motrix_code_audit_2026-06-22.json new file mode 100644 index 0000000..83e247b --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/local_motrix_code_audit_2026-06-22.json @@ -0,0 +1,52 @@ +{ + "ok": true, + "repo": "/Users/d-robotics/workSpace/motrix-lerobot", + "files": { + "readme": "/Users/d-robotics/workSpace/motrix-lerobot/Readme.md", + "env": "/Users/d-robotics/workSpace/motrix-lerobot/motrix_lerobot/env.py", + "runner": "/Users/d-robotics/workSpace/motrix-lerobot/scripts/runner.py", + "so101_scene": "/Users/d-robotics/workSpace/motrix-lerobot/assets/SO101/scene_with_ball.xml", + "g1_scene": "/Users/d-robotics/workSpace/motrix-lerobot/assets/g1/scene_real.xml" + }, + "findings": [ + { + "check": "imports_motrixsim", + "status": "pass" + }, + { + "check": "loads_so101_scene", + "status": "pass" + }, + { + "check": "has_render_app", + "status": "pass" + }, + { + "check": "captures_two_cameras", + "status": "pass" + }, + { + "check": "extracts_joint_state", + "status": "pass" + }, + { + "check": "steps_model", + "status": "pass" + } + ], + "checks": { + "imports_motrixsim": true, + "loads_so101_scene": true, + "has_render_app": true, + "captures_two_cameras": true, + "extracts_joint_state": true, + "steps_model": true + }, + "exists": { + "readme": true, + "env": true, + "runner": true, + "so101_scene": true, + "g1_scene": true + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json new file mode 100644 index 0000000..568452c --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json @@ -0,0 +1,109 @@ +{ + "captured_at": "2026-06-22T04:43:10.882Z", + "url": "http://127.0.0.1:18081/", + "remote_host": "39.106.101.95", + "screenshot": "/Users/d-robotics/workSpace/MotrixSimWeb/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview.jpg", + "selected_state": { + "bodyName": "_unnamed_link_0", + "canvas": { + "clientHeight": 720, + "clientWidth": 920, + "height": 1440, + "width": 1840 + }, + "connection": "connected", + "heading": "Real Runtime", + "posText": "0.0000, 0.0000, 4.6429", + "state": { + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0, + 0, + 4.642916202545166 + ], + "quat": [ + 0, + 0, + 0, + 1 + ] + } + }, + "body_names": [ + "_unnamed_link_0" + ], + "host": "1nh2jhpso5kckmx", + "ok": true, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml", + "server_time": 1782103390.8206172, + "step": 3584, + "step_ms": { + "max": 0.17769599799066782, + "mean": 0.06107135443814252, + "p95": 0.09495299309492111 + } + }, + "stepText": "3584", + "title": "MotrixSim Live Web Preview", + "z": 4.642916202545166 + }, + "page_state_samples": [ + { + "step": 3584, + "z": 4.642916202545166, + "posText": "0.0000, 0.0000, 4.6429", + "connection": "connected" + } + ], + "verification": { + "source": "browser DOM raw live state rendered from /state endpoint", + "requirement": "real MotrixSim Web preview screenshot, not terminal output or smoke placeholder", + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml" + }, + "post_screenshot_dom_state": { + "captured_at": "2026-06-22T04:43:26.711Z", + "parsed_state": { + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0, + 0, + 4.9882283210754395 + ], + "quat": [ + 0, + 0, + 0, + 1 + ] + } + }, + "body_names": [ + "_unnamed_link_0" + ], + "host": "1nh2jhpso5kckmx", + "ok": true, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml", + "server_time": 1782103406.7485473, + "step": 5477, + "step_ms": { + "max": 0.2323179505765438, + "mean": 0.06990823318024558, + "p95": 0.12352498015388846 + } + }, + "visible": { + "body": "_unnamed_link_0", + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "mean_step_ms": "0.06991", + "position_xyz": "0.0000, 0.0000, 4.9882", + "runtime_heading": "Real Runtime", + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml", + "server_step": "5477", + "title": "MotrixSim Web Preview" + }, + "z": 4.9882283210754395 + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json new file mode 100644 index 0000000..92a50f5 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json @@ -0,0 +1,589 @@ +{ + "captured_at": "2026-06-22T07:30:38.135Z", + "url": "http://127.0.0.1:18081/", + "remote_host": "39.106.101.95", + "frame_count": 48, + "frame_interval_ms": 100, + "frame_dir": "/Users/d-robotics/workSpace/MotrixSimWeb/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames", + "samples": [ + { + "frame": 0, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113428.8410916, + "step": 1196860, + "title": "MotrixSim Web Preview", + "visibleStep": "1196860", + "z": 0.4996328353881836 + }, + { + "frame": 1, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113429.0350401, + "step": 1196883, + "title": "MotrixSim Web Preview", + "visibleStep": "1196883", + "z": 0.4996328353881836 + }, + { + "frame": 2, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113429.3060741, + "step": 1196915, + "title": "MotrixSim Web Preview", + "visibleStep": "1196915", + "z": 0.4996328353881836 + }, + { + "frame": 3, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.8234", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113429.5065846, + "step": 1196939, + "title": "MotrixSim Web Preview", + "visibleStep": "1196939", + "z": 4.82342004776001 + }, + { + "frame": 4, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 3.2931", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113429.6738975, + "step": 1196959, + "title": "MotrixSim Web Preview", + "visibleStep": "1196959", + "z": 3.293060541152954 + }, + { + "frame": 5, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.3607", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113429.846431, + "step": 1196979, + "title": "MotrixSim Web Preview", + "visibleStep": "1196979", + "z": 0.36073562502861023 + }, + { + "frame": 6, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4773", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.0658035, + "step": 1197005, + "title": "MotrixSim Web Preview", + "visibleStep": "1197005", + "z": 0.47731032967567444 + }, + { + "frame": 7, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.2270908, + "step": 1197025, + "title": "MotrixSim Web Preview", + "visibleStep": "1197025", + "z": 0.49963366985321045 + }, + { + "frame": 8, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.4802213, + "step": 1197055, + "title": "MotrixSim Web Preview", + "visibleStep": "1197055", + "z": 0.4996328353881836 + }, + { + "frame": 9, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.614984, + "step": 1197071, + "title": "MotrixSim Web Preview", + "visibleStep": "1197071", + "z": 0.4996328353881836 + }, + { + "frame": 10, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.7318132, + "step": 1197085, + "title": "MotrixSim Web Preview", + "visibleStep": "1197085", + "z": 0.4996328353881836 + }, + { + "frame": 11, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113430.9516282, + "step": 1197111, + "title": "MotrixSim Web Preview", + "visibleStep": "1197111", + "z": 0.4996328353881836 + }, + { + "frame": 12, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113431.236581, + "step": 1197145, + "title": "MotrixSim Web Preview", + "visibleStep": "1197145", + "z": 0.4996328353881836 + }, + { + "frame": 13, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113431.428369, + "step": 1197167, + "title": "MotrixSim Web Preview", + "visibleStep": "1197167", + "z": 0.4996328353881836 + }, + { + "frame": 14, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.3290", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113431.5858905, + "step": 1197186, + "title": "MotrixSim Web Preview", + "visibleStep": "1197186", + "z": 4.328996181488037 + }, + { + "frame": 15, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.5737", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113431.827208, + "step": 1197215, + "title": "MotrixSim Web Preview", + "visibleStep": "1197215", + "z": 0.5737295150756836 + }, + { + "frame": 16, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.6533", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113431.9960675, + "step": 1197235, + "title": "MotrixSim Web Preview", + "visibleStep": "1197235", + "z": 0.6532669067382812 + }, + { + "frame": 17, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113432.225468, + "step": 1197262, + "title": "MotrixSim Web Preview", + "visibleStep": "1197262", + "z": 0.49963316321372986 + }, + { + "frame": 18, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113432.3864737, + "step": 1197281, + "title": "MotrixSim Web Preview", + "visibleStep": "1197281", + "z": 0.4996328353881836 + }, + { + "frame": 19, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113432.6327212, + "step": 1197311, + "title": "MotrixSim Web Preview", + "visibleStep": "1197311", + "z": 0.4996328353881836 + }, + { + "frame": 20, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113432.7867239, + "step": 1197329, + "title": "MotrixSim Web Preview", + "visibleStep": "1197329", + "z": 0.4996328353881836 + }, + { + "frame": 21, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.0273411, + "step": 1197358, + "title": "MotrixSim Web Preview", + "visibleStep": "1197358", + "z": 0.4996328353881836 + }, + { + "frame": 22, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.1892936, + "step": 1197377, + "title": "MotrixSim Web Preview", + "visibleStep": "1197377", + "z": 0.4996328353881836 + }, + { + "frame": 23, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.3487034, + "step": 1197396, + "title": "MotrixSim Web Preview", + "visibleStep": "1197396", + "z": 0.4996328353881836 + }, + { + "frame": 24, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.3290", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.587853, + "step": 1197424, + "title": "MotrixSim Web Preview", + "visibleStep": "1197424", + "z": 4.328996181488037 + }, + { + "frame": 25, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 2.0923", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.755578, + "step": 1197444, + "title": "MotrixSim Web Preview", + "visibleStep": "1197444", + "z": 2.0923168659210205 + }, + { + "frame": 26, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.6697", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113433.9922316, + "step": 1197472, + "title": "MotrixSim Web Preview", + "visibleStep": "1197472", + "z": 0.6696948409080505 + }, + { + "frame": 27, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4997", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113434.1470935, + "step": 1197491, + "title": "MotrixSim Web Preview", + "visibleStep": "1197491", + "z": 0.49972307682037354 + }, + { + "frame": 28, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113434.3138952, + "step": 1197511, + "title": "MotrixSim Web Preview", + "visibleStep": "1197511", + "z": 0.4996328353881836 + }, + { + "frame": 29, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113434.4939082, + "step": 1197532, + "title": "MotrixSim Web Preview", + "visibleStep": "1197532", + "z": 0.4996328353881836 + }, + { + "frame": 30, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113434.6086948, + "step": 1197546, + "title": "MotrixSim Web Preview", + "visibleStep": "1197546", + "z": 0.4996328353881836 + }, + { + "frame": 31, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113434.9620519, + "step": 1197588, + "title": "MotrixSim Web Preview", + "visibleStep": "1197588", + "z": 0.4996328353881836 + }, + { + "frame": 32, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113435.1847568, + "step": 1197614, + "title": "MotrixSim Web Preview", + "visibleStep": "1197614", + "z": 0.4996328353881836 + }, + { + "frame": 33, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113435.347539, + "step": 1197634, + "title": "MotrixSim Web Preview", + "visibleStep": "1197634", + "z": 0.4996328353881836 + }, + { + "frame": 34, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.8587", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113435.504579, + "step": 1197652, + "title": "MotrixSim Web Preview", + "visibleStep": "1197652", + "z": 4.858736038208008 + }, + { + "frame": 35, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 3.4069", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113435.6657073, + "step": 1197672, + "title": "MotrixSim Web Preview", + "visibleStep": "1197672", + "z": 3.4068565368652344 + }, + { + "frame": 36, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.6182", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113435.9040775, + "step": 1197700, + "title": "MotrixSim Web Preview", + "visibleStep": "1197700", + "z": 0.6181541681289673 + }, + { + "frame": 37, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4879", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113436.0745072, + "step": 1197720, + "title": "MotrixSim Web Preview", + "visibleStep": "1197720", + "z": 0.4878646731376648 + }, + { + "frame": 38, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113436.3046973, + "step": 1197748, + "title": "MotrixSim Web Preview", + "visibleStep": "1197748", + "z": 0.4996328353881836 + }, + { + "frame": 39, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113436.468162, + "step": 1197767, + "title": "MotrixSim Web Preview", + "visibleStep": "1197767", + "z": 0.4996328353881836 + }, + { + "frame": 40, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113436.7040653, + "step": 1197795, + "title": "MotrixSim Web Preview", + "visibleStep": "1197795", + "z": 0.4996328353881836 + }, + { + "frame": 41, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113436.8651109, + "step": 1197814, + "title": "MotrixSim Web Preview", + "visibleStep": "1197814", + "z": 0.4996328353881836 + }, + { + "frame": 42, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.1052198, + "step": 1197843, + "title": "MotrixSim Web Preview", + "visibleStep": "1197843", + "z": 0.4996328353881836 + }, + { + "frame": 43, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 0.4996", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.2693567, + "step": 1197862, + "title": "MotrixSim Web Preview", + "visibleStep": "1197862", + "z": 0.4996328353881836 + }, + { + "frame": 44, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.9765", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.471499, + "step": 1197886, + "title": "MotrixSim Web Preview", + "visibleStep": "1197886", + "z": 4.976456165313721 + }, + { + "frame": 45, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.5291", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.5684204, + "step": 1197898, + "title": "MotrixSim Web Preview", + "visibleStep": "1197898", + "z": 4.529120445251465 + }, + { + "frame": 46, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.5291", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.5684204, + "step": 1197898, + "title": "MotrixSim Web Preview", + "visibleStep": "1197898", + "z": 4.529120445251465 + }, + { + "frame": 47, + "connection": "connected", + "host": "1nh2jhpso5kckmx", + "posText": "0.0000, 0.0000, 4.5291", + "runtimeHeading": "Real Runtime", + "serverTime": 1782113437.5684204, + "step": 1197898, + "title": "MotrixSim Web Preview", + "visibleStep": "1197898", + "z": 4.529120445251465 + } + ], + "z_min": 0.36073562502861023, + "z_max": 4.976456165313721, + "explanation": "Frames captured from the actual browser page connected to remote MotrixSim /state, then converted to simple recording assets." +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_state_probe_remote_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_state_probe_remote_2026-06-22.json new file mode 100644 index 0000000..afc5635 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/motrix_state_probe_remote_2026-06-22.json @@ -0,0 +1,50 @@ +{ + "ok": true, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml", + "steps": 240, + "body_names": [ + "_unnamed_link_0" + ], + "sample_count": 30, + "step_ms": { + "mean": 0.014092, + "p95": 0.014621, + "max": 0.132174 + }, + "first_sample": { + "step": 0, + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0.0, + 0.0, + 5.0 + ], + "quat": [ + -0.0, + -0.0, + -0.0, + 1.0 + ] + } + } + }, + "last_sample": { + "step": 232, + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0.0, + 0.0, + 0.499633 + ], + "quat": [ + -0.0, + -0.0, + -0.0, + 1.0 + ] + } + } + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/mujoco_wasm_smoke_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/mujoco_wasm_smoke_2026-06-22.json new file mode 100644 index 0000000..5ff705e --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/mujoco_wasm_smoke_2026-06-22.json @@ -0,0 +1,27 @@ +{ + "ok": true, + "package": "@mujoco/mujoco", + "packageVersion": "3.9.0", + "node": "v23.9.0", + "model": { + "nq": 7, + "nv": 6, + "nbody": 2, + "ngeom": 2 + }, + "timingMs": { + "wasmLoad": 55.728, + "modelCompile": 21.673, + "totalStep": 25.15, + "perStep": 0.012575 + }, + "qposHead": [ + 0, + 0, + 0.049633, + 1, + 0, + 0, + 0 + ] +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_control_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_control_evidence_2026-06-22.json new file mode 100644 index 0000000..44249c0 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_control_evidence_2026-06-22.json @@ -0,0 +1,53 @@ +{ + "captured_at": "2026-06-22T09:29:02.013Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest", + "pause": { + "step": 0, + "paused": "true", + "control": "control: pause ok", + "meshes": "58", + "objects": "59", + "stateStatus": "state: poll connected" + }, + "pauseLater": { + "step": 0, + "paused": "true", + "control": "control: pause ok", + "meshes": "58", + "objects": "59", + "stateStatus": "state: poll connected" + }, + "step": { + "step": 1, + "paused": "true", + "control": "control: step ok", + "meshes": "58", + "objects": "59", + "stateStatus": "state: poll connected" + }, + "reset": { + "step": 0, + "paused": "true", + "control": "control: reset ok", + "meshes": "58", + "objects": "59", + "stateStatus": "state: poll connected" + }, + "resume": { + "step": 8, + "paused": "false", + "control": "control: resume ok", + "meshes": "58", + "objects": "59", + "stateStatus": "state: poll connected" + }, + "verification": { + "pause_stopped": true, + "step_once_incremented": true, + "reset_zero": true, + "resume_advanced": true, + "min_objects": 50, + "min_meshes": 40, + "timeout_ms": 60000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_go2_robot_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_go2_robot_evidence_2026-06-22.json new file mode 100644 index 0000000..b183a0b --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_go2_robot_evidence_2026-06-22.json @@ -0,0 +1,83 @@ +{ + "captured_at": "2026-06-22T10:16:38.826Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest", + "desktop": { + "before": { + "step": "2551", + "pixels": "30" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 34 objects", + "stateStatus": "state: poll connected", + "manifest": "scene_flat.xml", + "objects": "34", + "bindings": "33", + "meshes": "33", + "fallbacks": "0", + "step": "2551", + "pixels": "30", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "2551", + "pixels": "30" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 34 objects", + "stateStatus": "state: poll connected", + "manifest": "scene_flat.xml", + "objects": "34", + "bindings": "33", + "meshes": "33", + "fallbacks": "0", + "step": "2551", + "pixels": "30", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "1234.59px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_requirement_met": true, + "desktop_replay_moved": false, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_requirement_met": true, + "mobile_replay_moved": false, + "mobile_stacked_layout": true, + "min_objects": 30, + "min_meshes": 20, + "timeout_ms": 60000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json new file mode 100644 index 0000000..eaf7ade --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json @@ -0,0 +1,93 @@ +{ + "captured_at": "2026-06-22T09:37:26.294Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest", + "joint_name": "joint2", + "joint_target": 0.6, + "dom": { + "objects": "59", + "meshes": "58", + "paused": "true", + "control": "control: gripper ok", + "jointStatus": "joints: gripper open", + "selectedJoint": "joint2", + "jointValue": "0.60" + }, + "before": { + "paused": true, + "joint": { + "pos": 0, + "vel": 0, + "range": [ + -1.7627999782562256, + 1.7627999782562256 + ], + "index": 1 + }, + "hand": { + "pos": [ + 0.08799997717142105, + 0, + 0.9260001182556152 + ], + "quat": [ + -0.9238792657852173, + -0.3826832175254822, + 0, + 0 + ] + } + }, + "after_joint": { + "paused": true, + "joint": { + "pos": 0.6000000238418579, + "vel": 0, + "range": [ + -1.7627999782562256, + 1.7627999782562256 + ], + "index": 1 + }, + "hand": { + "pos": [ + 0.4074625074863434, + 0, + 0.7727354764938354 + ], + "quat": [ + -0.8826155662536621, + -0.36559122800827026, + 0.27302485704421997, + 0.11309058964252472 + ] + } + }, + "after_gripper": { + "finger_joint1": { + "pos": 0.03999999910593033, + "vel": 0, + "range": [ + 0, + 0.03999999910593033 + ], + "index": 7 + }, + "finger_joint2": { + "pos": 0.03999999910593033, + "vel": 0, + "range": [ + 0, + 0.03999999910593033 + ], + "index": 8 + } + }, + "verification": { + "joint_value_applied": true, + "hand_pose_changed": true, + "gripper_opened": true, + "min_objects": 50, + "min_meshes": 40, + "timeout_ms": 70000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_playwright_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_playwright_evidence_2026-06-22.json new file mode 100644 index 0000000..d52fd70 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_playwright_evidence_2026-06-22.json @@ -0,0 +1,80 @@ +{ + "captured_at": "2026-06-22T08:48:03.112Z", + "url": "http://127.0.0.1:5173/", + "desktop": { + "before": { + "step": "120", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 5 objects", + "stateStatus": "state: replay 13 frames @ 12 fps", + "manifest": "Universal Three.js Preview Demo", + "objects": "5", + "bindings": "1", + "meshes": "1", + "fallbacks": "0", + "step": "160", + "pixels": "4", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "100", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 5 objects", + "stateStatus": "state: replay 13 frames @ 12 fps", + "manifest": "Universal Three.js Preview Demo", + "objects": "5", + "bindings": "1", + "meshes": "1", + "fallbacks": "0", + "step": "60", + "pixels": "4", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "710.219px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_loaded": true, + "desktop_replay_moved": true, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_loaded": true, + "mobile_replay_moved": true, + "mobile_stacked_layout": true + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json new file mode 100644 index 0000000..554a104 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json @@ -0,0 +1,82 @@ +{ + "captured_at": "2026-06-22T08:55:18.655Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18083%2Fmanifest", + "desktop": { + "before": { + "step": "19078", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 2 objects", + "stateStatus": "state: poll connected", + "manifest": "falling_ball.xml", + "objects": "2", + "bindings": "1", + "meshes": "0", + "fallbacks": "0", + "step": "19253", + "pixels": "4", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "19421", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 2 objects", + "stateStatus": "state: poll connected", + "manifest": "falling_ball.xml", + "objects": "2", + "bindings": "1", + "meshes": "0", + "fallbacks": "0", + "step": "19668", + "pixels": "4", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "696.219px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_requirement_met": true, + "desktop_replay_moved": true, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_requirement_met": true, + "mobile_replay_moved": true, + "mobile_stacked_layout": true, + "min_objects": 2, + "min_meshes": 0 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json new file mode 100644 index 0000000..70dec1e --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json @@ -0,0 +1,83 @@ +{ + "captured_at": "2026-06-22T09:12:16.061Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest", + "desktop": { + "before": { + "step": "19907", + "pixels": "2" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 59 objects", + "stateStatus": "state: poll connected", + "manifest": "scene.xml", + "objects": "59", + "bindings": "58", + "meshes": "58", + "fallbacks": "0", + "step": "20063", + "pixels": "2", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "22473", + "pixels": "2" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 59 objects", + "stateStatus": "state: poll connected", + "manifest": "scene.xml", + "objects": "59", + "bindings": "58", + "meshes": "58", + "fallbacks": "0", + "step": "22635", + "pixels": "2", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "696.219px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_requirement_met": true, + "desktop_replay_moved": true, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_requirement_met": true, + "mobile_replay_moved": true, + "mobile_stacked_layout": true, + "min_objects": 50, + "min_meshes": 40, + "timeout_ms": 45000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_sample_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_sample_evidence_2026-06-22.json new file mode 100644 index 0000000..f330020 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_sample_evidence_2026-06-22.json @@ -0,0 +1,82 @@ +{ + "captured_at": "2026-06-22T08:55:20.520Z", + "url": "http://127.0.0.1:5173/", + "desktop": { + "before": { + "step": "0", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 5 objects", + "stateStatus": "state: replay 13 frames @ 12 fps", + "manifest": "Universal Three.js Preview Demo", + "objects": "5", + "bindings": "1", + "meshes": "1", + "fallbacks": "0", + "step": "220", + "pixels": "4", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "0", + "pixels": "4" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 5 objects", + "stateStatus": "state: replay 13 frames @ 12 fps", + "manifest": "Universal Three.js Preview Demo", + "objects": "5", + "bindings": "1", + "meshes": "1", + "fallbacks": "0", + "step": "120", + "pixels": "4", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "710.219px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_requirement_met": true, + "desktop_replay_moved": true, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_requirement_met": true, + "mobile_replay_moved": true, + "mobile_stacked_layout": true, + "min_objects": 5, + "min_meshes": 1 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_store_textured_evidence_2026-06-22.json b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_store_textured_evidence_2026-06-22.json new file mode 100644 index 0000000..ca17033 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/artifacts/universal_three_preview_store_textured_evidence_2026-06-22.json @@ -0,0 +1,83 @@ +{ + "captured_at": "2026-06-22T10:13:13.543Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18085%2Fmanifest", + "desktop": { + "before": { + "step": "2234", + "pixels": "22" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 569 objects", + "stateStatus": "state: poll connected", + "manifest": "scene.xml", + "objects": "569", + "bindings": "548", + "meshes": "568", + "fallbacks": "0", + "step": "2234", + "pixels": "22", + "viewport": { + "width": 1280, + "height": 720 + }, + "canvas": { + "width": 920, + "height": 720, + "clientWidth": 920, + "clientHeight": 720, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "360px 920px", + "shellRows": "720px" + } + }, + "mobile": { + "before": { + "step": "2234", + "pixels": "18" + }, + "after": { + "title": "MotrixSim Universal Three.js Preview", + "h1": "Universal Three.js Preview", + "status": "manifest loaded: 569 objects", + "stateStatus": "state: poll connected", + "manifest": "scene.xml", + "objects": "569", + "bindings": "548", + "meshes": "568", + "fallbacks": "0", + "step": "2234", + "pixels": "18", + "viewport": { + "width": 390, + "height": 844 + }, + "canvas": { + "width": 780, + "height": 1040, + "clientWidth": 390, + "clientHeight": 520, + "tag": "CANVAS", + "className": "preview-canvas" + }, + "shellColumns": "390px", + "shellRows": "1234.59px 520px" + } + }, + "verification": { + "desktop_nonblank": true, + "desktop_mesh_requirement_met": true, + "desktop_replay_moved": false, + "mobile_actual_viewport": true, + "mobile_nonblank": true, + "mobile_mesh_requirement_met": true, + "mobile_replay_moved": false, + "mobile_stacked_layout": true, + "min_objects": 500, + "min_meshes": 20, + "timeout_ms": 120000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/comparison-report.md b/research-tests/2026-06-22-motrixsim-web-preview/comparison-report.md new file mode 100644 index 0000000..f54b2b9 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/comparison-report.md @@ -0,0 +1,246 @@ +# MotrixSim Web 预览方案对比报告 + +日期:2026-06-22 + +## 最终建议 + +**主线选择方案二:后端状态流。** +当前目标不是做一个独立的 MuJoCo demo,而是让真实 MotrixSim 环境能在 Web 前端预览。无影云桌面上的 `/opt/gs_playground_real2sim_48q/.venv/bin/python` 已实测可 import `motrixsim`、`mujoco` 和 `torch`,并能从 MotrixSim 场景中抽取 body 位姿。这个链路最贴近真实生产环境。 + +**方案一 MuJoCo WASM 保留为后续轻量模式。** +WASM smoke 已通过,适合公开模型、离线单机 demo、低服务器成本展示,但不适合作为 MotrixSim/Python/GPU 栈的第一版替代品。 + +![决策矩阵](figures/decision-matrix.svg) + +## 核心对比 + +| 维度 | 方案一:MuJoCo WASM | 方案二:后端状态流 | +|---|---|---| +| 计算位置 | 浏览器 CPU/WASM | 无影云桌面 Python/MotrixSim/GPU | +| 与 MotrixSim 一致性 | 中低,需要重新适配 | 高,直接复用真实环境 | +| Python/torch/ROS/RL 集成 | 弱,需要移植 | 强,原生保留 | +| 首版落地复杂度 | 中,需处理 WASM、MEMFS、资产转换 | 中低,先抽状态再传输 | +| 服务器成本 | 低 | 中高,取决于并发 | +| 网络依赖 | 下载后弱依赖 | 强依赖 | +| 模型资产保护 | 弱,资产下发浏览器 | 强,核心资产留后端 | +| 复杂场景上限 | 浏览器受限 | 后端硬件决定 | +| 适合定位 | 轻量 demo / 离线展示 | 当前 Web 预览主线 | + +## 实测证据 + +| 测试项 | 方案 | 结果 | +|---|---|---| +| 无影 SSH | 后端状态流 | `39.106.101.95:22` 成功 | +| GPU | 后端状态流 | `NVIDIA RTX5880-Ada-48Q, 49152 MiB` | +| MotrixSim import | 后端状态流 | `/opt/gs_playground_real2sim_48q/.venv/bin/python` 下成功 | +| MotrixSim step | 后端状态流 | 240 step 平均 `0.014092 ms/step` | +| body pose 抽取 | 后端状态流 | position/quaternion 成功 | +| 真实 Web 预览 | 后端状态流 | 浏览器打开 `127.0.0.1:18081`,页面显示 live MotrixSim ball、step、position、raw state | +| 通用 Three.js 预览 | 后端状态流 | `falling_ball.xml` 通过 `/manifest` + `/state` 在 Three.js/WebGL 中渲染成功 | +| 机器人配置 Three.js 预览 | 后端状态流 | `franka_emika_panda/scene.xml` 展开 `panda.xml` 后加载 59 对象、58 个 OBJ/STL mesh,0 fallback | +| Web 控制闭环 | 后端状态流 | Pause/Step/Reset/Resume 已通过页面按钮控制 MotrixSim backend | +| Franka 关节控制 | 后端状态流 | `joint2=0.6 rad` 后 hand pose 变化,`Open Grip` 后 finger joints 到 `0.04 m` | +| WASM 加载 | MuJoCo WASM | `@mujoco/mujoco@3.9.0` 成功 | +| WASM step | MuJoCo WASM | 2000 step 平均 `0.012575 ms/step` | + +## 真实 Web 预览重测 + +本次按用户要求重新测试了真实 Web 页面,不再把终端输出或 smoke 结果当作前端效果图。 + +![MotrixSim 真实 Web 预览](figures/real-web-preview/motrix-live-web-preview.jpg) + +| 项目 | 结果 | +|---|---| +| 远端运行 | 无影 `39.106.101.95`,主机 `1nh2jhpso5kckmx` | +| 运行时 | `/opt/gs_playground_real2sim_48q/.venv/bin/python` | +| 场景 | `/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml` | +| 前端 | 浏览器页面 `MotrixSim Web Preview`,Canvas 渲染 | +| 后端 | Python 服务真实加载 MotrixSim 并持续 `model.step(data)` | +| 页面证据 | 显示 `connected`、server step、body、position xyz、Raw live state | +| 本地截图 | `figures/real-web-preview/motrix-live-web-preview.jpg` | +| 证据 JSON | `artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json` | + +### 简单录像 + +![MotrixSim Web 预览动图](figures/real-web-preview/motrix-live-web-preview-recording.gif) + +| 项目 | 结果 | +|---|---| +| 录像来源 | 浏览器真实页面连续截帧 | +| 帧数 | 48 | +| 页面 z 范围 | `0.3607 m` 到 `4.9765 m` | +| MP4 | `figures/real-web-preview/motrix-live-web-preview-recording.mp4` | +| GIF | `figures/real-web-preview/motrix-live-web-preview-recording.gif` | + +这个截图和录像把方案二的 MVP 链路从“后端可抽状态”推进到了“浏览器可看实时预览”。因此方案二作为主线的权重进一步提高:它能直接复用 MotrixSim/Python 环境,且已经能通过 Web 页面展示真实仿真状态。 + +需要明确的是:**当前接到 Web 的是真实 3D 状态,不是完整 3D 网格预览。** 现在的页面用 Canvas 做 2.5D 可视化,数据来自 MotrixSim 的 3D position/quaternion;要达到完整“真实三维预览”,下一步应接入 Three.js/GLTF 或 MJCF mesh 转换、场景 manifest 和 orbit camera。 + +## 通用 Three.js 预览器实测 + +已实现第一版通用 Three.js/WebGL 预览器,当前能力是: + +- 读取 scene manifest,不再绑定固定 demo 代码。 +- 支持 primitive:box、sphere、capsule、cylinder、plane、axes。 +- 支持 mesh loader:OBJ、STL、GLTF、GLB。 +- 支持状态源:replay、HTTP poll、websocket。 +- 支持 Motrix/MJCF Z-up 到 Three.js Y-up 的 position/quaternion 转换。 +- 支持 `object.body` 到 runtime body state 的绑定。 + +### Sample manifest 验证 + +![通用 Three.js sample desktop](figures/real-web-preview/universal-three-preview-sample-desktop.jpg) + +| 项目 | 结果 | +|---|---| +| objects | 5 | +| body bindings | 1 | +| meshes | 1 | +| fallbacks | 0 | +| desktop replay step | `0` → `220` | +| mobile replay step | `0` → `120` | +| mobile viewport | `390 x 844` | +| mobile layout | 单列堆叠 | + +### 远端 MotrixSim bridge 验证 + +![远端 MotrixSim bridge desktop](figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg) + +| 项目 | 结果 | +|---|---| +| 远端 | `39.106.101.95` | +| bridge | `server/headless_motrix_bridge.py` | +| scene | `/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml` | +| manifest | `falling_ball.xml` | +| objects | 2 | +| body bindings | 1 | +| state | `poll connected` | +| desktop step | `19078` → `19253` | +| mobile step | `19421` → `19668` | +| evidence | `artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json` | + +![远端 MotrixSim bridge mobile](figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg) + +### 机器人配置验证:Franka Panda + +![Franka Panda robot desktop](figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg) + +| 项目 | 结果 | +|---|---| +| 远端 | `39.106.101.95` | +| scene | `/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml` | +| include | `panda.xml` 已展开 | +| manifest objects | 59 | +| mesh objects | 58 | +| fallback | 0 | +| state | `poll connected` | +| desktop step | `19907` → `20063` | +| mobile step | `22473` → `22635` | +| evidence | `artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json` | + +![Franka Panda robot mobile](figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg) + +### Web 控制闭环验证 + +![Web 控制闭环](figures/real-web-preview/universal-three-preview-control-desktop.jpg) + +| 项目 | 结果 | +|---|---| +| Pause | step 停止 | +| Step once | step 单步增长 | +| Reset | step 回到 `0` | +| Resume | step 继续增长 | +| evidence | `artifacts/universal_three_preview_control_evidence_2026-06-22.json` | + +![Franka joint control](figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg) + +| 项目 | 结果 | +|---|---| +| controls.joints | 9 | +| state link poses | 11 | +| joint2 | `0` → `0.6000000238` | +| hand pose | 已变化 | +| gripper | finger joints → `0.04 m` | +| evidence | `artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json` | + +结论更新:方案二已经不只是“状态流 + Canvas 预览”,现在已经走通“MotrixSim/MJCF scene → manifest → Three.js/WebGL → live state → Web 控制命令 → MotrixSim joint/link 更新”的基础闭环,并且真实机器人 OBJ/STL 资产已能在浏览器里预览和低层操作。复杂材质纹理与大规模重复资产也完成了 store 货架场景验证。剩余工作重点是高层 task/action adapter、更多 MJCF 特性的长尾覆盖和性能优化,而不是证明 Three.js 路线是否可行。 + +## 通用资产覆盖补充验证(2026-06-22 18:17) + +| 场景 | 类型 | Objects | Meshes | Fallbacks | 额外覆盖 | +|---|---|---:|---:|---:|---| +| Store `scene.xml` | 大规模贴图货架 | 569 | 568 | 0 | `assetdir`、PNG texture、OBJ 复用、17 个 textured materials | +| Go2 `scene_flat.xml` | 四足机器人 | 34 | 33 | 0 | 12 joints、link pose、OBJ robot mesh、checker ground | + +这轮实现补齐了 `nested `、`fromto`、`xyaxes`、`zaxis`、mesh scale、file texture、builtin checker、inline convex mesh 与 mesh cache。Store 首次验证时曾因 569 个对象重复加载 OBJ 超时,加入 mesh cache 后桌面/移动均通过非空渲染检查;这说明后续性能优化应优先围绕实例化、LOD 和渐进加载,而不是回退到视频流。 + +## 方案二 MVP 设计 + +![后端状态流架构](figures/backend-stream-architecture.svg) + +### 后端 + +建议进程分成三层: + +1. `SimulationWorker` + - 加载 MotrixSim scene。 + - 定频执行 `model.step(data)`。 + - 抽取 body pose、qpos、sensor、task status。 + +2. `StateBroker` + - 将状态压缩为 JSON 或二进制 buffer。 + - 按前端渲染频率抽样,例如 20-60 Hz。 + - 支持 pause/reset/action/camera 命令。 + +3. `WebServer` + - 提供 scene manifest。 + - 提供 WebSocket 状态流。 + - 可选提供 MotrixSim RenderApp 截图或视频流。 + +### 前端 + +建议前端第一版只做“监视器 + 控制器”: + +1. 加载 `scene_manifest.json`。 +2. 根据 manifest 创建 Three.js 节点或加载 GLTF。 +3. 建立 WebSocket。 +4. 按 body index 更新 `position` 和 `quaternion`。 +5. 提供 reset、pause、step、action、camera 控件。 + +## 方案一定位 + +![MuJoCo WASM 架构](figures/wasm-architecture.svg) + +MuJoCo WASM 路线已证明可以跑通最小 XML、step 和 qpos 读取。它的工程价值是: + +- 无服务器公开 demo。 +- 离线模型教学。 +- 单机器人轻量展示。 +- 前端交互原型。 + +不建议把它作为第一阶段主线,因为: + +- MotrixSim 的 Python API、渲染、控制器和训练链路不能直接复用。 +- 私有 MJCF、mesh、texture 必须下发到浏览器。 +- 多机器人、大场景、复杂接触在浏览器中风险更高。 +- 多线程 WASM 还需要跨源隔离响应头,部署复杂度不为零。 + +## 里程碑建议 + +| 阶段 | 时间 | 目标 | 验收标准 | +|---|---|---|---| +| M0 | 0.5 天 | 固化无影接入和环境脚本 | 一键输出 GPU、MotrixSim import、scene step | +| M1 | 1-2 天 | 状态流 API MVP | 浏览器可看到 falling ball / robot body pose 更新 | +| M2 | 2-4 天 | Three.js 场景 manifest | 前端节点与 MotrixSim body 名稳定映射 | +| M3 | 3-5 天 | 控制闭环 | 前端 reset/pause/action 生效 | +| M4 | 3-5 天 | 真实画面对照 | RenderApp 截图或视频流与 Three.js 状态画面可对比 | +| M5 | 后续 | WASM 轻量模式 | 单模型可离线加载、step、渲染 | + +## 决策 + +| 决策项 | 结论 | +|---|---| +| 当前主线 | 后端状态流 | +| 兜底能力 | 后端真实画面/视频流 | +| 后续增强 | MuJoCo WASM 轻量模式 | +| 不建议 | 第一版直接把 MotrixSim 完整迁到浏览器 | diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-actuator-control.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-actuator-control.jpg new file mode 100644 index 0000000..8b1a744 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-actuator-control.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-camera-focus.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-camera-focus.jpg new file mode 100644 index 0000000..c9bafee Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-camera-focus.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-evidence.json b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-evidence.json new file mode 100644 index 0000000..283cd9c --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-evidence.json @@ -0,0 +1,76 @@ +{ + "captured_at": "2026-06-22T10:33:23.139Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest", + "initial": { + "step": 11275, + "paused": false, + "command": [ + 0, + 0, + 0 + ] + }, + "after_toggle": { + "step": 11334, + "paused": true + }, + "after_reset": { + "step": 0, + "paused": true, + "command": [ + 0, + 0, + 0 + ] + }, + "after_forward_key": { + "command": [ + 1, + 0, + 0 + ] + }, + "after_stop_key": { + "command": [ + 0, + 0, + 0 + ] + }, + "actuator": { + "name": "actuator1", + "target": 1.0140550017356873, + "state": { + "ctrl": 1.0140550136566162, + "range": [ + -2.8973000049591064, + 2.8973000049591064 + ], + "index": 0, + "targetName": "joint1" + } + }, + "dom": { + "objects": "59", + "meshes": "58", + "paused": "true", + "step": "0", + "control": "control: set_actuator ok", + "inputStatus": "input: command sent 0.00 / 0.00 / 0.00", + "inputKeys": "-", + "inputCommand": "0.00 / 0.00 / 0.00", + "actuatorStatus": "actuators: actuator1 set", + "selectedActuator": "actuator1", + "actuatorValue": "1.014" + }, + "verification": { + "space_toggled_pause": true, + "r_reset_step_zero": true, + "w_sent_forward_command": true, + "keyup_sent_stop_command": true, + "actuator_ctrl_applied": true, + "min_objects": 50, + "min_meshes": 40, + "timeout_ms": 60000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-ready.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-ready.jpg new file mode 100644 index 0000000..999e232 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/franka-motrix-input-ready.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-actuator-control.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-actuator-control.jpg new file mode 100644 index 0000000..996dfde Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-actuator-control.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-camera-focus.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-camera-focus.jpg new file mode 100644 index 0000000..4e4c1ab Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-camera-focus.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-evidence.json b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-evidence.json new file mode 100644 index 0000000..d6e70e0 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-evidence.json @@ -0,0 +1,76 @@ +{ + "captured_at": "2026-06-22T10:32:12.848Z", + "url": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest", + "initial": { + "step": 5303, + "paused": false, + "command": [ + 0, + 0, + 0 + ] + }, + "after_toggle": { + "step": 5419, + "paused": true + }, + "after_reset": { + "step": 0, + "paused": true, + "command": [ + 0, + 0, + 0 + ] + }, + "after_forward_key": { + "command": [ + 1, + 0, + 0 + ] + }, + "after_stop_key": { + "command": [ + 0, + 0, + 0 + ] + }, + "actuator": { + "name": "FL_hip", + "target": 0.33152000010013577, + "state": { + "ctrl": 0.3315199911594391, + "range": [ + -0.9472000002861023, + 0.9472000002861023 + ], + "index": 0, + "targetName": "FL_hip_joint" + } + }, + "dom": { + "objects": "34", + "meshes": "33", + "paused": "true", + "step": "0", + "control": "control: set_actuator ok", + "inputStatus": "input: command sent 0.00 / 0.00 / 0.00", + "inputKeys": "-", + "inputCommand": "0.00 / 0.00 / 0.00", + "actuatorStatus": "actuators: FL_hip set", + "selectedActuator": "FL_hip", + "actuatorValue": "0.332" + }, + "verification": { + "space_toggled_pause": true, + "r_reset_step_zero": true, + "w_sent_forward_command": true, + "keyup_sent_stop_command": true, + "actuator_ctrl_applied": true, + "min_objects": 30, + "min_meshes": 20, + "timeout_ms": 60000 + } +} \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-ready.jpg b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-ready.jpg new file mode 100644 index 0000000..34900b1 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/evidence/go2-motrix-input-ready.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/feishu/report.xml b/research-tests/2026-06-22-motrixsim-web-preview/feishu/report.xml new file mode 100644 index 0000000..6856419 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/feishu/report.xml @@ -0,0 +1,115 @@ + +

推荐结论:当前主线选择“MotrixSim 后端计算 + WebSocket 状态流 + 前端 Three.js 渲染”。MuJoCo WASM 已通过最小 smoke,但更适合作为后续离线/公开轻量 demo,不适合作为第一阶段真实 MotrixSim Web 预览主线。

+
+ +

一、测试范围

+ + + + + + + + + +
项目结果
本地调研目录research-tests/2026-06-22-motrixsim-web-preview
无影 SSH 主机39.106.101.95
无影 GPUNVIDIA RTX5880-Ada-48Q, 49152 MiB
MotrixSim Python/opt/gs_playground_real2sim_48q/.venv/bin/python
本地 WASM 包@mujoco/mujoco@3.9.0
+ +

二、无影 MotrixSim 实测

+

修正 SSH 主机后,TCP 22 和 SSH 均成功。远端默认系统 Python 未安装 MotrixSim,但 /opt/gs_playground_real2sim_48q/.venv/bin/python 可以成功 import motrixsim、mujoco 和 torch。

+ + + + + + + + + + + +
指标实测结果
MotrixSim scene/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml
step 数240
采样数30
平均 step 耗时0.014092 ms
p95 step 耗时0.014621 ms
body 位姿position / quaternion 抽取成功
body 高度变化z=5.0 到 z=0.499633
+ + +flowchart LR + A["无影云桌面 GPU"] --> B["MotrixSim Python worker"] + B --> C["scene.step"] + C --> D["body pose / qpos / sensor"] + D --> E["WebSocket state stream"] + E --> F["Three.js Web viewer"] + F -. control .-> B + + +

三、MuJoCo WASM 实测

+

本地使用官方 @mujoco/mujoco@3.9.0 完成最小 XML 加载、模型编译、mj_step 和 qpos 读取。这个测试证明纯前端物理 demo 可行,但没有覆盖 MotrixSim Python 生态、远端 GPU、私有资产保护和真实渲染对照。

+ + + + + + + + + + +
指标实测结果
单线程 WASM 文件8.7 MB
多线程 WASM 文件8.8 MB
WASM 加载耗时55.728 ms
模型编译耗时21.673 ms
2000 step 总耗时25.15 ms
单 step 耗时0.012575 ms
+ +

四、方案对比

+ + + + + + + + + + +
维度MuJoCo WASM后端状态流
与真实 MotrixSim 一致性中低,需要重新适配高,直接复用远端环境
Python / torch / RL 集成弱,需要移植强,原生保留
服务器成本低中高,随并发增长
资产保护弱,资产下发浏览器强,资产留后端
MVP 落地适合轻量 demo适合当前目标
复杂场景上限浏览器受限由后端硬件决定
+ + +flowchart TD + Start["当前目标:真实 MotrixSim Web 预览"] --> Q1{"是否必须复用 Python / MotrixSim / GPU?"} + Q1 -->|是| Backend["选择后端状态流"] + Q1 -->|否| Q2{"是否需要离线和低服务器成本?"} + Q2 -->|是| Wasm["选择 MuJoCo WASM"] + Q2 -->|否| Hybrid["后端状态流优先,WASM 作为补充"] + Backend --> Mvp["MVP:state stream + Three.js"] + Mvp --> Fallback["兜底:真实渲染截图或视频流"] + + +

五、推荐路线

+
    +
  1. M0:固化无影接入脚本,持续输出 GPU、MotrixSim import、scene step 证据。
  2. +
  3. M1:在 MotrixSim venv 中补充 WebSocket 服务依赖,启动后端状态流 API。
  4. +
  5. M2:前端加载 scene manifest,并按 body index 更新 Three.js 节点。
  6. +
  7. M3:加入 reset、pause、action、camera 控制闭环。
  8. +
  9. M4:增加真实 MotrixSim 渲染截图或视频流作为画面对照。
  10. +
  11. M5:后续补 MuJoCo WASM 轻量离线模式。
  12. +
+ +

六、风险和待验证

+ + + + + + + + +
风险影响建议
MotrixSim venv 未装 FastAPI / websockets不能直接启动 API 服务最小安装并锁版本,或复用已有服务框架
当前只测了轻量 falling ball复杂机器人和碰撞场景带宽未知增加 Go1/Go2/G1 或 Real2Sim package benchmark
前端资产映射未完成Web 节点可能和 MotrixSim body 不一致生成 scene manifest,固定 body/node 索引
真实画面对照未接入无法判断 Three.js 重建是否偏离接入 RenderApp 截图、MJPEG 或 WebRTC 兜底
+ +

七、本地证据文件

+
    +
  • artifacts/wuying_probe_2026-06-22.log
  • +
  • artifacts/motrix_state_probe_remote_2026-06-22.json
  • +
  • artifacts/mujoco_wasm_smoke_2026-06-22.json
  • +
  • research-report.md
  • +
  • comparison-report.md
  • +
+ +

八、参考资料

+ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/feishu/robot-panda-update.xml b/research-tests/2026-06-22-motrixsim-web-preview/feishu/robot-panda-update.xml new file mode 100644 index 0000000..4b1d8d0 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/feishu/robot-panda-update.xml @@ -0,0 +1,24 @@ +

机器人配置验证:Franka Panda(2026-06-22)

+ +

本节是按“找一个带有机器人的配置再测试一下”重新执行的真实浏览器验证。测试对象不是 falling ball,也不是占位模型,而是无影 MotrixSim 示例里的 Franka Panda 机器人 MJCF 配置。

+
+ + + + + + + + + + + + + + + + + +
验证项结果
远端环境无影 39.106.101.95
场景/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml
includescene.xml 中的 panda.xml 已展开
资产真实 OBJ/STL 机器人 mesh,通过 /assets HTTP 服务给浏览器
manifest objects59
loaded meshes58
fallbacks0
statepoll connected,step 持续增长
桌面 step19907 → 20063
移动 step22473 → 22635
证据文件artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json
+

本轮同时修复了 MJCF include 展开、mesh 资产服务、body/geom 静态位姿累乘、Z-up 到 Three.js Y-up 的 mesh 本地坐标基转换,以及自动相机取景。截图中可以看到浏览器 WebGL 画面里真实渲染出了 Franka Panda 机器人本体。

+

边界说明:该场景在当前 MotrixSim runtime 暴露的 body state 只有 link0,所以本轮证明的是“真实机器人三维资产预览 + 后端状态连接”,还不是完整关节动画驱动。下一步要补 qpos / joint 层级映射,才能让机器人各关节按 MotrixSim 状态实时运动。

diff --git a/research-tests/2026-06-22-motrixsim-web-preview/feishu/sync-result.json b/research-tests/2026-06-22-motrixsim-web-preview/feishu/sync-result.json new file mode 100644 index 0000000..0b9f0f7 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/feishu/sync-result.json @@ -0,0 +1,157 @@ +{ + "ok": true, + "synced_at": "2026-06-22T12:16:34+08:00", + "space_id": "7530104418265350163", + "parent_title": "具身", + "parent_node_token": "PHQpwGXHOiqTm3kN96tcwEmOnGg", + "title": "MotrixSim Web 预览方案调研与测试报告(2026-06-22)", + "node_token": "UKxEwcYjwiuSapkDeaXcqRlUnVd", + "obj_token": "WZCfdtn8Jokb50xX3F3cJziingf", + "obj_type": "docx", + "wiki_url": "https://horizonrobotics.feishu.cn/wiki/UKxEwcYjwiuSapkDeaXcqRlUnVd", + "docx_url": "https://horizonrobotics.feishu.cn/docx/WZCfdtn8Jokb50xX3F3cJziingf", + "screenshot_update": { + "synced_at": "2026-06-22T12:28:28+08:00", + "section_title": "九、测试输出截图(非 Web 预览)", + "image_count": 4, + "images": [ + "figures/test-screenshots/wuying-ssh-gpu.png", + "figures/test-screenshots/motrix-state-probe.png", + "figures/test-screenshots/mujoco-wasm-smoke.png", + "figures/test-screenshots/metrics-summary.png" + ] + }, + "real_web_preview_update": { + "synced_at": "2026-06-22T12:47:15+08:00", + "section_title": "十、真实 MotrixSim Web 预览重测(2026-06-22)", + "remote_host": "39.106.101.95", + "remote_hostname": "1nh2jhpso5kckmx", + "remote_pid": 496408, + "doc_image_block_id": "doxcnyD3OtCs1ZtVrVO04mh7CBe", + "doc_file_token": "HAZKbAG4oonXMgxCGf2cP5zrnde", + "image": "figures/real-web-preview/motrix-live-web-preview.jpg", + "evidence": "artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json" + }, + "recording_and_3d_scope_update": { + "synced_at": "2026-06-22T15:33:00+08:00", + "section_title": "十一、简单录像说明与 3D 预览界定", + "gif_block_id": "doxcnnJklKLzQvOK14UELhYzMwc", + "gif_file_token": "YA6ybzu1ToXA7yxcd9bcKNe8n1f", + "mp4_block_id": "doxcnCMS14uQSvIkdSTVtRyoxZc", + "mp4_file_token": "WXtib2BedoUjVdxshL2cKVAqnyf", + "gif": "figures/real-web-preview/motrix-live-web-preview-recording.gif", + "mp4": "figures/real-web-preview/motrix-live-web-preview-recording.mp4", + "evidence": "artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json", + "scope": "real MotrixSim 3D state stream rendered by Canvas 2.5D MVP; not yet a full Three.js/WebGL mesh preview" + }, + "universal_three_preview_update": { + "synced_at": "2026-06-22T16:58:46+08:00", + "section_title": "十二、通用 Three.js 预览器实测", + "sample_desktop_block_id": "doxcnV5fGlC32xHSMPK4gMEmqeh", + "sample_desktop_file_token": "NKuYb1hLDochIox1as0cRKoAnec", + "remote_desktop_block_id": "doxcnZhqFCyLgXzMAffsZxNeSAd", + "remote_desktop_file_token": "DJoWbHonaoAfbuxy95OcB9ZGnBg", + "remote_mobile_block_id": "doxcnaOwM2dcbafqalvcUqAW80f", + "remote_mobile_file_token": "Bx4HbZxqJoHDfuxmg00cIJbwn0c", + "sample_evidence": "artifacts/universal_three_preview_sample_evidence_2026-06-22.json", + "remote_motrix_evidence": "artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json", + "remote_bridge": { + "host": "39.106.101.95", + "port": 18083, + "pid": 573064, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml" + } + }, + "robot_panda_preview_update": { + "synced_at": "2026-06-22T17:17:09+08:00", + "section_title": "机器人配置验证:Franka Panda(2026-06-22)", + "desktop_block_id": "doxcn43wErQYuTQoOYDp5D00sif", + "desktop_file_token": "WOsFbGrhnoaDnPxMzEWcIPVvn6d", + "mobile_block_id": "doxcnrbK9mOWN9hmn6Pz39lsTng", + "mobile_file_token": "XbUQbNtBEoJN64xaB4lcMzdanah", + "desktop_image": "figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg", + "mobile_image": "figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg", + "evidence": "artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json", + "remote_bridge": { + "host": "39.106.101.95", + "port": 18084, + "pid": 575258, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml", + "runtime_body_names": ["link0"] + } + }, + "web_control_update": { + "synced_at": "2026-06-22T17:44:23+08:00", + "section_title": "Web 控制闭环与 Franka 关节控制", + "document_revision_id": 42, + "section_block_id": "doxcnDbwfdvEnm9nTotbKxHih0e", + "control_image_block_id": "doxcn7FVVDPqwoYkVzJDujtumcg", + "control_image_file_token": "HeTJbySytos09gxZn2dceptbnhe", + "joint_control_image_block_id": "doxcnqihfLxHpjFUocxi4ANLxce", + "joint_control_image_file_token": "LqfUbWnWjo6hYwxDtbVcqqZen5e", + "control_image": "figures/real-web-preview/universal-three-preview-control-desktop.jpg", + "joint_control_image": "figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg", + "control_evidence": "artifacts/universal_three_preview_control_evidence_2026-06-22.json", + "joint_control_evidence": "artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json", + "remote_bridge": { + "host": "39.106.101.95", + "port": 18084, + "pid": 622164, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml", + "link_pose_count": 11, + "joint_count": 9 + }, + "verified_controls": ["pause", "step", "reset", "resume", "set_joint", "gripper"] + }, + "universal_asset_matrix_update": { + "synced_at": "2026-06-22T18:17:43+08:00", + "section_title": "通用资产矩阵复测:Store 与 Go2", + "document_revision_id": 47, + "section_block_id": "doxcnuSHCNhVwmDPgtkGRAiNpbb", + "store_desktop_block_id": "doxcn2m2HyaZOYAHOxF6w3FGHmd", + "store_desktop_file_token": "ViGCb8SCfownU1xTAmHcBCScn8b", + "go2_desktop_block_id": "doxcnbO5xuxkLiH2QfmC9PcLSKh", + "go2_desktop_file_token": "OolqbSpaVoFi0bxmf27cMKGCnLa", + "store_desktop_image": "figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg", + "store_mobile_image": "figures/real-web-preview/universal-three-preview-store-textured-mobile.jpg", + "go2_desktop_image": "figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg", + "go2_mobile_image": "figures/real-web-preview/universal-three-preview-go2-robot-mobile.jpg", + "store_evidence": "artifacts/universal_three_preview_store_textured_evidence_2026-06-22.json", + "go2_evidence": "artifacts/universal_three_preview_go2_robot_evidence_2026-06-22.json", + "remote_bridges": { + "store": { + "host": "39.106.101.95", + "port": 18085, + "pid": 661691, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/store/scene.xml", + "objects": 569, + "meshes": 568, + "fallbacks": 0, + "textured_materials": 17 + }, + "go2": { + "host": "39.106.101.95", + "port": 18086, + "pid": 664826, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/go2/scene_flat.xml", + "objects": 34, + "meshes": 33, + "fallbacks": 0, + "joint_count": 12, + "link_pose_count": 13 + } + }, + "new_coverage": [ + "nested default inheritance", + "assetdir mesh/texture resolution", + "file texture", + "builtin checker texture", + "mesh scale", + "fromto", + "xyaxes", + "zaxis", + "inline convex mesh", + "mesh cache clone" + ] + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/feishu/universal-asset-matrix-update.xml b/research-tests/2026-06-22-motrixsim-web-preview/feishu/universal-asset-matrix-update.xml new file mode 100644 index 0000000..4d69809 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/feishu/universal-asset-matrix-update.xml @@ -0,0 +1,19 @@ +
+

通用资产矩阵复测:Store 与 Go2(2026-06-22)

+ +

本轮继续推进“万能 Three.js 预览”:从 Franka 单机器人扩展到大规模贴图货架 Store 和 Go2 四足机器人,均在无影 MotrixSim bridge + 本地浏览器中完成真实 WebGL 预览验证。

+
+ + + + + + + + + +
场景类型ObjectsMeshesFallbacks额外覆盖
Store scene.xml大规模贴图货架5695680assetdir、PNG texture、OBJ 复用、17 个 textured materials、桌面/移动非空
Go2 scene_flat.xml四足机器人3433012 joints、13 link poses、OBJ robot mesh、checker ground、桌面/移动非空
+

本轮代码新增覆盖:nested default inheritance、assetdir/meshdir/texturedir 解析、file texture、builtin checker texture、mesh scale、fromto、xyaxes、zaxis、inline convex mesh,以及 mesh cache + clone。

+ +

Store 首次全量验证曾因 569 个对象重复加载 OBJ 超时;加入 mesh cache 后通过。后续优化重点应转向实例化、LOD、渐进加载和更完整材质系统,而不是回退到视频流。

+
diff --git a/research-tests/2026-06-22-motrixsim-web-preview/feishu/web-control-update.xml b/research-tests/2026-06-22-motrixsim-web-preview/feishu/web-control-update.xml new file mode 100644 index 0000000..163c57f --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/feishu/web-control-update.xml @@ -0,0 +1,23 @@ +
+

Web 控制闭环与 Franka 关节控制(2026-06-22)

+ +

本轮已从只读 Three.js 预览推进到 Web 可操作预览:浏览器按钮可以真实控制无影云桌面上的 MotrixSim 后端,覆盖暂停、单步、重置、恢复、Franka 关节设置和夹爪开合。

+
+ + + + + + + + + + + + + + +
验证项真实结果
Web 入口http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest
后端环境无影云桌面 39.106.101.95,MotrixSim bridge 端口 18084,场景为 Franka Emika Panda MJCF。
渲染规模Three.js 页面加载 59 个 objects、58 个 meshes,不再是占位 smoke 图。
仿真控制Pause 后 step 保持 0;Step 后 step=1;Reset 后 step=0;Resume 后 step 推进到 8。
关节控制页面选择 joint2 并设置 0.6,后端 state 返回 joint2=0.6000000238418579。
3D 姿态变化joint2 设置前 hand pos=[0.088, 0, 0.926],设置后 hand pos=[0.407, 0, 0.773],说明 Web 控制驱动了真实三维机器人姿态。
夹爪控制Open Grip 后 finger_joint1 与 finger_joint2 均打开到 0.03999999910593033 m。
+ +

边界说明:当前完成的是底层 joint/gripper 操作闭环。抓取、移动到目标点、轨迹跟随等高层任务还需要按具体场景补 policy/action adapter。

+
diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/backend-stream-architecture.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/backend-stream-architecture.svg new file mode 100644 index 0000000..a55be08 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/backend-stream-architecture.svg @@ -0,0 +1,46 @@ + + + 方案二:MotrixSim 后端状态流架构 + 真实 MotrixSim / Python / GPU 留在无影云桌面,Web 前端只接收状态并渲染。 + + + 无影云桌面 + 39.106.101.95 + RTX5880-Ada-48Q + MotrixSim venv + Python worker + + + 状态流服务 + scene.step() + body position + body quaternion + qpos / sensors + + + Web 前端 + Three.js / R3F + GLTF / mesh viewer + WebSocket state + UI controls + + + Python API + + WebSocket + + reset / action / camera + + + 推荐 MVP: + MotrixSim 后端计算 + 20-60 Hz 状态流 + 前端 Three.js 重建渲染 + + + + + + + + + + diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/decision-matrix.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/decision-matrix.svg new file mode 100644 index 0000000..0ea84d3 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/decision-matrix.svg @@ -0,0 +1,58 @@ + + + MotrixSim Web 预览方案决策矩阵 + 评分 1-5,越高越适合当前目标;当前目标是复用真实 MotrixSim/Python/GPU 环境做 Web 预览。 + + + + + 维度 + MuJoCo WASM + 后端状态流 + + + 真实 MotrixSim 一致性 + 2 + 5 + + 现有 Python/GPU 生态复用 + 1 + 5 + + 前端离线/低服务器成本 + 5 + 2 + + 私有资产和算法保护 + 1 + 5 + + MVP 落地速度 + 3 + 4 + + 复杂场景扩展上限 + 2 + 5 + + 综合建议 + 后续轻量 demo + 当前主线 MVP + + + + + + + + + + + + + + + + + 结论:先做后端状态流,视频流作为真实画面兜底;WASM 只作为离线/公开轻量模式。 + diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.gif b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.gif new file mode 100644 index 0000000..2700a89 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.gif differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.mp4 b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.mp4 new file mode 100644 index 0000000..df0c5d3 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview-recording.mp4 differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview.jpg new file mode 100644 index 0000000..0ab833e Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/motrix-live-web-preview.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_000.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_000.jpg new file mode 100644 index 0000000..be89aad Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_000.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_001.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_001.jpg new file mode 100644 index 0000000..bdb8bf3 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_001.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_002.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_002.jpg new file mode 100644 index 0000000..5b79f38 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_002.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_003.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_003.jpg new file mode 100644 index 0000000..62ee8b5 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_003.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_004.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_004.jpg new file mode 100644 index 0000000..9f2d3e6 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_004.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_005.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_005.jpg new file mode 100644 index 0000000..e42639d Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_005.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_006.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_006.jpg new file mode 100644 index 0000000..b1518ad Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_006.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_007.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_007.jpg new file mode 100644 index 0000000..94f2951 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_007.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_008.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_008.jpg new file mode 100644 index 0000000..39b178c Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_008.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_009.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_009.jpg new file mode 100644 index 0000000..dd7f65f Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_009.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_010.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_010.jpg new file mode 100644 index 0000000..53ab27e Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_010.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_011.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_011.jpg new file mode 100644 index 0000000..822c79a Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_011.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_012.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_012.jpg new file mode 100644 index 0000000..4800bc7 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_012.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_013.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_013.jpg new file mode 100644 index 0000000..1a5c24c Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_013.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_014.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_014.jpg new file mode 100644 index 0000000..cb298e0 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_014.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_015.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_015.jpg new file mode 100644 index 0000000..1565182 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_015.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_016.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_016.jpg new file mode 100644 index 0000000..02d834e Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_016.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_017.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_017.jpg new file mode 100644 index 0000000..30cff67 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_017.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_018.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_018.jpg new file mode 100644 index 0000000..461a2de Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_018.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_019.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_019.jpg new file mode 100644 index 0000000..3303d0b Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_019.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_020.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_020.jpg new file mode 100644 index 0000000..c9851d9 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_020.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_021.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_021.jpg new file mode 100644 index 0000000..63b0758 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_021.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_022.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_022.jpg new file mode 100644 index 0000000..23b3342 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_022.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_023.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_023.jpg new file mode 100644 index 0000000..bcf9d30 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_023.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_024.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_024.jpg new file mode 100644 index 0000000..348d6c2 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_024.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_025.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_025.jpg new file mode 100644 index 0000000..ceb280f Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_025.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_026.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_026.jpg new file mode 100644 index 0000000..a089136 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_026.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_027.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_027.jpg new file mode 100644 index 0000000..2a5b79f Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_027.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_028.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_028.jpg new file mode 100644 index 0000000..f66a596 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_028.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_029.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_029.jpg new file mode 100644 index 0000000..c1bcca7 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_029.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_030.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_030.jpg new file mode 100644 index 0000000..3fcc264 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_030.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_031.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_031.jpg new file mode 100644 index 0000000..f559a20 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_031.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_032.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_032.jpg new file mode 100644 index 0000000..e69a4f2 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_032.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_033.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_033.jpg new file mode 100644 index 0000000..823ebc9 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_033.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_034.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_034.jpg new file mode 100644 index 0000000..5e7be81 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_034.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_035.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_035.jpg new file mode 100644 index 0000000..5a3f4bd Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_035.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_036.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_036.jpg new file mode 100644 index 0000000..7d323cd Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_036.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_037.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_037.jpg new file mode 100644 index 0000000..8362afb Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_037.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_038.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_038.jpg new file mode 100644 index 0000000..bcdd93c Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_038.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_039.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_039.jpg new file mode 100644 index 0000000..23a378b Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_039.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_040.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_040.jpg new file mode 100644 index 0000000..d9dee89 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_040.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_041.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_041.jpg new file mode 100644 index 0000000..e6f9ba4 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_041.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_042.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_042.jpg new file mode 100644 index 0000000..51737bc Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_042.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_043.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_043.jpg new file mode 100644 index 0000000..b0754d7 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_043.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_044.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_044.jpg new file mode 100644 index 0000000..441eb85 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_044.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_045.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_045.jpg new file mode 100644 index 0000000..8ae1620 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_045.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_046.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_046.jpg new file mode 100644 index 0000000..8ae1620 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_046.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_047.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_047.jpg new file mode 100644 index 0000000..8ae1620 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/recording-frames/frame_047.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-control-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-control-desktop.jpg new file mode 100644 index 0000000..ea31088 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-control-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-desktop.jpg new file mode 100644 index 0000000..e26c4f0 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg new file mode 100644 index 0000000..34ac647 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-mobile.jpg new file mode 100644 index 0000000..0fb9174 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-go2-robot-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg new file mode 100644 index 0000000..0e9c607 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-mobile.jpg new file mode 100644 index 0000000..19494a9 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg new file mode 100644 index 0000000..347a1a7 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg new file mode 100644 index 0000000..e09d952 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg new file mode 100644 index 0000000..e994b4e Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg new file mode 100644 index 0000000..5f886e7 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-desktop.jpg new file mode 100644 index 0000000..cf0e9f2 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-mobile.jpg new file mode 100644 index 0000000..a89d734 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-sample-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg new file mode 100644 index 0000000..bd0bcf8 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-mobile.jpg b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-mobile.jpg new file mode 100644 index 0000000..a081406 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/real-web-preview/universal-three-preview-store-textured-mobile.jpg differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.png b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.png new file mode 100644 index 0000000..4f97036 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.png differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.svg new file mode 100644 index 0000000..be981d4 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/metrics-summary.svg @@ -0,0 +1,36 @@ + + + 真实测试结果汇总 + 基于本地 artifacts 中的无影探测、MotrixSim 状态抽取和 MuJoCo WASM smoke 输出生成。 + + 无影 SSH / GPU + SSH OK + RTX5880-Ada-48Q / 48GB + + MotrixSim 远端 step + 0.014092 ms + p95 0.014621 ms / 240 steps + + MuJoCo WASM step + 0.012575 ms + @mujoco/mujoco@3.9.0 + + Step 耗时对比 + MotrixSim mean step + + + 0.014092 ms +MotrixSim p95 step + + + 0.014621 ms +WASM per step + + + 0.012575 ms +MotrixSim max step + + + 0.132174 ms + NVIDIA RTX5880-Ada-48Q, 49152 MiB, 570.172.18 + \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.png b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.png new file mode 100644 index 0000000..0f97360 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.png differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.svg new file mode 100644 index 0000000..c85292b --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/motrix-state-probe.svg @@ -0,0 +1,59 @@ + + + + + + + MotrixSim 远端状态抽取截图 + source: artifacts/motrix_state_probe_remote_2026-06-22.json + { + "ok": true, + "scene": "/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml", + "steps": 240, + "body_names": [ + "_unnamed_link_0" + ], + "sample_count": 30, + "step_ms": { + "mean": 0.014092, + "p95": 0.014621, + "max": 0.132174 + }, + "first_sample": { + "step": 0, + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0.0, + 0.0, + 5.0 + ], + "quat": [ + -0.0, + -0.0, + -0.0, + 1.0 + ] + } + } + }, + "last_sample": { + "step": 232, + "bodies": { + "_unnamed_link_0": { + "pos": [ + 0.0, + 0.0, + 0.499633 + ], + "quat": [ + -0.0, + -0.0, + -0.0, + 1.0 + ] + } + } + } +} + \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.png b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.png new file mode 100644 index 0000000..bb7d268 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.png differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.svg new file mode 100644 index 0000000..e5ba45e --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/mujoco-wasm-smoke.svg @@ -0,0 +1,36 @@ + + + + + + + MuJoCo WASM smoke 截图 + source: artifacts/mujoco_wasm_smoke_2026-06-22.json + { + "ok": true, + "package": "@mujoco/mujoco", + "packageVersion": "3.9.0", + "node": "v23.9.0", + "model": { + "nq": 7, + "nv": 6, + "nbody": 2, + "ngeom": 2 + }, + "timingMs": { + "wasmLoad": 55.728, + "modelCompile": 21.673, + "totalStep": 25.15, + "perStep": 0.012575 + }, + "qposHead": [ + 0, + 0, + 0.049633, + 1, + 0, + 0, + 0 + ] +} + \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.png b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.png new file mode 100644 index 0000000..d7ec2d6 Binary files /dev/null and b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.png differ diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.svg new file mode 100644 index 0000000..5bb22fa --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/test-screenshots/wuying-ssh-gpu.svg @@ -0,0 +1,28 @@ + + + + + + + 无影 SSH / GPU 探测截图 + source: artifacts/wuying_probe_2026-06-22.log + == tcp == +Connection to 39.106.101.95 port 22 [tcp/ssh] succeeded! +== ssh == +__HOST__ +1nh2jhpso5kckmx +__DATE__ +2026-06-22T12:10:10+08:00 +__GPU__ +NVIDIA RTX5880-Ada-48Q, 49152 MiB, 570.172.18 +__PYTHON__ +Python 3.10.12 +__CONDA__ +__MOTRIX_IMPORT__ +motrixsim FAIL ModuleNotFoundError No module named 'motrixsim' +mujoco FAIL ModuleNotFoundError No module named 'mujoco' +torch FAIL ModuleNotFoundError No module named 'torch' +numpy OK 1.21.5 +__PATHS__ +/opt/gs_playground_real2sim_48q 706M + \ No newline at end of file diff --git a/research-tests/2026-06-22-motrixsim-web-preview/figures/wasm-architecture.svg b/research-tests/2026-06-22-motrixsim-web-preview/figures/wasm-architecture.svg new file mode 100644 index 0000000..7850d1a --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/figures/wasm-architecture.svg @@ -0,0 +1,43 @@ + + + 方案一:MuJoCo WASM 纯前端架构 + 浏览器下载 WASM 引擎和模型资产,本地执行物理步进并同步 WebGL 渲染。 + + + 静态托管 + mujoco.wasm + mujoco.js + MJCF XML + mesh / texture + + + 浏览器沙盒 + + WASM MuJoCo + + MEMFS 资产 + + requestAnimationFrame + + + WebGL 渲染 + Three.js + qpos -> node pose + local controls + offline capable + + + download + + qpos + + + 适合: + 公开轻量 demo / 单机器人展示;不适合作为 MotrixSim 真实后端替代 + + + + + + + diff --git a/research-tests/2026-06-22-motrixsim-web-preview/motrixsim-operation-consistency-report.md b/research-tests/2026-06-22-motrixsim-web-preview/motrixsim-operation-consistency-report.md new file mode 100644 index 0000000..736093a --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/motrixsim-operation-consistency-report.md @@ -0,0 +1,92 @@ +# MotrixSim Web 操作一致性验证报告 + +时间:2026-06-22 18:35 CST +环境:无影云电脑 `39.106.101.95` 上的 MotrixSim headless bridge,本地 Vite Web 前端 `127.0.0.1:5173` +结论:Web 预览已经补齐 MotrixSim 风格的基础操作层,包括暂停/恢复/单步/复位、W/S/A/D/方向键速度指令、actuator ctrl 写入,以及左键旋转/右键平移/滚轮缩放的相机交互。 + +## 本轮改动 + +- 前端新增 `MotrixSim Input` 面板,显示当前按键和 `[forward, strafe, yaw]` 指令。 +- 前端新增 `Actuator Control` 面板,可按 manifest 中的 actuator 元数据选择并写入 ctrl。 +- `Space` 切换暂停/恢复,`R` 复位,`W`/`Up` 前进,`S`/`Down` 后退,`Left`/`Right` 横移,`A`/`D` 偏航。 +- Three.js 相机操作对齐 MotrixSim RenderApp:左键绕焦点旋转,右键平移焦点,滚轮缩放,右键拖拽时显示红色焦点环。 +- 后端 `/control` 新增 `command`、`set_actuator`、`set_actuators`,返回 `/state.command` 和 `/state.actuators`,便于自动化验证。 + +## Go2 机器人验证 + +验证 URL: + +`http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest` + +![Go2 MotrixSim Input ready](./evidence/go2-motrix-input-ready.jpg) + +![Go2 actuator control](./evidence/go2-actuator-control.jpg) + +自动化结果: + +| 检查项 | 结果 | +| --- | --- | +| 对象 / mesh | 34 objects / 33 meshes | +| fallback mesh | 0 | +| Space 暂停切换 | 通过 | +| R 复位 step=0 | 通过 | +| W 发送 `[1, 0, 0]` command | 通过 | +| W 松开后发送 `[0, 0, 0]` | 通过 | +| `FL_hip` actuator ctrl 写入 | 目标 `0.3315200001`,实际 `0.3315199912`,通过 | + +证据文件:`./evidence/go2-motrix-input-evidence.json` + +## Franka 当前页面验证 + +验证 URL: + +`http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest` + +![Franka actuator control](./evidence/franka-actuator-control.jpg) + +![Franka MotrixSim camera focus](./evidence/franka-camera-focus.jpg) + +自动化结果: + +| 检查项 | 结果 | +| --- | --- | +| 对象 / mesh | 59 objects / 58 meshes | +| fallback mesh | 0 | +| Space 暂停切换 | 通过 | +| R 复位 step=0 | 通过 | +| W 发送 `[1, 0, 0]` command | 通过 | +| W 松开后发送 `[0, 0, 0]` | 通过 | +| `actuator1` ctrl 写入 | 目标 `1.0140550017`,实际 `1.0140550137`,通过 | +| 右键相机焦点环 | 截图可见红色焦点环,通过 | + +证据文件:`./evidence/franka-motrix-input-evidence.json` + +## 仍需明确的边界 + +- `command` 现在是 MotrixSim 示例一致的输入通道。2026-06-22 18:45 CST 起,Go2 场景已接入官方 `go2_policy.onnx`,前进/后退/平移/偏航 command 会被真实 locomotion policy 消费。 +- `set_actuator` 是真实 actuator ctrl 写入,适合机器人关节/执行器预览和调试;复杂控制闭环仍应留在 MotrixSim/Python 侧实现。 +- 当前截图证明接入 Web 的是 Three.js 3D 预览而不是视频流;物理步进和资产状态来自无影上的 MotrixSim bridge。 + +## Go2 policy motion 复测 + +新增真实运动验证: + +```bash +VERIFY_TIMEOUT_MS=60000 MIN_GO2_DISTANCE=0.5 npm run verify:go2-policy -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest' \ + test-results/go2-policy-motion +``` + +结果:`policy=go2_policy.onnx`,按住 `W` 后 `/state.bodies.base.pos` 的 XY 位移为 `2.4108832508m`,超过 `0.5m` 阈值,验证通过。证据文件:`test-results/go2-policy-motion/go2-policy-motion-evidence.json`。 + +## 复验命令 + +```bash +npm run build +VERIFY_TIMEOUT_MS=60000 MIN_OBJECTS=30 MIN_MESHES=20 npm run verify:motrix-input -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest' \ + test-results/motrix-input-go2 +VERIFY_TIMEOUT_MS=60000 MIN_OBJECTS=50 MIN_MESHES=40 npm run verify:motrix-input -- \ + 'http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18084%2Fmanifest' \ + test-results/motrix-input-franka +``` diff --git a/research-tests/2026-06-22-motrixsim-web-preview/research-report.md b/research-tests/2026-06-22-motrixsim-web-preview/research-report.md new file mode 100644 index 0000000..10c423d --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/research-report.md @@ -0,0 +1,379 @@ +# MotrixSim Web 预览调研测试报告 + +日期:2026-06-22 +目录:`research-tests/2026-06-22-motrixsim-web-preview` + +## 结论摘要 + +当前更适合走 **后端 MotrixSim 计算 + WebSocket 状态流 + 前端 Three.js 渲染**。原因是无影云桌面已经具备 GPU 和 MotrixSim 运行时,远端实测可以加载 `motrixsim` 并完成物理步进和 body 位姿抽取;MuJoCo WASM 路线也能跑通最小模型,但它验证的是纯 MuJoCo 浏览器物理能力,不等同于真实 MotrixSim/Python/GPU 栈。 + +![后端状态流架构](figures/backend-stream-architecture.svg) + +## 本次产物 + +| 类型 | 文件 | +|---|---| +| 无影探测脚本 | `scripts/wuying_probe.sh` | +| MotrixSim 状态抽取脚本 | `scripts/motrix_state_stream_probe.py` | +| MotrixSim 真实 Web 预览服务 | `scripts/motrix_live_web_preview.py` | +| MuJoCo WASM smoke | `web-wasm-smoke/smoke.mjs` | +| 无影环境证据 | `artifacts/wuying_probe_2026-06-22.log` | +| 远端状态流证据 | `artifacts/motrix_state_probe_remote_2026-06-22.json` | +| 浏览器预览截图证据 | `artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json` | +| 真实 Web 预览截图 | `figures/real-web-preview/motrix-live-web-preview.jpg` | +| 真实 Web 预览录像证据 | `artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json` | +| 简单录像 / 动图 | `figures/real-web-preview/motrix-live-web-preview-recording.mp4` / `figures/real-web-preview/motrix-live-web-preview-recording.gif` | +| 通用 Three.js 预览器 | `src/preview/UniversalPreviewer.ts` | +| MJCF manifest exporter | `tools/export_mjcf_manifest.py` | +| Headless Motrix bridge | `server/headless_motrix_bridge.py` | +| Three.js sample 验证 | `artifacts/universal_three_preview_sample_evidence_2026-06-22.json` | +| 远端 Motrix Three.js 验证 | `artifacts/universal_three_preview_remote_motrix_evidence_2026-06-22.json` | +| 机器人配置 Three.js 验证 | `artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json` | +| Web 控制闭环验证 | `artifacts/universal_three_preview_control_evidence_2026-06-22.json` | +| Franka 关节/夹爪控制验证 | `artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json` | +| WASM smoke 证据 | `artifacts/mujoco_wasm_smoke_2026-06-22.json` | +| 本机 Motrix 项目代码审计 | `artifacts/local_motrix_code_audit_2026-06-22.json` | + +## 无影云桌面实测 + +按用户修正后的地址,本次使用 `39.106.101.95`,旧无效 SSH 记录已删除。 + +| 项目 | 结果 | +|---|---| +| TCP 22 | 成功 | +| SSH | 成功 | +| 主机名 | `1nh2jhpso5kckmx` | +| GPU | `NVIDIA RTX5880-Ada-48Q, 49152 MiB` | +| 驱动 | `570.172.18` | +| 可用 MotrixSim venv | `/opt/gs_playground_real2sim_48q/.venv/bin/python` | +| `motrixsim` | OK | +| `mujoco` | OK,版本 `3.9.0` | +| `torch` | OK | +| `fastapi` / `websockets` | 当前 venv 未安装 | + +证据文件:`artifacts/wuying_probe_2026-06-22.log` + +## MotrixSim 状态流实测 + +测试脚本在远端使用 MotrixSim 官方示例: + +```bash +/opt/gs_playground_real2sim_48q/.venv/bin/python /tmp/motrix_state_stream_probe.py \ + --scene /opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml \ + --steps 240 \ + --sample-every 8 +``` + +结果摘要: + +| 指标 | 结果 | +|---|---:| +| step 数 | 240 | +| 采样数 | 30 | +| 平均 step 耗时 | `0.014092 ms` | +| p95 step 耗时 | `0.014621 ms` | +| 最大 step 耗时 | `0.132174 ms` | +| body 位姿抽取 | 成功 | +| 初始 z | `5.0` | +| 末尾 z | `0.499633` | + +这个测试说明:后端 worker 可以从 MotrixSim 中稳定获得 Web 前端所需的基础状态字段,包括 body position 和 quaternion。下一步只需补上 WebSocket/FastAPI 传输层和前端对象索引映射。 + +## 真实 Web 预览重测 + +用户反馈后已重新测试,不再用终端输出截图或 smoke 摘要图替代 Web 效果图。本次截图链路如下: + +1. 无影云桌面 `39.106.101.95` 使用 `/opt/gs_playground_real2sim_48q/.venv/bin/python` 运行 `scripts/motrix_live_web_preview.py`。 +2. 服务端真实加载 `/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml`,后台循环执行 `model.step(data)`。 +3. 本机通过 SSH 隧道打开 `http://127.0.0.1:18081/`,浏览器页面从 `/state` 拉取 live state,并在 Canvas 中渲染球体位置。 +4. 截图由浏览器页面直接截取,证据 JSON 记录了页面 DOM 中可见的 connection、host、step、position xyz 和 raw live state。 + +![MotrixSim 真实 Web 预览截图](figures/real-web-preview/motrix-live-web-preview.jpg) + +### 简单录像说明 + +以下动图由浏览器真实页面连续截取 48 帧后生成,原始帧保存在 `figures/real-web-preview/recording-frames/`。截图过程读取的是页面 DOM 中显示的 `/state` live state,不是后处理合成的仿真轨迹。 + +![MotrixSim 真实 Web 预览动图](figures/real-web-preview/motrix-live-web-preview-recording.gif) + +| 录像项 | 结果 | +|---|---| +| 帧数 | 48 | +| 采样间隔 | 100 ms | +| 输出 MP4 | `figures/real-web-preview/motrix-live-web-preview-recording.mp4` | +| 输出 GIF | `figures/real-web-preview/motrix-live-web-preview-recording.gif` | +| 录像证据 JSON | `artifacts/motrix_live_web_preview_recording_evidence_2026-06-22.json` | +| 页面显示 z 范围 | `0.3607 m` 到 `4.9765 m` | + +### 这是不是“真实 3D 预览” + +准确表述如下: + +- **真实的是 3D 仿真状态。** 后端 MotrixSim 真实加载 falling ball 场景并持续 `model.step(data)`,Web 页面收到的是 body 的 3D position 和 quaternion。 +- **当前 Web 画面不是完整三维网格预览。** 前端目前是 Canvas MVP,把真实 3D 状态投影成带透视网格的 2.5D 画面;还没有接入 Three.js、GLTF/MJCF mesh、orbit camera 或 WebGL shader。 +- **下一步要做完整 3D Web 预览。** 保持现有 MotrixSim `/state` 链路不变,把前端 Canvas 替换成 Three.js 场景,根据 scene manifest 创建 mesh 节点,并按 body index 更新 `position` / `quaternion`。 + +| 验证项 | 结果 | +|---|---| +| 远端主机 | `39.106.101.95` / `1nh2jhpso5kckmx` | +| 预览服务进程 | 重新启动后 PID `496408` | +| 页面状态 | `connected` | +| 场景 | `/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml` | +| 浏览器可见 step | `3595` | +| 浏览器可见 position xyz | `0.0000, 0.0000, 3.8228` | +| 页面截图 | `figures/real-web-preview/motrix-live-web-preview.jpg` | +| DOM/evidence | `artifacts/motrix_live_web_preview_browser_evidence_2026-06-22.json` | + +这个重测结论更直接:方案二不只是能抽状态,也已经能形成一个真实 Web 预览页面。该阶段页面是 Canvas MVP,后续已推进到下一节的 Three.js/WebGL 预览器。 + +## 通用 Three.js 预览器进展 + +已在项目根目录实现第一版通用 Three.js/WebGL 预览器,不再局限于固定球体 Canvas。 + +![通用 Three.js sample desktop](figures/real-web-preview/universal-three-preview-sample-desktop.jpg) + +![远端 MotrixSim bridge desktop](figures/real-web-preview/universal-three-preview-remote-motrix-desktop.jpg) + +| 能力 | 当前状态 | +|---|---| +| Three.js WebGL 渲染 | 已实现,`src/preview/UniversalPreviewer.ts` | +| primitive 支持 | `box`、`sphere`、`capsule`、`cylinder`、`plane`、`axes` | +| mesh 支持 | `OBJ`、`STL`、`GLTF`、`GLB` loader 已接入 | +| Motrix/MJCF Z-up 转换 | 已实现 Z-up 到 Three.js Y-up 的 position/quaternion 转换 | +| 状态源 | 支持 replay、poll、websocket 三种模式 | +| body 绑定 | manifest 中 `object.body` 绑定到 state 中的 body name | +| 匿名 body 处理 | headless bridge 可将 MJCF 匿名 body 映射到 MotrixSim runtime body name | +| 无显示器 Linux | bridge 不依赖显示器,只输出 `/manifest` 和 `/state` | + +### 远端 MotrixSim + Three.js 实测 + +本次重新在无影 `39.106.101.95` 启动 `server/headless_motrix_bridge.py`,真实加载 `/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml`,前端通过 `?manifest=http://127.0.0.1:18083/manifest` 加载远端 manifest,并通过 poll state 驱动 Three.js 球体。 + +| 验证项 | 结果 | +|---|---| +| 远端 bridge PID | `573064` | +| manifest | `falling_ball.xml` | +| manifest objects | 2 | +| body bindings | 1 | +| runtime body | `_unnamed_link_0` | +| desktop step 变化 | `19078` → `19253` | +| mobile step 变化 | `19421` → `19668` | +| desktop canvas | `920 x 720` client pixels | +| mobile viewport | `390 x 844` | +| mobile layout | 单列堆叠 | +| 非空像素检查 | desktop/mobile 均通过 | + +![远端 MotrixSim bridge mobile](figures/real-web-preview/universal-three-preview-remote-motrix-mobile.jpg) + +### 机器人配置实测:Franka Panda + +按“找一个带有机器人的配置再测试一下”的要求,本次改用无影 MotrixSim 示例中的真实机器人场景: + +```bash +/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml +``` + +该场景不是单文件:`scene.xml` 通过 `` 引入 Panda 机器人本体,机器人 mesh 分布在 `assets/*.obj` 和 `assets/*.stl`。因此本轮补齐了 MJCF include 展开、mesh 资产 HTTP 服务、body/geom 静态位姿累乘、Z-up mesh 本地坐标基转换和自动相机取景后再做浏览器验证。 + +![Franka Panda robot desktop](figures/real-web-preview/universal-three-preview-robot-panda-desktop.jpg) + +| 验证项 | 结果 | +|---|---| +| 远端 | `39.106.101.95` | +| scene | `/opt/Motphys/motrixsim-docs/examples/assets/franka_emika_panda/scene.xml` | +| include | `panda.xml` 已展开 | +| manifest objects | 59 | +| mesh objects | 58 | +| asset GET | `/assets/assets/link0_0.obj` 返回 200 | +| desktop meshes | 58 | +| mobile meshes | 58 | +| fallbacks | 0 | +| state | `poll connected` | +| desktop step | `19907` → `20063` | +| mobile step | `22473` → `22635` | +| evidence | `artifacts/universal_three_preview_robot_panda_evidence_2026-06-22.json` | + +![Franka Panda robot mobile](figures/real-web-preview/universal-three-preview-robot-panda-mobile.jpg) + +这个测试说明:当前 Three.js 预览器已经可以渲染真实机器人 MJCF 配置里的 OBJ/STL 资产,不再只是 falling ball 或固定 demo。该阶段仍只是“真实机器人三维资产预览 + 后端状态连接”;关节操作能力在下一节控制闭环中补齐。 + +### Web 控制闭环实测 + +在机器人资产预览基础上,已继续实现 Web 到 MotrixSim 的控制闭环: + +- 后端 `POST /control` 支持 `pause`、`resume`、`reset`、`step`、`home`、`set_joint`、`gripper`。 +- 前端新增 `Simulation Control` 和 `Joint Control` 面板。 +- 后端 `/state` 现在输出 MotrixSim `link_names` 的 pose、`joint_names`、`joints`、`actuators`、`dof_pos`。 +- 前端按 link pose 驱动 `link1..hand/fingers` 对应 mesh,不再只绑定根 body。 + +![Web 控制闭环](figures/real-web-preview/universal-three-preview-control-desktop.jpg) + +| 验证项 | 结果 | +|---|---| +| Pause | step 停止:`0` → `0` | +| Step once | step 单步:`0` → `1` | +| Reset | step 回到 `0` | +| Resume | step 继续增长:`0` → `8` | +| evidence | `artifacts/universal_three_preview_control_evidence_2026-06-22.json` | + +### Franka 关节与夹爪控制实测 + +本轮又验证了一个真正改变机器人形态的操作:页面选择 `joint2`,设置到 `0.6 rad`,后端写入 MotrixSim joint dof,并通过 link pose 流驱动 Three.js 机器人姿态变化;随后点击 `Open Grip`,两个 finger joint 打开到 `0.04 m`。 + +![Franka joint control](figures/real-web-preview/universal-three-preview-joint-control-desktop.jpg) + +| 验证项 | 结果 | +|---|---| +| controls.joints | 9 个 | +| state bodies | 11 个 link pose | +| joint2 | `0` → `0.6000000238` | +| hand pose | 已变化 | +| finger_joint1 | `0.0399999991` | +| finger_joint2 | `0.0399999991` | +| evidence | `artifacts/universal_three_preview_joint_control_evidence_2026-06-22.json` | + +结论更新:当前页面已经不只是“可看”,而是具备最小机器人操作能力。仍需注意,这只是低层 joint/gripper 控制;更高层的抓取、轨迹、任务动作还需要单独接 policy/action adapter。 + +### 仍未完成的“万能”边界 + +当前已经从 Canvas MVP 进展到真实 Three.js/WebGL + manifest/state 管线,但还不能宣称“任意 MotrixSim 场景 100% 自动还原”。剩余边界: + +| 边界 | 原因 | 下一步 | +|---|---|---| +| 复杂材质/纹理 | exporter 当前只保留基础颜色和透明度 | 扩展 material/texture 解析 | +| 复杂 mesh asset 路径 | 浏览器需要可访问的资产 URL | 增加 asset copy/serve 管线 | +| 关节机器人 | 当前按 body pose 更新,未做 skeleton/joint 层级驱动 | 增加 qpos → articulated node 映射 | +| 相机/灯光完整还原 | 目前只做默认光照和基础 camera | 解析 XML camera/light | +| 私有资产保护 | Three.js 渲染必须把 mesh 下发浏览器 | 私有场景走服务端视频流兜底 | + +## MuJoCo WASM 实测 + +![MuJoCo WASM 架构](figures/wasm-architecture.svg) + +本地使用官方 npm 包 `@mujoco/mujoco@3.9.0` 做最小 smoke: + +```bash +cd web-wasm-smoke +npm install +node smoke.mjs +``` + +结果摘要: + +| 指标 | 结果 | +|---|---:| +| WASM 文件大小 | `8.7 MB` 单线程,`8.8 MB` 多线程 | +| WASM 加载耗时 | `55.728 ms` | +| 模型编译耗时 | `21.673 ms` | +| 2000 step 总耗时 | `25.15 ms` | +| 单 step 耗时 | `0.012575 ms` | +| qpos 读取 | 成功 | + +这个测试说明:纯 MuJoCo WASM 能作为轻量前端 demo 起点。但它没有验证 MotrixSim API、Python 控制栈、RL/ROS/torch 集成、私有资产保护和远端 GPU 渲染能力。 + +## 本机 Motrix 项目代码审计 + +本机已有 `/Users/d-robotics/workSpace/motrix-lerobot`,可作为状态抽取接口参考: + +| 检查项 | 结果 | +|---|---| +| `import motrixsim as mx` | pass | +| 加载 SO101 scene | pass | +| 使用 `mx.render.RenderApp` | pass | +| 双相机 capture | pass | +| 抽取 joint state | pass | +| 执行 `model.step(data)` | pass | + +这说明 Web 状态流 MVP 可以借鉴现有 `PickEnv` 的对象访问方式:`model.step(data)`、`body.get_position(data)`、`body.get_rotation(data)`、`robot.get_joint_dof_pos(data)`。 + +## 测试输出截图 + +以下截图由本次 artifacts 中的测试输出生成,用于记录命令级证据。它们不是 MotrixSim Web 效果图;真实 Web 预览请以上一节浏览器截图为准。 + +![无影 SSH / GPU 探测截图](figures/test-screenshots/wuying-ssh-gpu.png) + +![MotrixSim 远端状态抽取截图](figures/test-screenshots/motrix-state-probe.png) + +![MuJoCo WASM smoke 截图](figures/test-screenshots/mujoco-wasm-smoke.png) + +![真实测试结果汇总](figures/test-screenshots/metrics-summary.png) + +## 通用资产矩阵复测:Store 与 Go2 + +本轮继续推进“万能 Three.js 预览”,重点不再是单个 Franka demo,而是验证更高方差的 MJCF 资产能否自动进入浏览器预览。 + +### 新增覆盖能力 + +| 能力 | 验证意义 | +|---|---| +| nested `` 继承 | 正确识别 visual/collision 默认属性,避免把碰撞几何当视觉模型渲染 | +| `assetdir` / `meshdir` / `texturedir` | 支持 store 这类资产集中目录 | +| file texture / builtin checker | 支持 PNG 标签贴图和地面 checker 材质 | +| mesh scale | 支持 MJCF mesh 资产级缩放 | +| `fromto` / `xyaxes` / `zaxis` | 支持杆状几何、相机/几何方向和轮轴方向 | +| inline convex mesh | 支持无外部文件的 MJCF mesh 顶点 | +| mesh cache + clone | 大量重复 OBJ 只加载一次,浏览器按实例克隆 | + +### Store 货架场景 + +![Store 贴图货架场景](figures/real-web-preview/universal-three-preview-store-textured-desktop.jpg) + +| 指标 | 结果 | +|---|---:| +| scene | `/opt/Motphys/motrixsim-docs/examples/assets/store/scene.xml` | +| objects | `569` | +| body bindings | `548` | +| meshes | `568` | +| fallbacks | `0` | +| textured materials | `17` | +| desktop pixel check | `22` | +| mobile pixel check | `18` | + +说明:该场景验证了 OBJ + PNG 贴图 + 大量重复资产的通用预览能力。场景被人为 pause,因此 evidence 中 `replay_moved=false` 是预期,不代表渲染失败。 + +### Go2 四足机器人场景 + +![Go2 四足机器人场景](figures/real-web-preview/universal-three-preview-go2-robot-desktop.jpg) + +| 指标 | 结果 | +|---|---:| +| scene | `/opt/Motphys/motrixsim-docs/examples/assets/go2/scene_flat.xml` | +| objects | `34` | +| body bindings | `33` | +| meshes | `33` | +| fallbacks | `0` | +| joints exposed | `12` | +| desktop pixel check | `30` | +| mobile pixel check | `30` | + +结论:Three.js 预览链路已从 Franka 单机器人扩展到“复杂贴图货架 + 四足机器人”两类额外场景,说明方案二的前端渲染不局限于手写 demo。 + +## 推荐实施路线 + +1. 第一阶段:后端状态流 MVP + - 在 `/opt/gs_playground_real2sim_48q/.venv` 中补装 `fastapi` / `websockets` 或用项目内已有服务框架。 + - MotrixSim worker 定频 step,前端接收 body pose / qpos / sensor。 + - Three.js 前端按 scene manifest 创建对象,再按 index 更新 transform。 + +2. 第二阶段:真实画面兜底 + - 保留 MotrixSim RenderApp/offscreen render 或远端桌面视频作为对照。 + - 用它验证 Three.js 状态重建是否与 MotrixSim 真实画面一致。 + +3. 第三阶段:轻量 WASM 模式 + - 仅面向公开 demo、离线体验和单机器人轻量模型。 + - 不承诺与 MotrixSim 生产栈完全一致。 + +## 风险和待验证 + +| 风险 | 影响 | 建议 | +|---|---|---| +| venv 未装 WebSocket 服务依赖 | 无法直接启动 API server | 在无影 venv 中最小安装并锁版本 | +| 状态流只验证轻量场景 | 复杂场景带宽和同步压力未知 | 增加机器人/多 body/碰撞场景 benchmark | +| 前端资产映射未验证 | Web 画面可能与后端 body 名称不一致 | 建立 scene manifest,固定 body/node 索引 | +| 视频流未验证 | 缺少真实画面对照 | 增加 RenderApp 截图或 WebRTC/RTSP 兜底测试 | + +## 外部资料 + +- MuJoCo JavaScript bindings: https://github.com/google-deepmind/mujoco/tree/main/wasm +- MuJoCo Python docs: https://mujoco.readthedocs.io/en/stable/python.html +- MuJoCo visualization docs: https://mujoco.readthedocs.io/en/stable/programming/visualization.html diff --git a/research-tests/2026-06-22-motrixsim-web-preview/scenes/g1_store_blocks_scene.xml b/research-tests/2026-06-22-motrixsim-web-preview/scenes/g1_store_blocks_scene.xml new file mode 100644 index 0000000..3d6ec4e --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/scenes/g1_store_blocks_scene.xml @@ -0,0 +1,48 @@ + + + + + + diff --git a/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_live_web_preview.py b/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_live_web_preview.py new file mode 100644 index 0000000..71fbf2a --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_live_web_preview.py @@ -0,0 +1,338 @@ +#!/usr/bin/env python3 +"""Live MotrixSim web preview server. + +This is intentionally dependency-light: it uses MotrixSim plus Python's stdlib +HTTP server. The browser preview polls /state and renders the live body pose on +an HTML canvas. +""" + +from __future__ import annotations + +import argparse +import json +import math +import socket +import statistics +import threading +import time +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from typing import Any + + +HTML = """ + + + + + MotrixSim Live Web Preview + + + +
+
+ +
+
LIVE
+
+
MotrixSim Web Preview
+
Browser rendering driven by live MotrixSim state from Wuying
+
+
+
Scene:
+
+ +
+ + + +""" + + +class Simulation: + def __init__(self, scene: Path, reset_interval: float): + import motrixsim as mx + import numpy as np + + self.mx = mx + self.np = np + self.scene = scene + self.model = mx.load_model(scene.as_posix()) + self.data = mx.SceneData(self.model) + self.model.forward_kinematic(self.data) + self.body_names = [str(name) for name in getattr(self.model, "body_names", [])][:8] + self.reset_interval = reset_interval + self.lock = threading.Lock() + self.step = 0 + self.step_ms: list[float] = [] + self.last_reset = time.monotonic() + self.running = True + + def reset(self) -> None: + self.data.reset(self.model) + for name in self.body_names: + body = self.model.get_body(name) + if getattr(body, "floatingbase", None) is not None: + body.floatingbase.set_translation(self.data, self.np.array([0.0, 0.0, 5.0])) + body.floatingbase.set_global_linear_velocity(self.data, self.np.array([0.0, 0.0, 0.0])) + body.floatingbase.set_global_angular_velocity(self.data, self.np.array([0.0, 0.0, 0.0])) + self.model.forward_kinematic(self.data) + self.last_reset = time.monotonic() + + def run(self, hz: float) -> None: + target_dt = 1.0 / hz + while self.running: + start = time.perf_counter() + with self.lock: + if time.monotonic() - self.last_reset > self.reset_interval: + self.reset() + self.model.step(self.data) + self.step += 1 + elapsed_ms = (time.perf_counter() - start) * 1000.0 + self.step_ms.append(elapsed_ms) + if len(self.step_ms) > 1000: + del self.step_ms[:500] + spent = time.perf_counter() - start + if spent < target_dt: + time.sleep(target_dt - spent) + + def snapshot(self) -> dict[str, Any]: + with self.lock: + bodies: dict[str, Any] = {} + for name in self.body_names: + body = self.model.get_body(name) + bodies[name] = { + "pos": [float(v) for v in body.get_position(self.data)], + "quat": [float(v) for v in body.get_rotation(self.data)], + } + values = list(self.step_ms) + if values: + ordered = sorted(values) + p95 = ordered[max(0, min(len(ordered) - 1, int(len(ordered) * 0.95) - 1))] + mean = statistics.fmean(values) + max_v = max(values) + else: + mean = p95 = max_v = 0.0 + return { + "ok": True, + "host": socket.gethostname(), + "scene": self.scene.as_posix(), + "step": self.step, + "server_time": time.time(), + "body_names": self.body_names, + "bodies": bodies, + "step_ms": {"mean": mean, "p95": p95, "max": max_v}, + } + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("--scene", default="/opt/Motphys/motrixsim-docs/examples/assets/falling_ball.xml") + parser.add_argument("--host", default="127.0.0.1") + parser.add_argument("--port", type=int, default=18081) + parser.add_argument("--hz", type=float, default=240.0) + parser.add_argument("--reset-interval", type=float, default=4.0) + args = parser.parse_args() + + simulation = Simulation(Path(args.scene), reset_interval=args.reset_interval) + thread = threading.Thread(target=simulation.run, args=(args.hz,), daemon=True) + thread.start() + + class Handler(BaseHTTPRequestHandler): + def log_message(self, fmt: str, *values: Any) -> None: + return + + def _send(self, status: int, content_type: str, body: bytes) -> None: + self.send_response(status) + self.send_header("Content-Type", content_type) + self.send_header("Cache-Control", "no-store") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def do_GET(self) -> None: + if self.path == "/" or self.path.startswith("/index.html"): + self._send(200, "text/html; charset=utf-8", HTML.encode("utf-8")) + return + if self.path.startswith("/state"): + body = json.dumps(simulation.snapshot(), ensure_ascii=False).encode("utf-8") + self._send(200, "application/json; charset=utf-8", body) + return + if self.path.startswith("/health"): + self._send(200, "application/json", b'{"ok": true}') + return + self._send(404, "text/plain", b"not found") + + server = ThreadingHTTPServer((args.host, args.port), Handler) + print(json.dumps({ + "ok": True, + "url": f"http://{args.host}:{args.port}/", + "scene": args.scene, + "body_names": simulation.body_names, + }, ensure_ascii=False), flush=True) + try: + server.serve_forever() + finally: + simulation.running = False + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_state_stream_probe.py b/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_state_stream_probe.py new file mode 100644 index 0000000..d76cbef --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/scripts/motrix_state_stream_probe.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python3 +"""Minimal MotrixSim state extraction probe for the backend-streaming design. + +Run this on the Wuying desktop inside an environment where ``motrixsim`` is +installed and from a checkout that contains MotrixSim MJCF assets. +""" + +from __future__ import annotations + +import argparse +import json +import statistics +import time +from pathlib import Path + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("--scene", default="/root/motrix-lerobot/assets/SO101/scene_with_ball.xml") + parser.add_argument("--steps", type=int, default=240) + parser.add_argument("--sample-every", type=int, default=4) + args = parser.parse_args() + + try: + import motrixsim as mx + except Exception as exc: # pragma: no cover - intentionally diagnostic + print(json.dumps({"ok": False, "stage": "import", "error": repr(exc)}, ensure_ascii=False)) + return 2 + + scene = Path(args.scene) + if not scene.exists(): + print(json.dumps({"ok": False, "stage": "scene", "error": f"missing scene: {scene}"}, ensure_ascii=False)) + return 2 + + model = mx.load_model(str(scene)) + data = mx.SceneData(model) + model.forward_kinematic(data) + + body_names = [str(name) for name in getattr(model, "body_names", [])] + body_names = body_names[:8] + samples: list[dict[str, object]] = [] + step_ms: list[float] = [] + for step in range(args.steps): + started = time.perf_counter() + model.step(data) + step_ms.append((time.perf_counter() - started) * 1000.0) + if step % args.sample_every == 0: + item: dict[str, object] = {"step": step, "bodies": {}} + for body_name in body_names: + try: + body = model.get_body(body_name) + item["bodies"][body_name] = { + "pos": [round(float(v), 6) for v in body.get_position(data)], + "quat": [round(float(v), 6) for v in body.get_rotation(data)], + } + except Exception: + pass + if len(item["bodies"]) == 0: + del item["bodies"] + samples.append(item) + + result = { + "ok": True, + "scene": str(scene), + "steps": args.steps, + "body_names": body_names, + "sample_count": len(samples), + "step_ms": { + "mean": round(statistics.fmean(step_ms), 6), + "p95": round(sorted(step_ms)[int(len(step_ms) * 0.95) - 1], 6), + "max": round(max(step_ms), 6), + }, + "first_sample": samples[0] if samples else None, + "last_sample": samples[-1] if samples else None, + } + print(json.dumps(result, ensure_ascii=False, indent=2)) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/research-tests/2026-06-22-motrixsim-web-preview/scripts/render_evidence_screenshots.mjs b/research-tests/2026-06-22-motrixsim-web-preview/scripts/render_evidence_screenshots.mjs new file mode 100644 index 0000000..d560f49 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/scripts/render_evidence_screenshots.mjs @@ -0,0 +1,121 @@ +import fs from 'node:fs'; +import path from 'node:path'; + +const root = new URL('..', import.meta.url).pathname; +const artifacts = path.join(root, 'artifacts'); +const outDir = path.join(root, 'figures', 'test-screenshots'); +fs.mkdirSync(outDir, { recursive: true }); + +function escapeXml(value) { + return String(value) + .replaceAll('&', '&') + .replaceAll('<', '<') + .replaceAll('>', '>') + .replaceAll('"', '"'); +} + +function wrapLine(line, max = 92) { + const chunks = []; + let rest = line; + while (rest.length > max) { + let cut = rest.lastIndexOf(' ', max); + if (cut < 40) cut = max; + chunks.push(rest.slice(0, cut)); + rest = rest.slice(cut).trimStart(); + } + chunks.push(rest); + return chunks; +} + +function terminalSvg({ title, subtitle, lines, width = 1440 }) { + const wrapped = lines.flatMap((line) => wrapLine(line)); + const lineHeight = 24; + const height = Math.max(640, 150 + wrapped.length * lineHeight); + const body = wrapped.map((line, index) => { + const color = + line.includes('succeeded') || line.includes('"ok": true') || line.includes('OK') ? '#8bd17c' : + line.includes('FAIL') || line.includes('Error') ? '#ff8a8a' : + line.trim().startsWith('__') || line.startsWith('==') ? '#9cdcfe' : '#d7e2ef'; + return `${escapeXml(line)}`; + }).join('\n'); + return ` + + + + + + ${escapeXml(title)} + ${escapeXml(subtitle)} + ${body} +`; +} + +function dashboardSvg({ wuyingText, motrix, wasm }) { + const width = 1440; + const height = 860; + const cards = [ + { x: 60, y: 165, title: '无影 SSH / GPU', value: 'SSH OK', detail: 'RTX5880-Ada-48Q / 48GB', color: '#1f9d55' }, + { x: 520, y: 165, title: 'MotrixSim 远端 step', value: `${motrix.step_ms.mean} ms`, detail: `p95 ${motrix.step_ms.p95} ms / ${motrix.steps} steps`, color: '#2563eb' }, + { x: 980, y: 165, title: 'MuJoCo WASM step', value: `${wasm.timingMs.perStep} ms`, detail: `${wasm.package}@${wasm.packageVersion}`, color: '#b45309' } + ]; + const body = cards.map((card) => ` + ${escapeXml(card.title)} + ${escapeXml(card.value)} + ${escapeXml(card.detail)}`).join('\n'); + const barMax = 0.15; + const bars = [ + { label: 'MotrixSim mean step', value: motrix.step_ms.mean, color: '#2563eb' }, + { label: 'MotrixSim p95 step', value: motrix.step_ms.p95, color: '#60a5fa' }, + { label: 'WASM per step', value: wasm.timingMs.perStep, color: '#b45309' }, + { label: 'MotrixSim max step', value: motrix.step_ms.max, color: '#ef4444' } + ].map((bar, index) => { + const y = 460 + index * 68; + const w = Math.max(8, Math.min(720, 720 * bar.value / barMax)); + return `${escapeXml(bar.label)} + + + ${bar.value} ms`; + }).join('\n'); + + return ` + + 真实测试结果汇总 + 基于本地 artifacts 中的无影探测、MotrixSim 状态抽取和 MuJoCo WASM smoke 输出生成。 + ${body} + + Step 耗时对比 + ${bars} + ${escapeXml(wuyingText.split('\n').find((line) => line.includes('NVIDIA')) || '')} +`; +} + +const wuyingText = fs.readFileSync(path.join(artifacts, 'wuying_probe_2026-06-22.log'), 'utf8').trim(); +const motrixText = fs.readFileSync(path.join(artifacts, 'motrix_state_probe_remote_2026-06-22.json'), 'utf8').trim(); +const wasmText = fs.readFileSync(path.join(artifacts, 'mujoco_wasm_smoke_2026-06-22.json'), 'utf8').trim(); +const motrix = JSON.parse(motrixText); +const wasm = JSON.parse(wasmText); + +const files = [ + ['wuying-ssh-gpu.svg', terminalSvg({ + title: '无影 SSH / GPU 探测截图', + subtitle: 'source: artifacts/wuying_probe_2026-06-22.log', + lines: wuyingText.split('\n') + })], + ['motrix-state-probe.svg', terminalSvg({ + title: 'MotrixSim 远端状态抽取截图', + subtitle: 'source: artifacts/motrix_state_probe_remote_2026-06-22.json', + lines: motrixText.split('\n') + })], + ['mujoco-wasm-smoke.svg', terminalSvg({ + title: 'MuJoCo WASM smoke 截图', + subtitle: 'source: artifacts/mujoco_wasm_smoke_2026-06-22.json', + lines: wasmText.split('\n') + })], + ['metrics-summary.svg', dashboardSvg({ wuyingText, motrix, wasm })] +]; + +for (const [name, svg] of files) { + fs.writeFileSync(path.join(outDir, name), svg); +} + +console.log(JSON.stringify({ ok: true, outDir, files: files.map(([name]) => path.join(outDir, name)) }, null, 2)); diff --git a/research-tests/2026-06-22-motrixsim-web-preview/scripts/wuying_probe.sh b/research-tests/2026-06-22-motrixsim-web-preview/scripts/wuying_probe.sh new file mode 100644 index 0000000..83afcd6 --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/scripts/wuying_probe.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Probe the documented digua Wuying cloud desktop without copying credentials +# into this repository. Override WUYING_HOST/WUYING_USER/WUYING_KEY if needed. + +WUYING_HOST="${WUYING_HOST:-39.106.101.95}" +WUYING_USER="${WUYING_USER:-root}" +WUYING_KEY="${WUYING_KEY:-/Users/d-robotics/workSpace/document/80-private/orgs/drobotics/keys/wuying-39.106.101.95_ed25519}" +CONNECT_TIMEOUT="${CONNECT_TIMEOUT:-12}" + +ssh_opts=( + -i "${WUYING_KEY}" + -o BatchMode=yes + -o StrictHostKeyChecking=accept-new + -o ConnectTimeout="${CONNECT_TIMEOUT}" +) + +echo "== tcp ==" +if command -v nc >/dev/null 2>&1; then + nc -G "${CONNECT_TIMEOUT}" -vz "${WUYING_HOST}" 22 || true +else + echo "nc unavailable" +fi + +echo "== ssh ==" +ssh "${ssh_opts[@]}" "${WUYING_USER}@${WUYING_HOST}" 'bash -s' <<'REMOTE' +set -euo pipefail +echo "__HOST__"; hostname +echo "__DATE__"; date -Is +echo "__GPU__"; nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv,noheader || true +echo "__PYTHON__"; python3 --version || true +echo "__CONDA__"; command -v conda || true +echo "__MOTRIX_IMPORT__" +python3 - <<'PY' || true +mods = ["motrixsim", "mujoco", "torch", "numpy"] +for name in mods: + try: + mod = __import__(name) + print(name, "OK", getattr(mod, "__version__", "unknown")) + except Exception as exc: + print(name, "FAIL", type(exc).__name__, str(exc)[:160]) +PY +echo "__PATHS__" +for path in /opt/motrixlab /opt/mujoco /root/motrix-lerobot /opt/gs_playground_real2sim_48q /root/gs_playground; do + if [ -e "$path" ]; then + printf '%s\t' "$path" + du -sh "$path" 2>/dev/null | awk '{print $1}' || true + fi +done +REMOTE diff --git a/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package-lock.json b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package-lock.json new file mode 100644 index 0000000..839cb6e --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package-lock.json @@ -0,0 +1,19 @@ +{ + "name": "motrixsim-web-preview-wasm-smoke", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "motrixsim-web-preview-wasm-smoke", + "dependencies": { + "@mujoco/mujoco": "3.9.0" + } + }, + "node_modules/@mujoco/mujoco": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@mujoco/mujoco/-/mujoco-3.9.0.tgz", + "integrity": "sha512-dob2Dec5IM06ZRVM/F3ZT5UaSs9lWV5UPLHVcAbVe+riWf75B7YzfmIRVJWfA/8bHlDOUdM8tAJzFBP8buU6hw==", + "license": "Apache-2.0" + } + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package.json b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package.json new file mode 100644 index 0000000..d35502c --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/package.json @@ -0,0 +1,11 @@ +{ + "name": "motrixsim-web-preview-wasm-smoke", + "private": true, + "type": "module", + "scripts": { + "smoke": "node smoke.mjs" + }, + "dependencies": { + "@mujoco/mujoco": "3.9.0" + } +} diff --git a/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/smoke.mjs b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/smoke.mjs new file mode 100644 index 0000000..2cf67da --- /dev/null +++ b/research-tests/2026-06-22-motrixsim-web-preview/web-wasm-smoke/smoke.mjs @@ -0,0 +1,54 @@ +import loadMujoco from '@mujoco/mujoco'; +import { performance } from 'node:perf_hooks'; + +const xml = ` + `; + +const loadStart = performance.now(); +const mujoco = await loadMujoco(); +const loadMs = performance.now() - loadStart; + +const compileStart = performance.now(); +const model = mujoco.MjModel.from_xml_string(xml); +const data = new mujoco.MjData(model); +const compileMs = performance.now() - compileStart; + +const steps = 2000; +const stepStart = performance.now(); +for (let i = 0; i < steps; i += 1) { + mujoco.mj_step(model, data); +} +const stepMs = performance.now() - stepStart; + +const result = { + ok: true, + package: '@mujoco/mujoco', + packageVersion: '3.9.0', + node: process.version, + model: { + nq: model.nq, + nv: model.nv, + nbody: model.nbody, + ngeom: model.ngeom + }, + timingMs: { + wasmLoad: Number(loadMs.toFixed(3)), + modelCompile: Number(compileMs.toFixed(3)), + totalStep: Number(stepMs.toFixed(3)), + perStep: Number((stepMs / steps).toFixed(6)) + }, + qposHead: Array.from(data.qpos.slice(0, 7)).map((value) => Number(value.toFixed(6))) +}; + +data.delete(); +model.delete(); + +console.log(JSON.stringify(result, null, 2)); diff --git a/research-tests/product-acceptance/all-bound-store-scene-concurrent-long.png b/research-tests/product-acceptance/all-bound-store-scene-concurrent-long.png new file mode 100644 index 0000000..1326ebb Binary files /dev/null and b/research-tests/product-acceptance/all-bound-store-scene-concurrent-long.png differ diff --git a/research-tests/product-acceptance/all-bound-store-scene-concurrent.png b/research-tests/product-acceptance/all-bound-store-scene-concurrent.png new file mode 100644 index 0000000..0a3715d Binary files /dev/null and b/research-tests/product-acceptance/all-bound-store-scene-concurrent.png differ diff --git a/research-tests/product-acceptance/all-bound-store-scene-long.png b/research-tests/product-acceptance/all-bound-store-scene-long.png new file mode 100644 index 0000000..fea93b1 Binary files /dev/null and b/research-tests/product-acceptance/all-bound-store-scene-long.png differ diff --git a/research-tests/product-acceptance/all-bound-store-scene.png b/research-tests/product-acceptance/all-bound-store-scene.png new file mode 100644 index 0000000..5a6e2e6 Binary files /dev/null and b/research-tests/product-acceptance/all-bound-store-scene.png differ diff --git a/research-tests/product-acceptance/latest-acceptance-probe.json b/research-tests/product-acceptance/latest-acceptance-probe.json new file mode 100644 index 0000000..4291a9b --- /dev/null +++ b/research-tests/product-acceptance/latest-acceptance-probe.json @@ -0,0 +1,83 @@ +{ + "schema": "motrixsim-web.acceptance-probe.v1", + "startedAt": "2026-06-23T08:44:24.787Z", + "finishedAt": "2026-06-23T08:44:25.254Z", + "frontendUrl": "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18090%2Fmanifest&v=acceptance-probe", + "manifestUrl": "http://127.0.0.1:18090/manifest", + "result": "pass", + "summary": { + "passed": 9, + "warned": 0, + "failed": 0, + "total": 9 + }, + "scene": { + "name": "active_g1_store_scene.xml", + "objectCount": 636, + "meshObjectCount": 627, + "bodyBoundObjectCount": 615, + "stateMode": "poll", + "controlUrl": "http://127.0.0.1:18090/control" + }, + "lastStateFrame": { + "step": 1042, + "paused": false, + "bodyCount": 582 + }, + "checks": [ + { + "id": "frontend", + "label": "Frontend page", + "state": "pass", + "detail": "HTTP 200 http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18090%2Fmanifest&v=acceptance-probe" + }, + { + "id": "manifest", + "label": "Scene manifest", + "state": "pass", + "detail": "HTTP 200 http://127.0.0.1:18090/manifest" + }, + { + "id": "objects", + "label": "Objects present", + "state": "pass", + "detail": "636 objects" + }, + { + "id": "body-bindings", + "label": "Body bindings", + "state": "pass", + "detail": "615 body-bound objects" + }, + { + "id": "assets", + "label": "Mesh assets", + "state": "pass", + "detail": "627 mesh objects" + }, + { + "id": "fallbacks", + "label": "Fallback materials", + "state": "pass", + "detail": "0 fallback-tagged objects" + }, + { + "id": "state", + "label": "State endpoint", + "state": "pass", + "detail": "HTTP 200 http://127.0.0.1:18090/state" + }, + { + "id": "state-bodies", + "label": "State bodies", + "state": "pass", + "detail": "582 bodies in frame" + }, + { + "id": "control", + "label": "Control endpoint configured", + "state": "pass", + "detail": "http://127.0.0.1:18090/control" + } + ] +} diff --git a/research-tests/product-acceptance/local-upload-asset-debug.png b/research-tests/product-acceptance/local-upload-asset-debug.png new file mode 100644 index 0000000..a8d5cf7 Binary files /dev/null and b/research-tests/product-acceptance/local-upload-asset-debug.png differ diff --git a/research-tests/product-acceptance/local-upload-asset-e2e.png b/research-tests/product-acceptance/local-upload-asset-e2e.png new file mode 100644 index 0000000..192c38a Binary files /dev/null and b/research-tests/product-acceptance/local-upload-asset-e2e.png differ diff --git a/research-tests/product-acceptance/local-upload-debug.png b/research-tests/product-acceptance/local-upload-debug.png new file mode 100644 index 0000000..7cc0ec6 Binary files /dev/null and b/research-tests/product-acceptance/local-upload-debug.png differ diff --git a/research-tests/product-acceptance/local-upload-fixture/meshes/tri.obj b/research-tests/product-acceptance/local-upload-fixture/meshes/tri.obj new file mode 100644 index 0000000..4fc49b9 --- /dev/null +++ b/research-tests/product-acceptance/local-upload-fixture/meshes/tri.obj @@ -0,0 +1,9 @@ +o uploaded_triangle +v 0 0 0 +v 1 0 0 +v 0 1 0 +v 0 0 0.8 +f 1 2 4 +f 2 3 4 +f 3 1 4 +f 1 3 2 diff --git a/research-tests/product-acceptance/local-upload-fixture/upload-scene.manifest.json b/research-tests/product-acceptance/local-upload-fixture/upload-scene.manifest.json new file mode 100644 index 0000000..1014a42 --- /dev/null +++ b/research-tests/product-acceptance/local-upload-fixture/upload-scene.manifest.json @@ -0,0 +1,51 @@ +{ + "version": "1.0", + "name": "Local Upload Sidecar Fixture", + "units": "m", + "coordinateSystem": { + "up": "Z", + "handedness": "right" + }, + "materials": [ + { + "id": "uploaded_blue", + "color": "#38bdf8", + "roughness": 0.5 + } + ], + "objects": [ + { + "id": "uploaded_floor", + "name": "Uploaded floor", + "geometry": { + "kind": "primitive", + "primitive": "box", + "size": [3, 3, 0.04] + }, + "pose": { + "position": [0, 0, -0.02] + }, + "material": "uploaded_blue", + "receiveShadow": true + }, + { + "id": "uploaded_obj_mesh", + "name": "Uploaded OBJ mesh", + "geometry": { + "kind": "mesh", + "url": "meshes/tri.obj", + "format": "obj" + }, + "pose": { + "position": [0, 0, 0.12], + "scale": [0.5, 0.5, 0.5] + }, + "material": "uploaded_blue", + "castShadow": true, + "receiveShadow": true + } + ], + "state": { + "mode": "none" + } +} diff --git a/research-tests/product-acceptance/local-upload-scene-pack-e2e.png b/research-tests/product-acceptance/local-upload-scene-pack-e2e.png new file mode 100644 index 0000000..4c98c73 Binary files /dev/null and b/research-tests/product-acceptance/local-upload-scene-pack-e2e.png differ diff --git a/research-tests/tmp-asset-upload-e2e.png b/research-tests/tmp-asset-upload-e2e.png new file mode 100644 index 0000000..d1a3fe4 Binary files /dev/null and b/research-tests/tmp-asset-upload-e2e.png differ diff --git a/research-tests/tmp-scene-upload-e2e.png b/research-tests/tmp-scene-upload-e2e.png new file mode 100644 index 0000000..1d8b18d Binary files /dev/null and b/research-tests/tmp-scene-upload-e2e.png differ diff --git a/research-tests/tmp-upload-preview.png b/research-tests/tmp-upload-preview.png new file mode 100644 index 0000000..0f4e46d Binary files /dev/null and b/research-tests/tmp-upload-preview.png differ diff --git a/scripts/acceptance-probe.mjs b/scripts/acceptance-probe.mjs new file mode 100644 index 0000000..4e699ee --- /dev/null +++ b/scripts/acceptance-probe.mjs @@ -0,0 +1,120 @@ +import { mkdir, writeFile } from "node:fs/promises"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +const rootDir = resolve(dirname(fileURLToPath(import.meta.url)), ".."); +const defaultManifest = "http://127.0.0.1:18090/manifest"; +const defaultFrontend = `http://127.0.0.1:5173/?manifest=${encodeURIComponent(defaultManifest)}&v=acceptance-probe`; +const frontendUrl = new URL(process.argv[2] ?? process.env.MOTRIXSIM_WEB_URL ?? defaultFrontend); +const manifestUrl = process.env.MOTRIXSIM_MANIFEST_URL ?? frontendUrl.searchParams.get("manifest") ?? defaultManifest; +const outputPath = resolve(rootDir, process.env.MOTRIXSIM_ACCEPTANCE_OUTPUT ?? "research-tests/product-acceptance/latest-acceptance-probe.json"); + +async function fetchJson(url) { + const response = await fetch(url, { cache: "no-store" }); + const text = await response.text(); + let json; + try { + json = JSON.parse(text); + } catch { + json = undefined; + } + return { ok: response.ok, status: response.status, url: response.url, json, text }; +} + +async function fetchHead(url) { + const response = await fetch(url, { method: "HEAD", cache: "no-store" }); + return { ok: response.ok, status: response.status, url: response.url }; +} + +function check(id, label, ok, detail, level = "fail") { + return { id, label, state: ok ? "pass" : level, detail }; +} + +const startedAt = new Date().toISOString(); +const checks = []; +let manifest; +let stateFrame; + +try { + const frontend = await fetchHead(frontendUrl); + checks.push(check("frontend", "Frontend page", frontend.ok, `HTTP ${frontend.status} ${frontend.url}`)); +} catch (error) { + checks.push(check("frontend", "Frontend page", false, error.message)); +} + +try { + const manifestResponse = await fetchJson(manifestUrl); + manifest = manifestResponse.json; + checks.push(check("manifest", "Scene manifest", manifestResponse.ok && Array.isArray(manifest?.objects), `HTTP ${manifestResponse.status} ${manifestResponse.url}`)); +} catch (error) { + checks.push(check("manifest", "Scene manifest", false, error.message)); +} + +const objects = Array.isArray(manifest?.objects) ? manifest.objects : []; +const meshes = objects.filter((object) => object?.geometry?.kind === "mesh"); +const fallbackObjects = objects.filter((object) => String(object?.material ?? "").toLowerCase().includes("fallback")); +const bodyBindings = objects.filter((object) => typeof object?.body === "string" && object.body.length > 0); + +checks.push(check("objects", "Objects present", objects.length > 0, `${objects.length} objects`)); +checks.push(check("body-bindings", "Body bindings", bodyBindings.length > 0, `${bodyBindings.length} body-bound objects`, "warn")); +checks.push(check("assets", "Mesh assets", meshes.length > 0, `${meshes.length} mesh objects`, "warn")); +checks.push(check("fallbacks", "Fallback materials", fallbackObjects.length === 0, `${fallbackObjects.length} fallback-tagged objects`, "warn")); + +if (manifest?.state?.url) { + const stateUrl = new URL(manifest.state.url, manifestUrl).href; + try { + const state = await fetchJson(stateUrl); + stateFrame = state.json; + checks.push(check("state", "State endpoint", state.ok && typeof stateFrame === "object", `HTTP ${state.status} ${state.url}`)); + checks.push(check("state-bodies", "State bodies", Object.keys(stateFrame?.bodies ?? {}).length > 0, `${Object.keys(stateFrame?.bodies ?? {}).length} bodies in frame`, "warn")); + } catch (error) { + checks.push(check("state", "State endpoint", false, error.message)); + } +} else { + checks.push(check("state", "State endpoint", false, "manifest has no state.url", "warn")); +} + +const controlUrl = manifest?.state?.controlUrl + ? new URL(manifest.state.controlUrl, manifestUrl).href + : manifest?.state?.url + ? new URL(String(manifest.state.url).replace(/\/state$/, "/control"), manifestUrl).href + : undefined; +checks.push(check("control", "Control endpoint configured", Boolean(controlUrl), controlUrl ?? "missing", "warn")); + +const failed = checks.filter((item) => item.state === "fail").length; +const warned = checks.filter((item) => item.state === "warn").length; +const passed = checks.filter((item) => item.state === "pass").length; +const result = failed > 0 ? "fail" : warned > 0 ? "warn" : "pass"; +const report = { + schema: "motrixsim-web.acceptance-probe.v1", + startedAt, + finishedAt: new Date().toISOString(), + frontendUrl: frontendUrl.href, + manifestUrl, + result, + summary: { passed, warned, failed, total: checks.length }, + scene: manifest + ? { + name: manifest.name, + objectCount: objects.length, + meshObjectCount: meshes.length, + bodyBoundObjectCount: bodyBindings.length, + stateMode: manifest.state?.mode ?? "none", + controlUrl, + } + : undefined, + lastStateFrame: stateFrame + ? { + step: stateFrame.step, + time: stateFrame.time, + paused: stateFrame.paused, + bodyCount: Object.keys(stateFrame.bodies ?? {}).length, + } + : undefined, + checks, +}; + +await mkdir(dirname(outputPath), { recursive: true }); +await writeFile(outputPath, `${JSON.stringify(report, null, 2)}\n`); +console.log(JSON.stringify(report, null, 2)); +process.exitCode = failed > 0 ? 1 : 0; diff --git a/scripts/generate-composite-manifest.mjs b/scripts/generate-composite-manifest.mjs new file mode 100644 index 0000000..c03cf70 --- /dev/null +++ b/scripts/generate-composite-manifest.mjs @@ -0,0 +1,142 @@ +#!/usr/bin/env node +import { writeFile } from "node:fs/promises"; +import path from "node:path"; + +const G1_URL = process.env.G1_MANIFEST_URL || "http://127.0.0.1:18087/manifest"; +const STORE_URL = process.env.STORE_MANIFEST_URL || "http://127.0.0.1:18085/manifest"; +const OUT_FILE = process.argv[2] || "public/generated/g1-store-blocks-lite.manifest.json"; +const STORE_PRODUCT_LIMIT = Number(process.env.STORE_PRODUCT_LIMIT || "90"); + +function resolveManifestUrls(manifest, manifestUrl) { + const copy = structuredClone(manifest); + if (copy.state?.url) copy.state.url = new URL(copy.state.url, manifestUrl).href; + if (copy.state?.controlUrl) copy.state.controlUrl = new URL(copy.state.controlUrl, manifestUrl).href; + for (const object of copy.objects || []) { + if (object.geometry?.kind === "mesh" && object.geometry.url) { + object.geometry.url = new URL(object.geometry.url, manifestUrl).href; + } + } + for (const material of copy.materials || []) { + if (material.textureUrl) { + material.textureUrl = new URL(material.textureUrl, manifestUrl).href; + } + } + return copy; +} + +function prefixMaterial(id, prefix) { + if (!id || id === "default" || id === "fallback") return id; + return `${prefix}_${id}`; +} + +function tuneStoreMaterial(material) { + const next = { ...material }; + if (next.id === "store_Metal_White") { + next.color = "#687382"; + next.roughness = 0.84; + next.metalness = 0.02; + return next; + } + if (next.id.startsWith("store_Cans_")) { + next.roughness = 0.5; + next.metalness = 0.12; + return next; + } + if (next.id.startsWith("store_Bottle_") || next.id.startsWith("store_Tetra_")) { + next.roughness = 0.48; + next.metalness = 0.0; + return next; + } + return next; +} + +function prefixManifest(manifest, prefix, objectFilter = () => true) { + const materialMap = new Map(); + const materials = []; + for (const material of manifest.materials || []) { + const id = prefixMaterial(material.id, prefix); + materialMap.set(material.id, id); + const next = { ...material, id }; + materials.push(prefix === "store" ? tuneStoreMaterial(next) : next); + } + const objects = (manifest.objects || []).filter(objectFilter).map((object) => { + const next = structuredClone(object); + next.id = `${prefix}_${object.id}`; + next.name = object.name ? `${prefix}_${object.name}` : next.id; + if (next.material) { + next.material = materialMap.get(next.material) || prefixMaterial(next.material, prefix); + } + if (next.geometry?.materialOverride) { + next.geometry.materialOverride = materialMap.get(next.geometry.materialOverride) || prefixMaterial(next.geometry.materialOverride, prefix); + } + return next; + }); + return { materials, objects }; +} + +async function loadManifest(url) { + const response = await fetch(url, { cache: "no-store" }); + if (!response.ok) { + throw new Error(`${url} ${response.status}`); + } + return resolveManifestUrls(await response.json(), url); +} + +const [g1, store] = await Promise.all([loadManifest(G1_URL), loadManifest(STORE_URL)]); +let productCount = 0; +const storeFilter = (object) => { + const url = object.geometry?.url || ""; + if (url.includes("Shelf")) return true; + if (productCount < STORE_PRODUCT_LIMIT) { + productCount += 1; + return true; + } + return false; +}; + +const g1Part = prefixManifest(g1, "g1"); +const storePart = prefixManifest(store, "store", storeFilter); +const materials = [ + ...g1Part.materials, + ...storePart.materials, + { id: "demo_red", color: "#e11d48", roughness: 0.55 }, + { id: "demo_blue", color: "#2563eb", roughness: 0.55 }, + { id: "demo_green", color: "#16a34a", roughness: 0.55 }, + { id: "demo_yellow", color: "#eab308", roughness: 0.55 }, +]; +const objects = [ + ...g1Part.objects, + ...storePart.objects, + { id: "demo_cube_red", name: "demo_cube_red", geometry: { kind: "primitive", primitive: "box", size: [0.12, 0.12, 0.12] }, material: "demo_red", pose: { position: [0.85, -0.45, 0.06] }, castShadow: true, receiveShadow: true }, + { id: "demo_cube_blue", name: "demo_cube_blue", geometry: { kind: "primitive", primitive: "box", size: [0.1, 0.16, 0.09] }, material: "demo_blue", pose: { position: [1.05, -0.28, 0.05], euler: [0, 0, 0.4] }, castShadow: true, receiveShadow: true }, + { id: "demo_ball_green", name: "demo_ball_green", geometry: { kind: "primitive", primitive: "sphere", radius: 0.075 }, material: "demo_green", pose: { position: [0.65, -0.22, 0.08] }, castShadow: true, receiveShadow: true }, + { id: "demo_capsule_yellow", name: "demo_capsule_yellow", geometry: { kind: "primitive", primitive: "capsule", radius: 0.035, length: 0.22 }, material: "demo_yellow", pose: { position: [1.2, -0.55, 0.08], euler: [0, 1.5708, 0.25] }, castShadow: true, receiveShadow: true }, +]; + +const manifest = { + version: "1.0", + name: "G1 + Store Lite + Demo blocks", + description: "Composite visual manifest: complete G1 with live MotrixSim state, selected Store shelves/products, and demo primitives.", + units: "m", + coordinateSystem: g1.coordinateSystem || { up: "Z" }, + materials, + objects, + lights: [ + { type: "ambient", color: "#ffffff", intensity: 0.24 }, + { type: "hemisphere", color: "#e0f2fe", intensity: 0.72 }, + { type: "directional", color: "#ffffff", intensity: 2.15, position: [4, -5, 8] }, + { type: "directional", color: "#dbeafe", intensity: 0.85, position: [-4, 3, 4] }, + ], + camera: { position: [3.4, -4.4, 2.2], target: [0.35, 0.55, 0.9], fov: 46 }, + state: g1.state, + controls: g1.controls, + composite: { + type: "visual-manifest-merge-lite", + sources: [G1_URL, STORE_URL], + storeObjects: storePart.objects.length, + note: "Store/demo objects are visual/static; G1 live state/control comes from 18087.", + }, +}; + +await writeFile(path.resolve(OUT_FILE), `${JSON.stringify(manifest, null, 2)}\n`); +console.log(JSON.stringify({ output: OUT_FILE, objects: objects.length, materials: materials.length, storeObjects: storePart.objects.length }, null, 2)); diff --git a/scripts/verify-control-preview.mjs b/scripts/verify-control-preview.mjs new file mode 100644 index 0000000..a7e22e9 --- /dev/null +++ b/scripts/verify-control-preview.mjs @@ -0,0 +1,97 @@ +#!/usr/bin/env node +import { chromium } from "playwright"; +import { mkdir, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const url = process.argv[2] || "http://127.0.0.1:5173/"; +const outDir = process.argv[3] || "test-results/control-preview"; +const minObjects = Number(process.env.MIN_OBJECTS || "1"); +const minMeshes = Number(process.env.MIN_MESHES || "0"); +const verifyTimeoutMs = Number(process.env.VERIFY_TIMEOUT_MS || "45000"); + +async function waitForReady(page) { + await page.waitForFunction(([requiredObjects, requiredMeshes]) => { + const objects = Number(document.querySelector("#stat-objects")?.textContent || "0"); + const meshes = Number(document.querySelector("#stat-meshes")?.textContent || "0"); + const step = document.querySelector("#stat-step")?.textContent || "-"; + const control = document.querySelector("#control-status")?.textContent || ""; + return objects >= requiredObjects && meshes >= requiredMeshes && step !== "-" && control.includes("ready"); + }, [minObjects, minMeshes], { timeout: verifyTimeoutMs }); +} + +async function stats(page) { + return page.evaluate(() => ({ + step: Number(document.querySelector("#stat-step")?.textContent || "-1"), + paused: document.querySelector("#stat-paused")?.textContent || "", + control: document.querySelector("#control-status")?.textContent || "", + meshes: document.querySelector("#stat-meshes")?.textContent || "", + objects: document.querySelector("#stat-objects")?.textContent || "", + stateStatus: document.querySelector("#state-status")?.textContent || "", + })); +} + +async function clickAndWait(page, buttonSelector, predicate) { + await page.locator(buttonSelector).click(); + await page.waitForFunction(predicate, undefined, { timeout: 10000 }); + return stats(page); +} + +await mkdir(outDir, { recursive: true }); +const browser = await chromium.launch({ headless: true }); +const page = await browser.newPage({ viewport: { width: 1280, height: 720 }, deviceScaleFactor: 1 }); +await page.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await page.goto(url, { waitUntil: "domcontentloaded" }); +await waitForReady(page); + +const pause = await clickAndWait(page, "#control-pause", () => + (document.querySelector("#control-status")?.textContent || "").includes("pause ok") + && (document.querySelector("#stat-paused")?.textContent || "") === "true", +); +await page.waitForTimeout(800); +const pauseLater = await stats(page); + +await page.locator("#control-step").click(); +await page.waitForFunction((previousStep) => { + const step = Number(document.querySelector("#stat-step")?.textContent || "-1"); + const control = document.querySelector("#control-status")?.textContent || ""; + return control.includes("step ok") && step === previousStep + 1; +}, pauseLater.step, { timeout: 10000 }); +const step = await stats(page); + +const reset = await clickAndWait(page, "#control-reset", () => + (document.querySelector("#control-status")?.textContent || "").includes("reset ok") + && Number(document.querySelector("#stat-step")?.textContent || "-1") === 0, +); + +await page.locator("#control-resume").click(); +await page.waitForFunction(() => { + const stepValue = Number(document.querySelector("#stat-step")?.textContent || "-1"); + const paused = document.querySelector("#stat-paused")?.textContent || ""; + const control = document.querySelector("#control-status")?.textContent || ""; + return control.includes("resume ok") && paused === "false" && stepValue > 0; +}, undefined, { timeout: 10000 }); +const resume = await stats(page); + +await page.screenshot({ path: path.join(outDir, "control-preview-desktop.jpg"), fullPage: true }); +await browser.close(); + +const evidence = { + captured_at: new Date().toISOString(), + url, + pause, + pauseLater, + step, + reset, + resume, + verification: { + pause_stopped: pauseLater.step === pause.step, + step_once_incremented: step.step === pauseLater.step + 1, + reset_zero: reset.step === 0, + resume_advanced: resume.step > reset.step && resume.paused === "false", + min_objects: minObjects, + min_meshes: minMeshes, + timeout_ms: verifyTimeoutMs, + }, +}; +await writeFile(path.join(outDir, "control-preview-evidence.json"), JSON.stringify(evidence, null, 2)); +console.log(JSON.stringify(evidence, null, 2)); diff --git a/scripts/verify-go2-policy-motion.mjs b/scripts/verify-go2-policy-motion.mjs new file mode 100644 index 0000000..44e5f8d --- /dev/null +++ b/scripts/verify-go2-policy-motion.mjs @@ -0,0 +1,111 @@ +#!/usr/bin/env node +import { chromium } from "playwright"; +import { mkdir, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const url = process.argv[2] || "http://127.0.0.1:5173/?manifest=http%3A%2F%2F127.0.0.1%3A18086%2Fmanifest"; +const outDir = process.argv[3] || "test-results/go2-policy-motion"; +const verifyTimeoutMs = Number(process.env.VERIFY_TIMEOUT_MS || "60000"); +const minDistance = Number(process.env.MIN_GO2_DISTANCE || "0.5"); + +async function waitForReady(page) { + await page.waitForFunction(() => { + const objects = Number(document.querySelector("#stat-objects")?.textContent || "0"); + const meshes = Number(document.querySelector("#stat-meshes")?.textContent || "0"); + const control = document.querySelector("#control-status")?.textContent || ""; + const state = document.querySelector("#state-status")?.textContent || ""; + return objects >= 30 && meshes >= 20 && control.includes("ready") && state.includes("connected"); + }, undefined, { timeout: verifyTimeoutMs }); +} + +async function readState(page) { + return page.evaluate(async () => { + const controlUrl = window.__motrixPreviewDebug?.getControlUrl?.(); + if (!controlUrl) { + throw new Error("missing control URL"); + } + const response = await fetch(controlUrl.replace(/\/control$/, "/state"), { cache: "no-store" }); + return response.json(); + }); +} + +async function sendControl(page, payload) { + return page.evaluate(async (body) => { + const controlUrl = window.__motrixPreviewDebug?.getControlUrl?.(); + if (!controlUrl) { + throw new Error("missing control URL"); + } + const response = await fetch(controlUrl, { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify(body), + }); + return response.json(); + }, payload); +} + +function xyDistance(a, b) { + return Math.hypot(Number(b[0]) - Number(a[0]), Number(b[1]) - Number(a[1])); +} + +await mkdir(outDir, { recursive: true }); +const browser = await chromium.launch({ headless: true }); +const page = await browser.newPage({ viewport: { width: 1360, height: 820 }, deviceScaleFactor: 1 }); +await page.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await page.goto(url, { waitUntil: "domcontentloaded" }); +await waitForReady(page); + +await sendControl(page, { action: "reset" }); +await sendControl(page, { action: "resume" }); +await page.waitForTimeout(700); +const before = await readState(page); + +await page.mouse.click(920, 360); +await page.keyboard.down("w"); +await page.waitForTimeout(1700); +const during = await readState(page); +await page.keyboard.up("w"); +await page.waitForTimeout(400); +const after = await readState(page); + +await page.screenshot({ path: path.join(outDir, "go2-policy-motion-after-w.jpg"), fullPage: true }); +await browser.close(); + +const distance = xyDistance(before.bodies.base.pos, during.bodies.base.pos); +const evidence = { + captured_at: new Date().toISOString(), + url, + policy: during.policy, + before: { + step: before.step, + paused: before.paused, + command: before.command, + base_pos: before.bodies.base.pos, + }, + during_w: { + step: during.step, + paused: during.paused, + command: during.command, + base_pos: during.bodies.base.pos, + }, + after_keyup: { + step: after.step, + paused: after.paused, + command: after.command, + base_pos: after.bodies.base.pos, + }, + verification: { + policy_loaded: during.policy === "go2_policy.onnx", + w_command_active: JSON.stringify(during.command) === JSON.stringify([1, 0, 0]), + keyup_stopped_command: JSON.stringify(after.command) === JSON.stringify([0, 0, 0]), + base_moved_xy: distance > minDistance, + base_distance_xy: distance, + min_distance: minDistance, + }, +}; +await writeFile(path.join(outDir, "go2-policy-motion-evidence.json"), JSON.stringify(evidence, null, 2)); +if (!evidence.verification.policy_loaded || !evidence.verification.w_command_active || !evidence.verification.keyup_stopped_command || !evidence.verification.base_moved_xy) { + console.error(JSON.stringify(evidence, null, 2)); + process.exit(1); +} +console.log(JSON.stringify(evidence, null, 2)); diff --git a/scripts/verify-joint-control.mjs b/scripts/verify-joint-control.mjs new file mode 100644 index 0000000..d1fd8c5 --- /dev/null +++ b/scripts/verify-joint-control.mjs @@ -0,0 +1,127 @@ +#!/usr/bin/env node +import { chromium } from "playwright"; +import { mkdir, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const url = process.argv[2] || "http://127.0.0.1:5173/"; +const outDir = process.argv[3] || "test-results/joint-control"; +const minObjects = Number(process.env.MIN_OBJECTS || "50"); +const minMeshes = Number(process.env.MIN_MESHES || "40"); +const verifyTimeoutMs = Number(process.env.VERIFY_TIMEOUT_MS || "60000"); +const jointName = process.env.TEST_JOINT || "joint2"; +const jointValue = Number(process.env.TEST_JOINT_VALUE || "0.6"); + +async function waitForReady(page) { + await page.waitForFunction(([requiredObjects, requiredMeshes]) => { + const objects = Number(document.querySelector("#stat-objects")?.textContent || "0"); + const meshes = Number(document.querySelector("#stat-meshes")?.textContent || "0"); + const step = document.querySelector("#stat-step")?.textContent || "-"; + const control = document.querySelector("#control-status")?.textContent || ""; + const jointStatus = document.querySelector("#joint-status")?.textContent || ""; + const options = document.querySelectorAll("#joint-select option").length; + return objects >= requiredObjects + && meshes >= requiredMeshes + && step !== "-" + && control.includes("ready") + && options >= 1 + && jointStatus.includes("ready"); + }, [minObjects, minMeshes], { timeout: verifyTimeoutMs }); +} + +async function readState(page) { + return page.evaluate(async () => { + const controlUrl = window.__motrixPreviewDebug?.getControlUrl?.(); + if (!controlUrl) { + throw new Error("missing control URL"); + } + const stateUrl = controlUrl.replace(/\/control$/, "/state"); + const response = await fetch(stateUrl, { cache: "no-store" }); + return response.json(); + }); +} + +async function readDom(page) { + return page.evaluate(() => ({ + objects: document.querySelector("#stat-objects")?.textContent || "", + meshes: document.querySelector("#stat-meshes")?.textContent || "", + paused: document.querySelector("#stat-paused")?.textContent || "", + control: document.querySelector("#control-status")?.textContent || "", + jointStatus: document.querySelector("#joint-status")?.textContent || "", + selectedJoint: document.querySelector("#joint-select")?.value || "", + jointValue: document.querySelector("#joint-value")?.value || "", + })); +} + +await mkdir(outDir, { recursive: true }); +const browser = await chromium.launch({ headless: true }); +const page = await browser.newPage({ viewport: { width: 1280, height: 720 }, deviceScaleFactor: 1 }); +await page.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await page.goto(url, { waitUntil: "domcontentloaded" }); +await waitForReady(page); + +await page.getByRole("button", { name: "Home", exact: true }).click(); +await page.waitForFunction(() => + (document.querySelector("#control-status")?.textContent || "").includes("home ok"), +undefined, { timeout: 10000 }); +const before = await readState(page); + +await page.locator("#joint-select").selectOption(jointName); +await page.locator("#joint-value").fill(String(jointValue)); +await page.getByRole("button", { name: "Set Joint", exact: true }).click(); +await page.waitForFunction(([name, value]) => { + const control = document.querySelector("#control-status")?.textContent || ""; + const status = document.querySelector("#joint-status")?.textContent || ""; + const inputValue = Number(document.querySelector("#joint-value")?.value || "NaN"); + return control.includes("set_joint ok") + && status.includes(`${name} set`) + && Math.abs(inputValue - Number(value)) < 0.02; +}, [jointName, jointValue], { timeout: 10000 }); +const afterJoint = await readState(page); + +await page.getByRole("button", { name: "Open Grip", exact: true }).click(); +await page.waitForFunction(() => + (document.querySelector("#control-status")?.textContent || "").includes("gripper ok") + && (document.querySelector("#joint-status")?.textContent || "").includes("gripper open"), +undefined, { timeout: 10000 }); +const afterGrip = await readState(page); +const dom = await readDom(page); + +await page.screenshot({ path: path.join(outDir, "joint-control-desktop.jpg"), fullPage: true }); +await browser.close(); + +const handBefore = before.bodies?.hand; +const handAfter = afterJoint.bodies?.hand; +const jointAfter = afterJoint.joints?.[jointName]?.pos; +const fingerAfter = afterGrip.joints?.finger_joint1?.pos; + +const evidence = { + captured_at: new Date().toISOString(), + url, + joint_name: jointName, + joint_target: jointValue, + dom, + before: { + paused: before.paused, + joint: before.joints?.[jointName], + hand: handBefore, + }, + after_joint: { + paused: afterJoint.paused, + joint: afterJoint.joints?.[jointName], + hand: handAfter, + }, + after_gripper: { + finger_joint1: afterGrip.joints?.finger_joint1, + finger_joint2: afterGrip.joints?.finger_joint2, + }, + verification: { + joint_value_applied: Math.abs(Number(jointAfter) - jointValue) < 0.02, + hand_pose_changed: JSON.stringify(handBefore) !== JSON.stringify(handAfter), + gripper_opened: Number(fingerAfter) > 0.035, + min_objects: minObjects, + min_meshes: minMeshes, + timeout_ms: verifyTimeoutMs, + }, +}; +await writeFile(path.join(outDir, "joint-control-evidence.json"), JSON.stringify(evidence, null, 2)); +console.log(JSON.stringify(evidence, null, 2)); diff --git a/scripts/verify-motrix-input.mjs b/scripts/verify-motrix-input.mjs new file mode 100644 index 0000000..ac3c63c --- /dev/null +++ b/scripts/verify-motrix-input.mjs @@ -0,0 +1,188 @@ +#!/usr/bin/env node +import { chromium } from "playwright"; +import { mkdir, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const url = process.argv[2] || "http://127.0.0.1:5173/"; +const outDir = process.argv[3] || "test-results/motrix-input"; +const minObjects = Number(process.env.MIN_OBJECTS || "1"); +const minMeshes = Number(process.env.MIN_MESHES || "0"); +const verifyTimeoutMs = Number(process.env.VERIFY_TIMEOUT_MS || "60000"); + +async function waitForReady(page) { + await page.waitForFunction(([requiredObjects, requiredMeshes]) => { + const objects = Number(document.querySelector("#stat-objects")?.textContent || "0"); + const meshes = Number(document.querySelector("#stat-meshes")?.textContent || "0"); + const step = document.querySelector("#stat-step")?.textContent || "-"; + const control = document.querySelector("#control-status")?.textContent || ""; + const input = document.querySelector("#input-status")?.textContent || ""; + const actuators = document.querySelector("#actuator-status")?.textContent || ""; + const actuatorOptions = document.querySelectorAll("#actuator-select option").length; + return objects >= requiredObjects + && meshes >= requiredMeshes + && step !== "-" + && control.includes("ready") + && input.includes("ready") + && actuators.includes("ready") + && actuatorOptions >= 1; + }, [minObjects, minMeshes], { timeout: verifyTimeoutMs }); +} + +async function readState(page) { + return page.evaluate(async () => { + const controlUrl = window.__motrixPreviewDebug?.getControlUrl?.(); + if (!controlUrl) { + throw new Error("missing control URL"); + } + const stateUrl = controlUrl.replace(/\/control$/, "/state"); + const response = await fetch(stateUrl, { cache: "no-store" }); + return response.json(); + }); +} + +async function readDom(page) { + return page.evaluate(() => ({ + objects: document.querySelector("#stat-objects")?.textContent || "", + meshes: document.querySelector("#stat-meshes")?.textContent || "", + paused: document.querySelector("#stat-paused")?.textContent || "", + step: document.querySelector("#stat-step")?.textContent || "", + control: document.querySelector("#control-status")?.textContent || "", + inputStatus: document.querySelector("#input-status")?.textContent || "", + inputKeys: document.querySelector("#input-keys")?.textContent || "", + inputCommand: document.querySelector("#input-command")?.textContent || "", + actuatorStatus: document.querySelector("#actuator-status")?.textContent || "", + selectedActuator: document.querySelector("#actuator-select")?.value || "", + actuatorValue: document.querySelector("#actuator-value")?.value || "", + })); +} + +async function waitForCommand(page, expected) { + await page.waitForFunction(([commandText]) => { + const command = document.querySelector("#input-command")?.textContent || ""; + const control = document.querySelector("#control-status")?.textContent || ""; + return command === commandText && control.includes("command ok"); + }, [expected], { timeout: 10000 }); +} + +async function waitForResetState(page) { + await page.waitForFunction(async () => { + const controlUrl = window.__motrixPreviewDebug?.getControlUrl?.(); + if (!controlUrl) { + return false; + } + const response = await fetch(controlUrl.replace(/\/control$/, "/state"), { cache: "no-store" }); + const state = await response.json(); + return state.step === 0 + && state.paused === true + && JSON.stringify(state.command) === JSON.stringify([0, 0, 0]); + }, undefined, { timeout: 12000 }); + await page.waitForFunction(() => { + const command = document.querySelector("#input-command")?.textContent || ""; + return command === "0.00 / 0.00 / 0.00"; + }, undefined, { timeout: 10000 }); +} + +await mkdir(outDir, { recursive: true }); +const browser = await chromium.launch({ headless: true }); +const page = await browser.newPage({ viewport: { width: 1360, height: 820 }, deviceScaleFactor: 1 }); +await page.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await page.goto(url, { waitUntil: "domcontentloaded" }); +await waitForReady(page); +await page.evaluate(() => document.querySelector(".sidebar")?.scrollTo(0, 0)); +await page.screenshot({ path: path.join(outDir, "motrix-input-ready.jpg"), fullPage: true }); + +const initial = await readState(page); + +await page.keyboard.press("Space"); +await page.waitForFunction((wasPaused) => { + const control = document.querySelector("#control-status")?.textContent || ""; + const paused = document.querySelector("#stat-paused")?.textContent || ""; + return control.includes("toggle ok") && paused === String(!wasPaused); +}, initial.paused, { timeout: 10000 }); +const afterToggle = await readState(page); + +await page.keyboard.press("KeyR"); +await waitForResetState(page); +const afterReset = await readState(page); + +await page.keyboard.down("w"); +await waitForCommand(page, "1.00 / 0.00 / 0.00"); +const afterForward = await readState(page); + +await page.keyboard.up("w"); +await waitForCommand(page, "0.00 / 0.00 / 0.00"); +const afterStop = await readState(page); + +const actuatorTarget = await page.evaluate(() => { + const select = document.querySelector("#actuator-select"); + const valueInput = document.querySelector("#actuator-value"); + const min = Number(valueInput?.getAttribute("min") || "-1"); + const max = Number(valueInput?.getAttribute("max") || "1"); + const name = select?.value || ""; + const preferred = max > 0.2 ? max * 0.35 : max; + const fallback = min < -0.2 ? min * 0.35 : min; + const value = Math.abs(preferred) > 0.001 ? preferred : fallback; + return { name, value: Math.max(min, Math.min(max, value)) }; +}); +await page.locator("#actuator-value").fill(String(actuatorTarget.value)); +await page.getByRole("button", { name: "Set Actuator", exact: true }).click(); +await page.waitForFunction(([name]) => { + const control = document.querySelector("#control-status")?.textContent || ""; + const status = document.querySelector("#actuator-status")?.textContent || ""; + return control.includes("set_actuator ok") && status.includes(`${name} set`); +}, [actuatorTarget.name], { timeout: 10000 }); +const afterActuator = await readState(page); +const dom = await readDom(page); + +await page.screenshot({ path: path.join(outDir, "motrix-input-desktop.jpg"), fullPage: true }); +await page.mouse.move(910, 370); +await page.mouse.down({ button: "right" }); +await page.mouse.move(970, 410, { steps: 8 }); +await page.mouse.up({ button: "right" }); +await page.waitForTimeout(120); +await page.screenshot({ path: path.join(outDir, "motrix-camera-focus.jpg"), fullPage: true }); +await browser.close(); + +const actuatorState = afterActuator.actuators?.[actuatorTarget.name]; +const evidence = { + captured_at: new Date().toISOString(), + url, + initial: { + step: initial.step, + paused: initial.paused, + command: initial.command, + }, + after_toggle: { + step: afterToggle.step, + paused: afterToggle.paused, + }, + after_reset: { + step: afterReset.step, + paused: afterReset.paused, + command: afterReset.command, + }, + after_forward_key: { + command: afterForward.command, + }, + after_stop_key: { + command: afterStop.command, + }, + actuator: { + name: actuatorTarget.name, + target: actuatorTarget.value, + state: actuatorState, + }, + dom, + verification: { + space_toggled_pause: afterToggle.paused === !initial.paused, + r_reset_step_zero: afterReset.step === 0, + w_sent_forward_command: JSON.stringify(afterForward.command) === JSON.stringify([1, 0, 0]), + keyup_sent_stop_command: JSON.stringify(afterStop.command) === JSON.stringify([0, 0, 0]), + actuator_ctrl_applied: Math.abs(Number(actuatorState?.ctrl) - actuatorTarget.value) < 0.02, + min_objects: minObjects, + min_meshes: minMeshes, + timeout_ms: verifyTimeoutMs, + }, +}; +await writeFile(path.join(outDir, "motrix-input-evidence.json"), JSON.stringify(evidence, null, 2)); +console.log(JSON.stringify(evidence, null, 2)); diff --git a/scripts/verify-universal-preview.mjs b/scripts/verify-universal-preview.mjs new file mode 100644 index 0000000..a993c9b --- /dev/null +++ b/scripts/verify-universal-preview.mjs @@ -0,0 +1,90 @@ +#!/usr/bin/env node +import { chromium } from "playwright"; +import { mkdir, writeFile } from "node:fs/promises"; +import path from "node:path"; + +const url = process.argv[2] || "http://127.0.0.1:5173/"; +const outDir = process.argv[3] || "test-results"; +const minObjects = Number(process.env.MIN_OBJECTS || "5"); +const minMeshes = Number(process.env.MIN_MESHES || "1"); +const verifyTimeoutMs = Number(process.env.VERIFY_TIMEOUT_MS || "10000"); + +async function collect(page) { + await page.waitForFunction(([requiredObjects, requiredMeshes]) => { + const objects = Number(document.querySelector("#stat-objects")?.textContent || "0"); + const meshes = Number(document.querySelector("#stat-meshes")?.textContent || "0"); + const pixels = Number(document.querySelector("#stat-pixels")?.textContent || "0"); + const step = document.querySelector("#stat-step")?.textContent || "-"; + return objects >= requiredObjects && meshes >= requiredMeshes && pixels > 0 && step !== "-"; + }, [minObjects, minMeshes], { timeout: verifyTimeoutMs }); + const before = await page.evaluate(() => ({ + step: document.querySelector("#stat-step")?.textContent || "", + pixels: document.querySelector("#stat-pixels")?.textContent || "", + })); + await page.waitForTimeout(1200); + const after = await page.evaluate(() => { + const canvas = document.querySelector("canvas"); + return { + title: document.title, + h1: document.querySelector("h1")?.textContent || "", + status: document.querySelector("#status")?.textContent || "", + stateStatus: document.querySelector("#state-status")?.textContent || "", + manifest: document.querySelector("#stat-manifest")?.textContent || "", + objects: document.querySelector("#stat-objects")?.textContent || "", + bindings: document.querySelector("#stat-bindings")?.textContent || "", + meshes: document.querySelector("#stat-meshes")?.textContent || "", + fallbacks: document.querySelector("#stat-fallbacks")?.textContent || "", + step: document.querySelector("#stat-step")?.textContent || "", + pixels: document.querySelector("#stat-pixels")?.textContent || "", + viewport: { width: window.innerWidth, height: window.innerHeight }, + canvas: canvas ? { + width: canvas.width, + height: canvas.height, + clientWidth: canvas.clientWidth, + clientHeight: canvas.clientHeight, + tag: canvas.tagName, + className: canvas.className, + } : null, + shellColumns: getComputedStyle(document.querySelector(".shell")).gridTemplateColumns, + shellRows: getComputedStyle(document.querySelector(".shell")).gridTemplateRows, + }; + }); + return { before, after }; +} + +await mkdir(outDir, { recursive: true }); +const browser = await chromium.launch({ headless: true }); +const desktop = await browser.newPage({ viewport: { width: 1280, height: 720 }, deviceScaleFactor: 1 }); +await desktop.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await desktop.goto(url, { waitUntil: "domcontentloaded" }); +const desktopResult = await collect(desktop); +await desktop.screenshot({ path: path.join(outDir, "universal-three-preview-desktop-playwright.jpg"), fullPage: true }); + +const mobile = await browser.newPage({ viewport: { width: 390, height: 844 }, deviceScaleFactor: 2, isMobile: true }); +await mobile.addInitScript(() => window.localStorage.setItem("motrixsim-web-locale", "en-US")); +await mobile.goto(url, { waitUntil: "domcontentloaded" }); +const mobileResult = await collect(mobile); +await mobile.screenshot({ path: path.join(outDir, "universal-three-preview-mobile-playwright.jpg"), fullPage: true }); +await browser.close(); + +const evidence = { + captured_at: new Date().toISOString(), + url, + desktop: desktopResult, + mobile: mobileResult, + verification: { + desktop_nonblank: Number(desktopResult.after.pixels) > 0, + desktop_mesh_requirement_met: Number(desktopResult.after.meshes) >= minMeshes, + desktop_replay_moved: desktopResult.before.step !== desktopResult.after.step, + mobile_actual_viewport: mobileResult.after.viewport.width <= 430, + mobile_nonblank: Number(mobileResult.after.pixels) > 0, + mobile_mesh_requirement_met: Number(mobileResult.after.meshes) >= minMeshes, + mobile_replay_moved: mobileResult.before.step !== mobileResult.after.step, + mobile_stacked_layout: mobileResult.after.shellColumns.trim().split(" ").length === 1, + min_objects: minObjects, + min_meshes: minMeshes, + timeout_ms: verifyTimeoutMs, + }, +}; +await writeFile(path.join(outDir, "universal-three-preview-playwright-evidence.json"), JSON.stringify(evidence, null, 2)); +console.log(JSON.stringify(evidence, null, 2)); diff --git a/scripts/verify_exporter_features.py b/scripts/verify_exporter_features.py new file mode 100644 index 0000000..e81a68f --- /dev/null +++ b/scripts/verify_exporter_features.py @@ -0,0 +1,97 @@ +#!/usr/bin/env python3 +"""Focused regression checks for MJCF-to-manifest feature coverage.""" + +from __future__ import annotations + +import tempfile +from pathlib import Path + +import sys + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tools")) +from export_mjcf_manifest import collect_manifest # noqa: E402 + + +def require(condition: bool, message: str) -> None: + if not condition: + raise AssertionError(message) + + +def by_id(items: list[dict], key: str = "id") -> dict[str, dict]: + return {str(item[key]): item for item in items} + + +def main() -> int: + with tempfile.TemporaryDirectory() as tmp: + root = Path(tmp) + assets = root / "assets" + assets.mkdir() + (assets / "mesh.obj").write_text("o mesh\nv 0 0 0\nv 1 0 0\nv 0 1 0\nf 1 2 3\n", encoding="utf-8") + (assets / "tex.png").write_bytes( + bytes.fromhex( + "89504e470d0a1a0a0000000d4948445200000001000000010802000000907753de" + "0000000c49444154789c6360f8ffff3f0005fe02fea73581e60000000049454e44ae426082" + ) + ) + scene = root / "scene.xml" + scene.write_text( + """ + + + + + + + + + + + + + + + + + + + + + + + + + + +""".strip(), + encoding="utf-8", + ) + + manifest = collect_manifest(scene, "/assets") + materials = by_id(manifest["materials"]) + objects = by_id(manifest["objects"]) + + require("skip_collision" not in objects, "nested collision default should be skipped") + require(objects["ground"]["geometry"]["primitive"] == "plane", "plane geom should export as plane") + require(materials["mat_checker"]["textureKind"] == "checker", "builtin checker should be preserved") + require(materials["mat_checker"]["textureColors"] == ["#ff0000", "#00ff00"], "checker colors should export") + require(materials["mat_checker"]["textureRepeat"] == [4.0, 5.0], "checker repeat should export") + require(materials["mat_file"]["textureUrl"] == "/assets/assets/tex.png", "assetdir texture path should export") + require(materials["mat_file"]["textureRepeat"] == [2.0, 3.0], "file texture repeat should export") + require(materials["mat_file"]["roughness"] == 0.2, "roughness should export") + require(materials["mat_file"]["metalness"] == 0.4, "metalness should export") + require(objects["meshgeom"]["geometry"]["url"] == "/assets/assets/mesh.obj", "assetdir mesh path should export") + require(objects["meshgeom"]["pose"]["scale"] == [0.1, 0.2, 0.3], "mesh scale should become object pose scale") + require(objects["inlinegeom"]["geometry"]["kind"] == "convexMesh", "inline mesh vertices should export") + require(len(objects["inlinegeom"]["geometry"]["vertices"]) == 12, "inline mesh vertices should be retained") + require(objects["bar"]["geometry"]["primitive"] == "cylinder", "fromto cylinder should export as cylinder") + require(abs(objects["bar"]["geometry"]["length"] - 1.0) < 1e-9, "fromto length should drive cylinder length") + require(objects["bar"]["pose"]["position"] == [0.0, 0.5, 0.0], "fromto midpoint should drive pose") + require(objects["bar"]["pose"]["quaternion"] != [0.0, 0.0, 0.0, 1.0], "fromto should rotate local z axis") + require("/assets/assets/tex.png" in manifest["_assetFiles"], "texture asset should be served by bridge") + + print("exporter feature checks ok") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/server/headless_motrix_bridge.py b/server/headless_motrix_bridge.py new file mode 100644 index 0000000..8ab529e --- /dev/null +++ b/server/headless_motrix_bridge.py @@ -0,0 +1,1084 @@ +#!/usr/bin/env python3 +"""Headless MotrixSim bridge for the universal Three.js preview. + +Run this on a Linux server with MotrixSim installed. It exposes: +- /manifest: Three.js scene manifest generated from the XML scene. +- /state: live MotrixSim body pose state. +- /control: pause/resume/reset/step controls for the simulation loop. +- /health: process health. + +No display server is required for state streaming. Native simulator rendering is +not used here; the browser does the visual rendering. +""" + +from __future__ import annotations + +import argparse +import json +import mimetypes +import socket +import statistics +import sys +import threading +import time +import xml.etree.ElementTree as ET +import math +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path +from typing import Any +from urllib.parse import unquote + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tools")) +from export_mjcf_manifest import collect_manifest # noqa: E402 + + +DEFAULT_ASSET_ROOT = Path("/opt/Motphys/motrixsim-docs/examples/assets") +DEFAULT_G1_SCENE = DEFAULT_ASSET_ROOT / "g1/g1_mjx_feetonly.xml" +DEFAULT_STORE_SCENE = DEFAULT_ASSET_ROOT / "store/store.xml" + +COMPOSE_PROP_SPECS: dict[str, dict[str, Any]] = { + "red-cube": { + "material": "demo_red", + "geom": {"type": "box", "size": "0.06 0.06 0.06", "density": "350"}, + "z": 0.12, + }, + "blue-crate": { + "material": "demo_blue", + "geom": {"type": "box", "size": "0.05 0.08 0.045", "density": "350"}, + "z": 0.11, + "euler": "0 0 0.4", + }, + "green-ball": { + "material": "demo_green", + "geom": {"type": "sphere", "size": "0.075", "density": "260"}, + "z": 0.16, + }, + "yellow-capsule": { + "material": "demo_yellow", + "geom": {"type": "capsule", "size": "0.035 0.11", "density": "260"}, + "z": 0.12, + "euler": "0 1.5708 0.25", + }, + "pallet": { + "material": "demo_pallet", + "geom": {"type": "box", "size": "0.21 0.14 0.04", "density": "450"}, + "z": 0.09, + }, +} + + +def safe_name(raw: Any, fallback: str) -> str: + text = str(raw or fallback) + cleaned = "".join(ch if ch.isalnum() or ch in {"_", "-"} else "_" for ch in text) + return cleaned.strip("_") or fallback + + +def parse_float_list(raw: str | None, default: list[float]) -> list[float]: + if not raw: + return list(default) + values = [float(value) for value in raw.split()] + if len(values) != len(default): + return list(default) + return values + + +def format_float_list(values: list[float]) -> str: + return " ".join(f"{value:.9g}" for value in values) + + +def quat_conjugate(quat: list[float]) -> list[float]: + return [quat[0], -quat[1], -quat[2], -quat[3]] + + +def quat_normalize(quat: list[float]) -> list[float]: + length = math.sqrt(sum(value * value for value in quat)) + if length <= 1e-12: + return [1.0, 0.0, 0.0, 0.0] + return [value / length for value in quat] + + +def quat_mul(left: list[float], right: list[float]) -> list[float]: + lw, lx, ly, lz = left + rw, rx, ry, rz = right + return [ + lw * rw - lx * rx - ly * ry - lz * rz, + lw * rx + lx * rw + ly * rz - lz * ry, + lw * ry - lx * rz + ly * rw + lz * rx, + lw * rz + lx * ry - ly * rx + lz * rw, + ] + + +def quat_rotate(quat: list[float], vec: list[float]) -> list[float]: + rotated = quat_mul(quat_mul(quat, [0.0, *vec]), quat_conjugate(quat)) + return rotated[1:4] + + +def world_to_local_pose( + body_pos: list[float], + body_quat: list[float], + geom_pos: list[float], + geom_quat: list[float], +) -> tuple[list[float], list[float]]: + inv_quat = quat_conjugate(quat_normalize(body_quat)) + delta = [geom_pos[index] - body_pos[index] for index in range(3)] + local_pos = quat_rotate(inv_quat, delta) + local_quat = quat_normalize(quat_mul(inv_quat, quat_normalize(geom_quat))) + return local_pos, local_quat + + +def is_direct_visual_geom(element: ET.Element) -> bool: + if element.tag != "geom": + return False + class_name = element.get("class") or "" + if class_name.endswith("_visual") or class_name == "store_visual": + return True + mesh_name = element.get("mesh") or "" + return mesh_name.startswith("V_") + + +def wrap_worldbody_visual_geom_groups(root: ET.Element) -> int: + """Give direct visual geoms real bodies so browser drags can sync to MotrixSim.""" + worldbody = root.find("worldbody") + if worldbody is None: + return 0 + + children = list(worldbody) + rebuilt: list[ET.Element] = [] + wrapped_count = 0 + index = 0 + while index < len(children): + child = children[index] + if not is_direct_visual_geom(child): + rebuilt.append(child) + index += 1 + continue + + group = [child] + index += 1 + while index < len(children): + candidate = children[index] + if candidate.tag != "geom" or is_direct_visual_geom(candidate): + break + group.append(candidate) + index += 1 + + body_pos = parse_float_list(child.get("pos"), [0.0, 0.0, 0.0]) + body_quat = quat_normalize(parse_float_list(child.get("quat"), [1.0, 0.0, 0.0, 0.0])) + mesh_name = child.get("mesh") or child.get("name") or f"world_geom_{wrapped_count}" + body = ET.Element("body", { + "name": safe_name(f"store_movable_{mesh_name}_{wrapped_count}", f"store_movable_{wrapped_count}"), + "pos": format_float_list(body_pos), + "quat": format_float_list(body_quat), + "gravcomp": "1", + }) + ET.SubElement(body, "inertial", { + "pos": "0 0 0.45", + "mass": "20", + "diaginertia": "2 2 2", + }) + ET.SubElement(body, "freejoint") + + for geom in group: + geom_pos = parse_float_list(geom.get("pos"), [0.0, 0.0, 0.0]) + geom_quat = quat_normalize(parse_float_list(geom.get("quat"), [1.0, 0.0, 0.0, 0.0])) + local_pos, local_quat = world_to_local_pose(body_pos, body_quat, geom_pos, geom_quat) + geom.set("pos", format_float_list(local_pos)) + geom.set("quat", format_float_list(local_quat)) + body.append(geom) + + rebuilt.append(body) + wrapped_count += 1 + + if wrapped_count == 0: + return 0 + worldbody[:] = rebuilt + return wrapped_count + + +def write_namespaced_store_scene(store_scene: Path, output_path: Path) -> Path: + tree = ET.parse(store_scene) + root = tree.getroot() + compiler = root.find("compiler") + asset_dir = compiler.get("assetdir") if compiler is not None else None + if compiler is not None: + root.remove(compiler) + + asset_base = (store_scene.parent / asset_dir).resolve() if asset_dir else store_scene.parent.resolve() + for element in root.iter(): + for attr_name in ("class", "childclass"): + value = element.get(attr_name) + if value and not value.startswith("store_"): + element.set(attr_name, f"store_{value}") + file_name = element.get("file") + if file_name and element.tag in {"mesh", "texture"}: + file_path = Path(file_name) + if not file_path.is_absolute(): + element.set("file", (asset_base / file_name).resolve().as_posix()) + + wrap_worldbody_visual_geom_groups(root) + + output_path.parent.mkdir(parents=True, exist_ok=True) + ET.indent(tree, space=" ") + tree.write(output_path, encoding="unicode") + return output_path + + +def prop_position(index: int, payload: dict[str, Any], spec: dict[str, Any]) -> list[float]: + raw = payload.get("position") + if isinstance(raw, list) and len(raw) >= 3: + return [float(raw[0]), float(raw[1]), float(raw[2])] + row = index // 4 + col = index % 4 + return [0.72 + col * 0.28, -0.48 - row * 0.26, float(spec["z"])] + + +def compose_physical_scene(payload: dict[str, Any], compose_dir: Path) -> Path: + scene_id = str(payload.get("scene") or payload.get("scenePreset") or "g1-store-blocks-physics") + robot_id = str(payload.get("robot") or payload.get("robotPreset") or "none") + if scene_id != "g1-store-blocks-physics": + raise ValueError(f"unsupported physical compose scene: {scene_id}") + if robot_id not in {"none", "g1"}: + raise ValueError("physical compose currently supports the built-in G1 robot only") + if not DEFAULT_G1_SCENE.is_file(): + raise FileNotFoundError(DEFAULT_G1_SCENE.as_posix()) + if not DEFAULT_STORE_SCENE.is_file(): + raise FileNotFoundError(DEFAULT_STORE_SCENE.as_posix()) + + raw_objects = payload.get("objects", []) + if not isinstance(raw_objects, list): + raise ValueError("objects must be a list") + if len(raw_objects) > 24: + raise ValueError("at most 24 physical objects are supported per compose request") + + compose_dir.mkdir(parents=True, exist_ok=True) + store_scene = write_namespaced_store_scene(DEFAULT_STORE_SCENE, compose_dir / "store_namespaced.xml") + scene_path = compose_dir / "active_g1_store_scene.xml" + + mujoco = ET.Element("mujoco", {"model": "motrixsim_web_composed"}) + ET.SubElement(mujoco, "compiler", {"angle": "radian", "autolimits": "true"}) + ET.SubElement(mujoco, "include", {"file": DEFAULT_G1_SCENE.as_posix()}) + ET.SubElement(mujoco, "include", {"file": store_scene.as_posix()}) + ET.SubElement(mujoco, "option", {"gravity": "0 0 -9.8", "timestep": "0.005"}) + ET.SubElement(mujoco, "statistic", {"center": "0.35 0.45 0.85", "extent": "2.6", "meansize": "0.04"}) + + visual = ET.SubElement(mujoco, "visual") + ET.SubElement(visual, "headlight", {"diffuse": "0.6 0.6 0.6", "ambient": "0.3 0.3 0.3", "specular": "0 0 0"}) + ET.SubElement(visual, "rgba", {"haze": "0.15 0.25 0.35 1"}) + ET.SubElement(visual, "global", {"azimuth": "130", "elevation": "-18"}) + ET.SubElement(visual, "quality", {"shadowsize": "8192"}) + + asset = ET.SubElement(mujoco, "asset") + ET.SubElement(asset, "texture", { + "type": "2d", + "name": "combined_ground_checker", + "builtin": "checker", + "mark": "edge", + "rgb1": "0.4314 0.5294 0.6431", + "rgb2": "0.8157 0.8549 0.9059", + "markrgb": "0.8 0.8 0.8", + "width": "300", + "height": "300", + }) + ET.SubElement(asset, "material", { + "name": "combined_ground", + "texture": "combined_ground_checker", + "texuniform": "true", + "texrepeat": "2 2", + "reflectance": "0.2", + }) + for name, rgba in { + "demo_red": "0.9 0.1 0.08 1", + "demo_blue": "0.1 0.35 0.95 1", + "demo_green": "0.1 0.65 0.28 1", + "demo_yellow": "0.95 0.72 0.12 1", + "demo_pallet": "0.63 0.38 0.04 1", + }.items(): + ET.SubElement(asset, "material", {"name": name, "rgba": rgba}) + + worldbody = ET.SubElement(mujoco, "worldbody") + ET.SubElement(worldbody, "light", {"pos": "0 0 2.4", "dir": "0 0 -1", "directional": "true"}) + ET.SubElement(worldbody, "geom", { + "name": "combined_floor", + "size": "0 0 0.02", + "type": "plane", + "material": "combined_ground", + "friction": "0.8", + "condim": "3", + }) + + for index, item in enumerate(raw_objects): + if not isinstance(item, dict): + raise ValueError("each object must be an object") + preset_id = str(item.get("presetId") or item.get("type") or item.get("id") or "") + spec = COMPOSE_PROP_SPECS.get(preset_id) + if spec is None: + raise ValueError(f"unsupported physical object: {preset_id}") + position = prop_position(index, item, spec) + body_attrs = { + "name": safe_name(item.get("id"), f"user_{preset_id}_{index}"), + "pos": f"{position[0]:.6g} {position[1]:.6g} {position[2]:.6g}", + } + if spec.get("euler"): + body_attrs["euler"] = str(spec["euler"]) + body = ET.SubElement(worldbody, "body", body_attrs) + ET.SubElement(body, "freejoint") + geom_attrs = { + **spec["geom"], + "material": str(spec["material"]), + "friction": "0.8", + "condim": "3", + } + ET.SubElement(body, "geom", geom_attrs) + + tree = ET.ElementTree(mujoco) + ET.indent(tree, space=" ") + tree.write(scene_path, encoding="unicode") + return scene_path + + +class Go2PolicyAdapter: + """Headless version of MotrixSim's official Go2 keyboard ONNX controller.""" + + default_joint_pos = [0.1, 0.9, -1.8, -0.1, 0.9, -1.8, 0.1, 0.9, -1.8, -0.1, 0.9, -1.8] + action_scale = 0.5 + lin_vel_scale = 2.0 + ang_vel_scale = 3.0 + body_name = "base" + link_name = "base" + linear_sensor_name = "local_linvel" + gyro_sensor_name = "gyro" + start_actuator_name = "FL_hip" + + def __init__(self, model: Any, policy_path: Path, ctrl_dt: float = 0.02): + import numpy as np + import onnxruntime as ort + + self.np = np + self.model = model + self.policy_path = policy_path + self.policy = ort.InferenceSession(policy_path.as_posix(), providers=["CPUExecutionProvider"]) + self.input_name = self.policy.get_inputs()[0].name + self.output_name = self.policy.get_outputs()[0].name + self.default_angles = np.array(self.default_joint_pos, dtype=np.float32) + self.last_action = np.zeros_like(self.default_angles, dtype=np.float32) + self.counter = 0 + self.n_substeps = max(1, int(round(ctrl_dt / self.model.options.timestep))) + + def initialize(self, data: Any) -> None: + self.apply_actions(self.np.zeros_like(self.default_angles, dtype=self.np.float32), data) + + def scaled_command(self, command: list[float]) -> Any: + return self.np.array([ + command[0] * self.lin_vel_scale, + command[1] * self.lin_vel_scale, + command[2] * self.ang_vel_scale, + ], dtype=self.np.float32) + + def rotate_vector(self, quat_xyzw: Any, vector: Any, inverse: bool = False) -> Any: + quat = self.np.asarray(quat_xyzw, dtype=self.np.float64) + norm = self.np.linalg.norm(quat) + if norm > 1e-9: + quat = quat / norm + xyz = quat[:3] + if inverse: + xyz = -xyz + w = quat[3] + vec = self.np.asarray(vector, dtype=self.np.float64) + return ( + 2.0 * self.np.dot(xyz, vec) * xyz + + (w * w - self.np.dot(xyz, xyz)) * vec + + 2.0 * w * self.np.cross(xyz, vec) + ) + + def get_obs(self, data: Any, command: list[float]) -> Any: + body_index = self.model.get_body_index(self.body_name) + body = self.model.get_body(body_index) + linear_vel = self.model.get_sensor_value(self.linear_sensor_name, data) + gyro = self.model.get_sensor_value(self.gyro_sensor_name, data) + pose = body.get_pose(data) + gravity = self.rotate_vector(pose[3:7], self.np.array([0.0, 0.0, -1.0]), inverse=True) + dof_pos = body.get_joint_dof_pos(data) + dof_vel = body.get_joint_dof_vel(data) + obs = self.np.hstack([ + linear_vel, + gyro, + gravity, + dof_pos - self.default_angles, + dof_vel, + self.last_action, + self.scaled_command(command), + ]) + return obs.astype(self.np.float32) + + def apply_actions(self, actions: Any, data: Any) -> None: + start_actuator_index = self.model.get_actuator_index(self.start_actuator_name) + for index, action in enumerate(actions): + actuator_index = start_actuator_index + index + ctrl = float(action * self.action_scale + self.default_angles[index]) + actuator = self.model.get_actuator(actuator_index) + actuator.set_ctrl(data, ctrl) + + def is_fall(self, data: Any) -> bool: + pose = self.model.get_link(self.link_name).get_pose(data) + rotated_z_axis = self.rotate_vector(pose[3:7], self.np.array([0.0, 0.0, 1.0])) + return float(self.np.dot(rotated_z_axis, self.np.array([0.0, 0.0, 1.0]))) < 0.3 + + def advance(self, data: Any, command: list[float]) -> bool: + self.counter += 1 + self.model.step(data) + if self.is_fall(data): + return True + if self.counter % self.n_substeps == 0: + obs = self.get_obs(data, command) + outputs = self.policy.run([self.output_name], {self.input_name: obs.reshape(1, -1)}) + actions = outputs[0][0] + self.last_action = actions.copy() + self.apply_actions(actions, data) + return False + + +class G1PolicyAdapter(Go2PolicyAdapter): + """Headless version of MotrixSim's official G1 keyboard ONNX controller.""" + + default_joint_pos = [ + -0.312, 0, 0, 0.669, -0.363, 0, + -0.312, 0, 0, 0.669, -0.363, 0, + 0, 0, 0.073, + 0.2, 0.2, 0, 0.6, 0, 0, 0, + 0.2, -0.2, 0, 0.6, 0, 0, 0, + ] + action_scale = 0.5 + lin_vel_scale = 1.0 + ang_vel_scale = 1.0 + body_name = "pelvis" + link_name = "pelvis" + linear_sensor_name = "local_linvel_pelvis" + gyro_sensor_name = "gyro_pelvis" + start_actuator_name = "left_hip_pitch_joint" + + def __init__(self, model: Any, policy_path: Path, ctrl_dt: float = 0.02): + super().__init__(model, policy_path, ctrl_dt) + self.phase = self.np.array([0.0, self.np.pi]) + self.gait_freq = 1.5 + self.phase_dt = 2 * self.np.pi * self.gait_freq * ctrl_dt + + def get_obs(self, data: Any, command: list[float]) -> Any: + body_index = self.model.get_body_index(self.body_name) + body = self.model.get_body(body_index) + linear_vel = self.model.get_sensor_value(self.linear_sensor_name, data) + gyro = self.model.get_sensor_value(self.gyro_sensor_name, data) + pose = body.get_pose(data) + gravity = self.rotate_vector(pose[3:7], self.np.array([0.0, 0.0, -1.0]), inverse=True) + dof_pos = body.get_joint_dof_pos(data) + dof_vel = body.get_joint_dof_vel(data) + phase = self.np.concatenate([self.np.cos(self.phase), self.np.sin(self.phase)]) + obs = self.np.hstack([ + linear_vel, + gyro, + gravity, + self.scaled_command(command), + dof_pos - self.default_angles, + dof_vel, + self.last_action, + phase, + ]) + return obs.astype(self.np.float32) + + def advance(self, data: Any, command: list[float]) -> bool: + fell = super().advance(data, command) + if self.counter % self.n_substeps == 0: + phase_next = self.phase + self.phase_dt + self.phase = self.np.fmod(phase_next + self.np.pi, 2 * self.np.pi) - self.np.pi + return fell + + +def align_manifest_bodies(manifest: dict[str, Any], runtime_body_names: list[str]) -> None: + """Map generated XML body ids to runtime body names when possible. + + MJCF files often omit body names. MotrixSim still exposes generated runtime + names, and state updates only arrive under those names. When the counts line + up, remap manifest bindings so the browser can drive visuals immediately. + """ + existing: list[str] = [] + for obj in manifest.get("objects", []): + body = obj.get("body") + if body and body not in existing: + existing.append(body) + if not existing or len(existing) != len(runtime_body_names): + return + if set(existing) == set(runtime_body_names): + return + mapping = dict(zip(existing, runtime_body_names, strict=False)) + for obj in manifest.get("objects", []): + body = obj.get("body") + if body in mapping: + obj["body"] = mapping[body] + obj["runtimeBodyRemappedFrom"] = body + + +class MotrixRuntime: + def __init__(self, scene: Path, reset_interval: float | None): + import motrixsim as mx + + self.mx = mx + self.scene = scene + self.model = mx.load_model(scene.as_posix()) + self.data = mx.SceneData(self.model) + self.model.forward_kinematic(self.data) + self.body_names = [str(name) for name in getattr(self.model, "body_names", [])] + self.link_names = [str(name) for name in getattr(self.model, "link_names", [])] + self.joint_names = [str(name) for name in getattr(self.model, "joint_names", [])] + self.actuator_names = [str(name) for name in getattr(self.model, "actuator_names", [])] + self.lock = threading.Lock() + self.step = 0 + self.step_ms: list[float] = [] + self.running = True + self.paused = False + self.command: list[float] = [0.0, 0.0, 0.0] + self.policy_adapter = self.create_policy_adapter() + self.policy_name = self.policy_adapter.policy_path.name if self.policy_adapter else None + if self.policy_adapter: + self.policy_adapter.initialize(self.data) + self.model.forward_kinematic(self.data) + self.reset_interval = reset_interval + self.last_reset = time.monotonic() + + def create_policy_adapter(self) -> Go2PolicyAdapter | None: + if "FL_hip" in self.actuator_names and "base" in {*self.body_names, *self.link_names}: + policy_path = self.scene.parent / "go2_policy.onnx" + if not policy_path.is_file(): + policy_path = Path("/opt/Motphys/motrixsim-docs/examples/assets/go2/go2_policy.onnx") + if policy_path.is_file(): + return Go2PolicyAdapter(self.model, policy_path) + if "left_hip_pitch_joint" in self.actuator_names and "pelvis" in {*self.body_names, *self.link_names}: + policy_path = self.scene.parent / "g1_policy.onnx" + if not policy_path.is_file(): + policy_path = Path("/opt/Motphys/motrixsim-docs/examples/assets/g1/g1_policy.onnx") + if policy_path.is_file(): + return G1PolicyAdapter(self.model, policy_path) + return None + + def maybe_reset(self) -> None: + if self.reset_interval is None: + return + if time.monotonic() - self.last_reset < self.reset_interval: + return + self.data.reset(self.model) + self.model.forward_kinematic(self.data) + self.last_reset = time.monotonic() + + def reset_locked(self) -> None: + self.data.reset(self.model) + if self.policy_adapter: + self.policy_adapter.initialize(self.data) + self.model.forward_kinematic(self.data) + self.step = 0 + self.step_ms.clear() + self.command = [0.0, 0.0, 0.0] + self.last_reset = time.monotonic() + + def joint_metadata(self) -> list[dict[str, Any]]: + joints: list[dict[str, Any]] = [] + for name in self.joint_names: + try: + joint = self.model.get_joint(name) + raw_range = getattr(joint, "range", None) + if raw_range is not None: + values = raw_range.tolist()[0] + limit = [float(values[0]), float(values[1])] + else: + limit = None + joints.append({ + "name": name, + "index": int(getattr(joint, "index", len(joints))), + "range": limit, + "value": float(joint.get_dof_pos(self.data)[0]), + }) + except Exception: + continue + return joints + + def actuator_metadata(self) -> list[dict[str, Any]]: + actuators: list[dict[str, Any]] = [] + for name in self.actuator_names: + try: + actuator = self.model.get_actuator(name) + raw_range = getattr(actuator, "ctrl_range", None) + limit = [float(raw_range[0]), float(raw_range[1])] if raw_range else None + actuators.append({ + "name": name, + "index": int(getattr(actuator, "index", len(actuators))), + "range": limit, + "targetName": getattr(actuator, "target_name", None), + "value": float(actuator.get_ctrl(self.data)), + }) + except Exception: + continue + return actuators + + def advance_locked(self, steps: int = 1) -> None: + for _ in range(max(1, steps)): + start = time.perf_counter() + self.maybe_reset() + fell = self.policy_adapter.advance(self.data, self.command) if self.policy_adapter else False + if fell: + self.data.reset(self.model) + self.command = [0.0, 0.0, 0.0] + self.policy_adapter.initialize(self.data) + self.model.forward_kinematic(self.data) + elif not self.policy_adapter: + self.model.step(self.data) + self.step += 1 + elapsed_ms = (time.perf_counter() - start) * 1000.0 + self.step_ms.append(elapsed_ms) + if len(self.step_ms) > 1000: + del self.step_ms[:500] + + def clamp_joint_value(self, joint: Any, value: float) -> float: + raw_range = getattr(joint, "range", None) + if raw_range is None: + return value + values = raw_range.tolist()[0] + return max(float(values[0]), min(float(values[1]), value)) + + def set_joint_locked(self, name: str, value: float) -> float: + joint = self.model.get_joint(name) + clamped = self.clamp_joint_value(joint, float(value)) + joint.set_dof_pos(self.data, clamped) + try: + joint.set_dof_vel(self.data, 0.0) + except Exception: + pass + for actuator_name in self.actuator_names: + try: + actuator = self.model.get_actuator(actuator_name) + if getattr(actuator, "target_name", None) == name: + actuator.set_ctrl(self.data, clamped) + except Exception: + continue + self.model.forward_kinematic(self.data) + return clamped + + def set_gripper_locked(self, value: float) -> float: + applied = float(value) + for name in ("finger_joint1", "finger_joint2"): + if name in self.joint_names: + applied = self.set_joint_locked(name, value) + for actuator_name in self.actuator_names: + try: + actuator = self.model.get_actuator(actuator_name) + if getattr(actuator, "target_name", None) in {"finger_joint1", "finger_joint2"}: + actuator.set_ctrl(self.data, applied) + except Exception: + continue + self.model.forward_kinematic(self.data) + return applied + + def clamp_actuator_value(self, actuator: Any, value: float) -> float: + raw_range = getattr(actuator, "ctrl_range", None) + if raw_range is None: + return value + return max(float(raw_range[0]), min(float(raw_range[1]), value)) + + def set_actuator_locked(self, name: str, value: float) -> float: + actuator = self.model.get_actuator(name) + clamped = self.clamp_actuator_value(actuator, float(value)) + actuator.set_ctrl(self.data, clamped) + target_name = getattr(actuator, "target_name", None) + if target_name in self.joint_names: + try: + joint = self.model.get_joint(target_name) + joint.set_dof_pos(self.data, self.clamp_joint_value(joint, clamped)) + joint.set_dof_vel(self.data, 0.0) + except Exception: + pass + self.model.forward_kinematic(self.data) + return clamped + + def set_command_locked(self, payload: dict[str, Any]) -> list[float]: + raw_command = payload.get("command") + if raw_command is None: + raw_command = [ + payload.get("x", 0.0), + payload.get("y", 0.0), + payload.get("yaw", 0.0), + ] + if not isinstance(raw_command, (list, tuple)) or len(raw_command) != 3: + raise ValueError("command requires [x, y, yaw]") + self.command = [float(raw_command[0]), float(raw_command[1]), float(raw_command[2])] + return list(self.command) + + def set_body_pose_locked(self, payload: dict[str, Any]) -> str: + if not self.paused: + raise ValueError("set_body_pose requires paused simulation") + body_name = str(payload.get("body") or "") + if not body_name: + raise ValueError("set_body_pose requires body") + raw_pos = payload.get("pos") + if raw_pos is None: + raw_pos = payload.get("position") + if not isinstance(raw_pos, (list, tuple)) or len(raw_pos) != 3: + raise ValueError("set_body_pose requires pos [x, y, z]") + body = self.model.get_body(body_name) + pose = [float(value) for value in body.get_pose(self.data)] + raw_quat = payload.get("quat") + if raw_quat is None: + raw_quat = payload.get("quaternion") + quat = pose[3:7] + if raw_quat is not None: + if not isinstance(raw_quat, (list, tuple)) or len(raw_quat) != 4: + raise ValueError("set_body_pose quat must be [x, y, z, w]") + quat = [float(value) for value in raw_quat] + dof_pos = [float(raw_pos[0]), float(raw_pos[1]), float(raw_pos[2]), *quat] + body.set_dof_pos(self.data, dof_pos, True) + try: + body.set_dof_vel(self.data, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0], True) + except Exception: + pass + self.model.forward_kinematic(self.data) + return body_name + + def run(self, hz: float) -> None: + target_dt = 1.0 / hz + while self.running: + start = time.perf_counter() + with self.lock: + if not self.paused: + self.advance_locked(1) + spent = time.perf_counter() - start + if spent < target_dt: + time.sleep(target_dt - spent) + + def control(self, action: str, payload: dict[str, Any] | None = None) -> dict[str, Any]: + payload = payload or {} + steps = int(payload.get("steps") or 1) + with self.lock: + if action == "pause": + self.paused = True + elif action == "resume": + self.paused = False + elif action == "toggle": + self.paused = not self.paused + elif action == "reset": + self.reset_locked() + elif action == "step": + self.paused = True + self.advance_locked(max(1, min(steps, 240))) + elif action == "home": + self.reset_locked() + self.paused = True + elif action == "set_joint": + name = str(payload.get("joint") or "") + if not name: + raise ValueError("set_joint requires joint") + self.set_joint_locked(name, float(payload.get("value", 0.0))) + self.paused = True + elif action == "set_joints": + values = payload.get("values", {}) + if not isinstance(values, dict): + raise ValueError("set_joints values must be an object") + for name, value in values.items(): + self.set_joint_locked(str(name), float(value)) + self.paused = True + elif action == "set_actuator": + name = str(payload.get("actuator") or "") + if not name: + raise ValueError("set_actuator requires actuator") + self.set_actuator_locked(name, float(payload.get("value", 0.0))) + self.paused = True + elif action == "set_actuators": + values = payload.get("values", {}) + if not isinstance(values, dict): + raise ValueError("set_actuators values must be an object") + for name, value in values.items(): + self.set_actuator_locked(str(name), float(value)) + self.paused = True + elif action == "command": + command = self.set_command_locked(payload) + if self.policy_adapter and any(abs(value) > 1e-6 for value in command): + self.paused = False + elif action == "gripper": + self.set_gripper_locked(float(payload.get("value", 0.0))) + self.paused = True + elif action == "set_body_pose": + self.set_body_pose_locked(payload) + self.paused = True + else: + raise ValueError(f"unsupported control action: {action}") + snapshot = self.snapshot(compact=bool(payload.get("compact"))) + snapshot["control_action"] = action + return snapshot + + def pose_for(self, kind: str, name: str) -> dict[str, list[float]]: + obj = self.model.get_link(name) if kind == "link" else self.model.get_body(name) + return { + "pos": [float(v) for v in obj.get_position(self.data)], + "quat": [float(v) for v in obj.get_rotation(self.data)], + } + + def joint_state_locked(self) -> dict[str, Any]: + joints: dict[str, Any] = {} + for meta in self.joint_metadata(): + name = meta["name"] + try: + joint = self.model.get_joint(name) + joints[name] = { + "pos": float(joint.get_dof_pos(self.data)[0]), + "vel": float(joint.get_dof_vel(self.data)[0]), + "range": meta.get("range"), + "index": meta.get("index"), + } + except Exception: + continue + return joints + + def actuator_state_locked(self) -> dict[str, Any]: + actuators: dict[str, Any] = {} + for meta in self.actuator_metadata(): + name = meta["name"] + try: + actuator = self.model.get_actuator(name) + actuators[name] = { + "ctrl": float(actuator.get_ctrl(self.data)), + "range": meta.get("range"), + "index": meta.get("index"), + "targetName": meta.get("targetName"), + } + except Exception: + continue + return actuators + + def snapshot(self, compact: bool = False) -> dict[str, Any]: + with self.lock: + values = list(self.step_ms) + if values: + ordered = sorted(values) + p95 = ordered[max(0, min(len(ordered) - 1, int(len(ordered) * 0.95) - 1))] + mean = statistics.fmean(values) + max_v = max(values) + else: + mean = p95 = max_v = 0.0 + base = { + "ok": True, + "host": socket.gethostname(), + "scene": self.scene.as_posix(), + "step": self.step, + "paused": self.paused, + "running": self.running, + "policy": self.policy_name, + "server_time": time.time(), + "command": list(self.command), + "step_ms": {"mean": mean, "p95": p95, "max": max_v}, + } + if compact: + base["joints"] = self.joint_state_locked() + base["actuators"] = self.actuator_state_locked() + return base + bodies: dict[str, Any] = {} + seen: set[str] = set() + for name in self.link_names: + bodies[name] = self.pose_for("link", name) + seen.add(name) + for name in self.body_names: + if name in seen: + continue + bodies[name] = self.pose_for("body", name) + return { + **base, + "body_names": self.body_names, + "link_names": self.link_names, + "joint_names": self.joint_names, + "bodies": bodies, + "joints": self.joint_state_locked(), + "actuators": self.actuator_state_locked(), + "dof_pos": [float(v) for v in getattr(self.data, "dof_pos", [])], + "dof_vel": [float(v) for v in getattr(self.data, "dof_vel", [])], + "actuator_ctrls": [float(v) for v in getattr(self.data, "actuator_ctrls", [])], + } + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("--scene", required=True, type=Path) + parser.add_argument("--host", default="127.0.0.1") + parser.add_argument("--port", type=int, default=18082) + parser.add_argument("--hz", type=float, default=120.0) + parser.add_argument("--asset-base", default="/assets") + parser.add_argument("--compose-dir", type=Path, default=Path("/tmp/motrixsim-web-composed")) + parser.add_argument("--reset-interval", type=float) + args = parser.parse_args() + + state_lock = threading.Lock() + + def create_manifest(runtime: MotrixRuntime) -> tuple[dict[str, Any], dict[str, Path]]: + payload = collect_manifest(runtime.scene, args.asset_base) + files = { + key: Path(value) + for key, value in payload.pop("_assetFiles", {}).items() + } + payload["controls"] = { + "joints": runtime.joint_metadata(), + "actuators": runtime.actuator_metadata(), + "keyboard": { + "source": "MotrixSim RenderApp examples", + "command": { + "forward": ["w", "up"], + "backward": ["s", "down"], + "strafeLeft": ["left"], + "strafeRight": ["right"], + "yawLeft": ["a"], + "yawRight": ["d"], + }, + "camera": { + "rotate": "left mouse drag", + "pan": "right mouse drag", + "zoom": "mouse wheel", + "focusMarker": True, + }, + }, + } + align_manifest_bodies(payload, runtime.body_names) + return payload, files + + def create_bundle(scene: Path, *, paused: bool = False) -> tuple[MotrixRuntime, dict[str, Any], dict[str, Path], threading.Thread]: + next_runtime = MotrixRuntime(scene, args.reset_interval) + next_runtime.paused = paused + next_manifest, next_asset_files = create_manifest(next_runtime) + next_thread = threading.Thread(target=next_runtime.run, args=(args.hz,), daemon=True) + return next_runtime, next_manifest, next_asset_files, next_thread + + runtime, manifest, asset_files, thread = create_bundle(args.scene) + thread.start() + + def replace_scene(scene: Path, *, paused: bool = True) -> dict[str, Any]: + nonlocal runtime, manifest, asset_files, thread + next_runtime, next_manifest, next_asset_files, next_thread = create_bundle(scene, paused=paused) + with state_lock: + previous_runtime = runtime + runtime = next_runtime + manifest = next_manifest + asset_files = next_asset_files + thread = next_thread + previous_runtime.running = False + next_thread.start() + return { + "ok": True, + "scene": next_runtime.scene.as_posix(), + "manifestUrl": "/manifest", + "stateUrl": "/state", + "objectCount": len(next_manifest.get("objects", [])), + "bodyCount": len(next_runtime.body_names), + "jointCount": len(next_runtime.joint_names), + "actuatorCount": len(next_runtime.actuator_names), + "policy": next_runtime.policy_name, + "manifest": next_manifest, + } + + class Handler(BaseHTTPRequestHandler): + def log_message(self, fmt: str, *values: Any) -> None: + return + + def send_json(self, status: int, payload: dict[str, Any]) -> None: + body = json.dumps(payload, ensure_ascii=False).encode("utf-8") + self.send_response(status) + self.send_header("Content-Type", "application/json; charset=utf-8") + self.send_header("Access-Control-Allow-Origin", "*") + self.send_header("Cache-Control", "no-store") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def send_asset(self, file_path: Path) -> None: + if not file_path.is_file(): + self.send_json(404, {"ok": False, "error": "asset not found"}) + return + body = file_path.read_bytes() + mime_type = mimetypes.guess_type(file_path.as_posix())[0] or "application/octet-stream" + self.send_response(200) + self.send_header("Content-Type", mime_type) + self.send_header("Access-Control-Allow-Origin", "*") + self.send_header("Cache-Control", "public, max-age=3600") + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def do_OPTIONS(self) -> None: + self.send_response(204) + self.send_header("Access-Control-Allow-Origin", "*") + self.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS") + self.send_header("Access-Control-Allow-Headers", "Content-Type") + self.end_headers() + + def do_POST(self) -> None: + request_path = unquote(self.path.split("?", 1)[0]) + try: + length = int(self.headers.get("Content-Length", "0")) + except ValueError: + length = 0 + try: + payload = json.loads(self.rfile.read(length) or b"{}") + if request_path.startswith("/control"): + action = str(payload.get("action") or "") + with state_lock: + active_runtime = runtime + self.send_json(200, active_runtime.control(action, payload)) + return + if request_path.startswith("/compose"): + scene_path = compose_physical_scene(payload, args.compose_dir) + self.send_json(200, replace_scene(scene_path, paused=bool(payload.get("paused", True)))) + return + self.send_json(404, {"ok": False, "error": "not found"}) + except Exception as error: # noqa: BLE001 + self.send_json(400, {"ok": False, "error": str(error)}) + + def do_GET(self) -> None: + request_path = unquote(self.path.split("?", 1)[0]) + if request_path.startswith("/manifest"): + with state_lock: + payload = manifest + self.send_json(200, payload) + return + if request_path.startswith("/state"): + with state_lock: + active_runtime = runtime + self.send_json(200, active_runtime.snapshot()) + return + if request_path.startswith("/health"): + with state_lock: + active_runtime = runtime + self.send_json(200, { + "ok": True, + "host": socket.gethostname(), + "scene": active_runtime.scene.as_posix(), + "compose": "/compose", + }) + return + if request_path.startswith("/assets/"): + with state_lock: + file_path = asset_files.get(request_path) + if file_path is None: + self.send_json(404, {"ok": False, "error": "asset not mapped"}) + return + self.send_asset(file_path) + return + self.send_json(404, {"ok": False, "error": "not found"}) + + server = ThreadingHTTPServer((args.host, args.port), Handler) + print(json.dumps({ + "ok": True, + "url": f"http://{args.host}:{args.port}", + "manifest": f"http://{args.host}:{args.port}/manifest", + "state": f"http://{args.host}:{args.port}/state", + "scene": args.scene.as_posix(), + "body_names": runtime.body_names, + }, ensure_ascii=False), flush=True) + try: + server.serve_forever() + finally: + with state_lock: + runtime.running = False + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/src/i18n.ts b/src/i18n.ts new file mode 100644 index 0000000..9f1ee1b --- /dev/null +++ b/src/i18n.ts @@ -0,0 +1,1089 @@ +export const SUPPORTED_LOCALES = [ + { id: "zh-CN", label: "中文" }, + { id: "en-US", label: "English" }, +] as const; + +export type Locale = (typeof SUPPORTED_LOCALES)[number]["id"]; + +export type MessageKey = + | "app.name" + | "app.title" + | "language.label" + | "section.compose" + | "section.workspace" + | "section.templates" + | "section.assets" + | "section.sceneUpload" + | "section.manifest" + | "section.advancedManifest" + | "section.runtime" + | "section.simControl" + | "section.input" + | "section.joint" + | "section.actuator" + | "section.health" + | "section.acceptance" + | "section.outline" + | "section.properties" + | "section.project" + | "section.savedProjects" + | "section.workflow" + | "section.activity" + | "section.status" + | "label.scene" + | "label.robot" + | "label.object" + | "label.uploadedScene" + | "label.uploadedSceneHint" + | "label.currentScene" + | "label.currentRobot" + | "label.addedObjects" + | "label.simulationSource" + | "label.physicsMode" + | "label.position" + | "label.selectedObject" + | "label.backend" + | "label.validation" + | "label.projectName" + | "label.acceptanceCases" + | "label.runState" + | "label.sceneManifest" + | "label.keys" + | "label.command" + | "label.manifest" + | "label.objects" + | "label.bindings" + | "label.meshes" + | "label.fallbacks" + | "label.physics" + | "label.lastStep" + | "label.paused" + | "label.pixelCheck" + | "button.build" + | "button.physical" + | "button.uploadAsset" + | "button.uploadScene" + | "button.clearUploads" + | "button.add" + | "button.remove" + | "button.duplicate" + | "button.clear" + | "button.applyLayout" + | "button.layoutLine" + | "button.layoutGrid" + | "button.snapGrid" + | "button.dropGround" + | "button.undo" + | "button.redo" + | "button.saveDraft" + | "button.restoreDraft" + | "button.importConfig" + | "button.copyLink" + | "button.exportConfig" + | "button.templateStore" + | "button.templateEmpty" + | "button.templateArm" + | "button.load" + | "button.sample" + | "button.reload" + | "button.pause" + | "button.resume" + | "button.step" + | "button.reset" + | "button.setJoint" + | "button.home" + | "button.openGrip" + | "button.closeGrip" + | "button.setActuator" + | "button.prepareDemo" + | "button.startDemo" + | "button.pauseInspect" + | "button.resetDemo" + | "button.buildReport" + | "button.saveProject" + | "button.loadProject" + | "button.deleteProject" + | "button.capturePng" + | "button.exportPackage" + | "button.exportReport" + | "button.runAcceptance" + | "title.build" + | "title.physical" + | "title.uploadAsset" + | "title.uploadScene" + | "title.clearUploads" + | "title.add" + | "title.remove" + | "title.duplicate" + | "title.clear" + | "title.applyLayout" + | "title.layoutLine" + | "title.layoutGrid" + | "title.snapGrid" + | "title.dropGround" + | "title.undo" + | "title.redo" + | "title.saveDraft" + | "title.restoreDraft" + | "title.importConfig" + | "title.copyLink" + | "title.exportConfig" + | "title.templateStore" + | "title.templateEmpty" + | "title.templateArm" + | "title.load" + | "title.sample" + | "title.reload" + | "title.pause" + | "title.resume" + | "title.step" + | "title.reset" + | "title.joint" + | "title.jointTarget" + | "title.jointValue" + | "title.setJoint" + | "title.home" + | "title.openGrip" + | "title.closeGrip" + | "title.actuator" + | "title.actuatorTarget" + | "title.actuatorValue" + | "title.setActuator" + | "title.prepareDemo" + | "title.startDemo" + | "title.pauseInspect" + | "title.resetDemo" + | "title.buildReport" + | "title.reportText" + | "title.saveProject" + | "title.loadProject" + | "title.deleteProject" + | "title.capturePng" + | "title.exportPackage" + | "title.exportReport" + | "title.runAcceptance" + | "overlay.scene" + | "overlay.dragHint" + | "note.manifest" + | "project.defaultName" + | "backend.frontendOnly" + | "backend.localSim" + | "backend.externalSim" + | "validation.score" + | "placeholder.noScene" + | "empty.props" + | "empty.selection" + | "empty.projects" + | "empty.activity" + | "health.stateOk" + | "health.statePending" + | "health.controlOk" + | "health.controlPending" + | "health.objects" + | "health.pixels" + | "status.booting" + | "status.loading" + | "status.manifestLoaded" + | "status.error" + | "status.builder.ready" + | "status.builder.composing" + | "status.builder.composeReady" + | "status.builder.physicsPreset" + | "status.builder.result" + | "status.workspace.ready" + | "status.workspace.saved" + | "status.workspace.restored" + | "status.workspace.noDraft" + | "status.workspace.shareLoaded" + | "status.workspace.copyOk" + | "status.workspace.copyFailed" + | "status.workspace.exported" + | "status.workspace.imported" + | "status.workspace.importFailed" + | "status.workspace.assetsImported" + | "status.workspace.sceneImported" + | "status.workspace.undo" + | "status.workspace.redo" + | "status.workspace.noUndo" + | "status.workspace.noRedo" + | "status.workspace.layoutLine" + | "status.workspace.layoutGrid" + | "status.workspace.snapGrid" + | "status.workspace.dropGround" + | "status.workflow.ready" + | "status.workflow.preparing" + | "status.workflow.prepared" + | "status.workflow.running" + | "status.workflow.paused" + | "status.workflow.reset" + | "status.workflow.reportReady" + | "status.workflow.reportCopied" + | "status.workflow.error" + | "status.project.ready" + | "status.project.saved" + | "status.project.loaded" + | "status.project.deleted" + | "status.project.missing" + | "status.project.captureSaved" + | "status.project.captureFailed" + | "status.project.packageExported" + | "status.project.packageFailed" + | "status.project.reportExported" + | "status.project.reportFailed" + | "status.project.error" + | "status.acceptance.ready" + | "status.acceptance.running" + | "status.acceptance.pass" + | "status.acceptance.warn" + | "status.acceptance.fail" + | "acceptance.score" + | "acceptance.verdict.ready" + | "acceptance.verdict.pass" + | "acceptance.verdict.warn" + | "acceptance.verdict.fail" + | "acceptance.check.manifest" + | "acceptance.check.backend" + | "acceptance.check.control" + | "acceptance.check.objects" + | "acceptance.check.assets" + | "acceptance.check.pixels" + | "acceptance.check.physics" + | "acceptance.check.report" + | "acceptance.detail.manifestOk" + | "acceptance.detail.manifestPending" + | "acceptance.detail.backendPending" + | "acceptance.detail.controlMissing" + | "acceptance.detail.objects" + | "acceptance.detail.assets" + | "acceptance.detail.pixels" + | "acceptance.detail.reportOk" + | "acceptance.detail.reportPending" + | "acceptance.case.preview.title" + | "acceptance.case.preview.goal" + | "acceptance.case.backend.title" + | "acceptance.case.backend.goal" + | "acceptance.case.control.title" + | "acceptance.case.control.goal" + | "acceptance.case.assets.title" + | "acceptance.case.assets.goal" + | "acceptance.case.evidence.title" + | "acceptance.case.evidence.goal" + | "report.title" + | "report.generatedAt" + | "report.state" + | "report.case" + | "report.check" + | "report.evidence" + | "activity.manifestLoaded" + | "activity.sceneBuilt" + | "activity.projectSaved" + | "activity.projectLoaded" + | "activity.projectDeleted" + | "activity.captureSaved" + | "activity.packageExported" + | "activity.reportReady" + | "activity.workflowPrepared" + | "activity.workflowRun" + | "activity.workflowPaused" + | "activity.workflowReset" + | "activity.layoutLine" + | "activity.layoutGrid" + | "activity.snapGrid" + | "activity.dropGround" + | "activity.projectError" + | "activity.acceptanceRun" + | "activity.reportExported" + | "status.control.pending" + | "status.control.unavailable" + | "status.control.ready" + | "status.control.actionPending" + | "status.control.actionOk" + | "status.control.error" + | "status.input.pending" + | "status.input.unavailable" + | "status.input.ready" + | "status.input.commandPending" + | "status.input.commandSent" + | "status.joints.pending" + | "status.joints.ready" + | "status.joints.unavailable" + | "status.joints.selected" + | "status.joints.set" + | "status.joints.gripperOpen" + | "status.joints.gripperClose" + | "status.actuators.pending" + | "status.actuators.ready" + | "status.actuators.unavailable" + | "status.actuators.selected" + | "status.actuators.set" + | "status.state.pending" + | "state.none" + | "state.replayMissing" + | "state.replay" + | "state.pollMissing" + | "state.pollStatus" + | "state.pollConnected" + | "state.pollError" + | "state.websocketMissing" + | "state.websocketConnected" + | "state.websocketClosed" + | "state.websocketError" + | "state.websocketParseError" + | "physics.visualOnly" + | "physics.backendPhysics" + | "physics.backendState" + | "physics.staticPreview" + | "run.paused" + | "run.running" + | "run.offline" + | "mode.physicalComposed" + | "mode.physicalBackend" + | "mode.sourceBackend" + | "mode.visualComposition" + | "preset.scene.empty" + | "preset.scene.g1StoreBlocksPhysics" + | "preset.scene.storeLite" + | "preset.scene.storeFull" + | "preset.scene.frankaCube" + | "preset.scene.customUpload" + | "preset.robot.none" + | "preset.robot.g1" + | "preset.robot.go2" + | "preset.robot.franka" + | "preset.prop.redCube" + | "preset.prop.blueCrate" + | "preset.prop.greenBall" + | "preset.prop.yellowCapsule" + | "preset.prop.pallet" + | "preset.prop.uploaded"; + +type Messages = Record; +type Params = Record; + +const STORAGE_KEY = "motrixsim-web-locale"; +const DEFAULT_LOCALE: Locale = "zh-CN"; + +const messages: Record = { + "zh-CN": { + "app.name": "MotrixSim Web", + "app.title": "场景构建器", + "language.label": "语言", + "section.compose": "组合场景", + "section.workspace": "工作区", + "section.templates": "场景模板", + "section.assets": "资产库", + "section.sceneUpload": "场景上传", + "section.manifest": "场景描述", + "section.advancedManifest": "高级加载", + "section.runtime": "运行状态", + "section.simControl": "仿真控制", + "section.input": "MotrixSim 输入", + "section.joint": "关节控制", + "section.actuator": "执行器控制", + "section.health": "运行健康", + "section.acceptance": "验收中心", + "section.outline": "场景大纲", + "section.properties": "属性面板", + "section.project": "项目概览", + "section.savedProjects": "项目库", + "section.workflow": "演示流程", + "section.activity": "操作时间线", + "section.status": "状态", + "label.scene": "场景", + "label.robot": "机器人", + "label.object": "物体", + "label.uploadedScene": "已上传场景", + "label.uploadedSceneHint": "可一次上传 .json 场景文件和同目录 mesh/texture/bin 资源;相对路径会自动匹配到本地文件。", + "label.currentScene": "当前场景", + "label.currentRobot": "当前机器人", + "label.addedObjects": "已添加物体", + "label.simulationSource": "仿真来源", + "label.physicsMode": "运行模式", + "label.position": "位置", + "label.selectedObject": "选中对象", + "label.backend": "后端", + "label.validation": "验收", + "label.projectName": "项目名", + "label.acceptanceCases": "验收用例", + "label.runState": "运行态", + "label.sceneManifest": "Scene manifest", + "label.keys": "按键", + "label.command": "指令", + "label.manifest": "Manifest", + "label.objects": "对象数", + "label.bindings": "Body 绑定", + "label.meshes": "网格数", + "label.fallbacks": "Fallback", + "label.physics": "物理", + "label.lastStep": "最近步数", + "label.paused": "已暂停", + "label.pixelCheck": "像素检查", + "button.build": "构建预览", + "button.physical": "物理场景", + "button.uploadAsset": "上传资产", + "button.uploadScene": "上传场景包", + "button.clearUploads": "清空自定义", + "button.add": "添加", + "button.remove": "移除", + "button.duplicate": "复制", + "button.clear": "清空物体", + "button.applyLayout": "应用布局", + "button.layoutLine": "一字排开", + "button.layoutGrid": "网格排列", + "button.snapGrid": "吸附网格", + "button.dropGround": "贴地校准", + "button.undo": "撤销", + "button.redo": "重做", + "button.saveDraft": "保存草稿", + "button.restoreDraft": "恢复草稿", + "button.importConfig": "导入配置", + "button.copyLink": "复制分享链接", + "button.exportConfig": "导出配置", + "button.templateStore": "货架补货", + "button.templateEmpty": "空场景摆放", + "button.templateArm": "单臂抓取", + "button.load": "加载", + "button.sample": "示例", + "button.reload": "重载", + "button.pause": "暂停", + "button.resume": "恢复", + "button.step": "单步", + "button.reset": "重置", + "button.setJoint": "设置关节", + "button.home": "回零", + "button.openGrip": "打开夹爪", + "button.closeGrip": "关闭夹爪", + "button.setActuator": "设置执行器", + "button.prepareDemo": "准备演示", + "button.startDemo": "开始运行", + "button.pauseInspect": "暂停检查", + "button.resetDemo": "复位场景", + "button.buildReport": "生成验收摘要", + "button.saveProject": "保存项目", + "button.loadProject": "加载", + "button.deleteProject": "删除", + "button.capturePng": "导出截图", + "button.exportPackage": "导出验收包", + "button.exportReport": "导出报告", + "button.runAcceptance": "运行自检", + "title.build": "构建组合预览", + "title.physical": "加载后端物理场景", + "title.uploadAsset": "从本地上传 glTF/GLB/OBJ/STL 资产,可同时选择 bin/贴图依赖", + "title.uploadScene": "从本地上传 scene manifest(JSON)和关联 mesh/texture/bin 文件", + "title.clearUploads": "清理已上传内容", + "title.add": "添加物体", + "title.remove": "移除物体", + "title.duplicate": "复制物体", + "title.clear": "清空已添加物体", + "title.applyLayout": "应用当前场景、机器人和物体位置", + "title.layoutLine": "把物体按一条补货线重新排列", + "title.layoutGrid": "把物体整理成紧凑网格", + "title.snapGrid": "把物体坐标吸附到 5cm 网格", + "title.dropGround": "按物体尺寸校准到地面高度", + "title.undo": "撤销上一次场景编排修改", + "title.redo": "重做撤销的场景编排修改", + "title.saveDraft": "保存当前场景编排到本机", + "title.restoreDraft": "从本机恢复最近保存的场景编排", + "title.importConfig": "导入导出的场景编排 JSON", + "title.copyLink": "复制可恢复当前编排的分享链接", + "title.exportConfig": "导出当前编排 JSON", + "title.templateStore": "加载 G1 货架补货物理模板", + "title.templateEmpty": "加载轻量空场景摆放模板", + "title.templateArm": "加载 Franka 单臂方块模板", + "title.load": "加载 manifest", + "title.sample": "加载内置示例", + "title.reload": "重载当前场景", + "title.pause": "暂停仿真", + "title.resume": "恢复仿真", + "title.step": "推进一个后端仿真步", + "title.reset": "重置仿真状态", + "title.joint": "关节", + "title.jointTarget": "关节目标", + "title.jointValue": "关节值", + "title.setJoint": "应用选中关节值", + "title.home": "重置机器人关节", + "title.openGrip": "打开夹爪", + "title.closeGrip": "关闭夹爪", + "title.actuator": "执行器", + "title.actuatorTarget": "执行器目标", + "title.actuatorValue": "执行器值", + "title.setActuator": "应用选中执行器控制值", + "title.prepareDemo": "套用货架补货模板并构建后端物理组合场景", + "title.startDemo": "恢复后端仿真运行", + "title.pauseInspect": "暂停后端仿真以便检查场景", + "title.resetDemo": "重置后端仿真状态", + "title.buildReport": "生成并复制当前预览验收摘要", + "title.reportText": "当前预览验收摘要", + "title.saveProject": "命名保存当前场景编排", + "title.loadProject": "加载这个保存的场景项目", + "title.deleteProject": "删除这个保存的场景项目", + "title.capturePng": "导出当前 Three.js 视口截图", + "title.exportPackage": "导出包含配置、健康度、统计和时间线的验收 JSON", + "title.exportReport": "导出可直接打开阅读的 HTML 验收报告", + "title.runAcceptance": "生成验收摘要并计算当前预览是否可交付", + "overlay.scene": "Three.js WebGL 场景", + "overlay.dragHint": "拖拽提示:左键点击可编辑物体并拖动;空白区用于相机视角与缩放", + "note.manifest": "这不是固定球体 demo。页面读取 scene manifest,按对象类型加载 primitive 或 mesh,再用 state source 绑定 body pose。", + "project.defaultName": "货架补货项目", + "backend.frontendOnly": "仅前端", + "backend.localSim": "本地仿真", + "backend.externalSim": "外部仿真", + "validation.score": "{ready}/{total} 就绪,{objects} 对象", + "empty.props": "暂无添加物体", + "placeholder.noScene": "未上传场景文件", + "empty.selection": "未选择物体", + "empty.projects": "暂无保存项目", + "empty.activity": "暂无操作记录", + "health.stateOk": "状态源已连接", + "health.statePending": "状态源等待中", + "health.controlOk": "控制接口就绪", + "health.controlPending": "控制接口不可用", + "health.objects": "对象 {count} 个", + "health.pixels": "画面采样 {count}", + "status.booting": "启动中", + "status.loading": "正在加载 {url}", + "status.manifestLoaded": "已加载 manifest:{count} 个对象", + "status.error": "错误:{message}", + "status.builder.ready": "构建器:就绪", + "status.builder.composing": "构建器:组合中", + "status.builder.composeReady": "构建器:后端物理组合就绪,物体会生成 MJCF body", + "status.builder.physicsPreset": "构建器:后端物理 preset,物体来自 MJCF", + "status.builder.result": "构建器:{mode},{count} 个对象", + "status.workspace.ready": "工作区:自动保存开启", + "status.workspace.saved": "工作区:草稿已保存", + "status.workspace.restored": "工作区:草稿已恢复", + "status.workspace.noDraft": "工作区:没有可恢复草稿", + "status.workspace.shareLoaded": "工作区:已从分享链接恢复", + "status.workspace.copyOk": "工作区:分享链接已复制", + "status.workspace.copyFailed": "工作区:复制失败,请导出配置", + "status.workspace.exported": "工作区:配置已导出", + "status.workspace.imported": "工作区:配置已导入", + "status.workspace.importFailed": "工作区:配置导入失败", + "status.workspace.assetsImported": "工作区:已导入 {count} 个本地资产", + "status.workspace.sceneImported": "工作区:场景包已导入,匹配 {matched} 个资源,缺失 {missing} 个", + "status.workspace.undo": "工作区:已撤销", + "status.workspace.redo": "工作区:已重做", + "status.workspace.noUndo": "工作区:没有可撤销步骤", + "status.workspace.noRedo": "工作区:没有可重做步骤", + "status.workspace.layoutLine": "工作区:已一字排开", + "status.workspace.layoutGrid": "工作区:已网格排列", + "status.workspace.snapGrid": "工作区:已吸附网格", + "status.workspace.dropGround": "工作区:已贴地校准", + "status.workflow.ready": "流程:就绪", + "status.workflow.preparing": "流程:准备中", + "status.workflow.prepared": "流程:演示场景已准备", + "status.workflow.running": "流程:运行中", + "status.workflow.paused": "流程:已暂停检查", + "status.workflow.reset": "流程:已复位", + "status.workflow.reportReady": "流程:摘要已生成", + "status.workflow.reportCopied": "流程:摘要已复制", + "status.workflow.error": "流程:{message}", + "status.project.ready": "项目:就绪", + "status.project.saved": "项目:已保存 {name}", + "status.project.loaded": "项目:已加载 {name}", + "status.project.deleted": "项目:已删除 {name}", + "status.project.missing": "项目:记录不存在", + "status.project.captureSaved": "项目:截图已导出", + "status.project.captureFailed": "项目:截图失败 {message}", + "status.project.packageExported": "项目:验收包已导出", + "status.project.packageFailed": "项目:验收包导出失败 {message}", + "status.project.reportExported": "项目:HTML 验收报告已导出", + "status.project.reportFailed": "项目:HTML 报告导出失败 {message}", + "status.project.error": "项目:{message}", + "status.acceptance.ready": "验收:等待自检", + "status.acceptance.running": "验收:正在检查当前预览", + "status.acceptance.pass": "验收:通过,{pass}/{total} 项通过", + "status.acceptance.warn": "验收:可演示但有 {warn} 项警告", + "status.acceptance.fail": "验收:未通过,{fail} 项失败", + "acceptance.score": "{pass} 通过 / {warn} 警告 / {fail} 失败,共 {total} 项", + "acceptance.verdict.ready": "等待自检", + "acceptance.verdict.pass": "可直接验收", + "acceptance.verdict.warn": "可演示,需说明边界", + "acceptance.verdict.fail": "暂不可验收", + "acceptance.check.manifest": "场景清单", + "acceptance.check.backend": "状态源", + "acceptance.check.control": "控制接口", + "acceptance.check.objects": "对象与绑定", + "acceptance.check.assets": "资产加载", + "acceptance.check.pixels": "画面可见", + "acceptance.check.physics": "物理链路", + "acceptance.check.report": "验收摘要", + "acceptance.detail.manifestOk": "已加载 {name}", + "acceptance.detail.manifestPending": "尚未完成 manifest 加载", + "acceptance.detail.backendPending": "状态源尚未连接", + "acceptance.detail.controlMissing": "当前场景没有可用控制接口", + "acceptance.detail.objects": "{count} 个对象,{bindings} 个 body 绑定", + "acceptance.detail.assets": "{meshes} 个 mesh,{fallbacks} 个 fallback", + "acceptance.detail.pixels": "非背景采样 {count}", + "acceptance.detail.reportOk": "摘要已生成,可复制/导出", + "acceptance.detail.reportPending": "点击运行自检生成摘要", + "acceptance.case.preview.title": "Web 3D 预览可见", + "acceptance.case.preview.goal": "页面能加载 manifest,并在 Three.js 画布中显示真实场景对象。", + "acceptance.case.backend.title": "MotrixSim 状态流有效", + "acceptance.case.backend.goal": "前端读取后端 state,运行态与物理链路清晰可判断。", + "acceptance.case.control.title": "仿真控制可用", + "acceptance.case.control.goal": "暂停、恢复、单步、重置等控制接口已连通。", + "acceptance.case.assets.title": "资产加载完整", + "acceptance.case.assets.goal": "mesh/primitive 能正常渲染,fallback 数量可见且可追踪。", + "acceptance.case.evidence.title": "交付证据可导出", + "acceptance.case.evidence.goal": "能生成验收摘要、JSON 验收包和 HTML 报告。", + "report.title": "MotrixSim Web 预览验收报告", + "report.generatedAt": "生成时间", + "report.state": "状态", + "report.case": "用例", + "report.check": "检查项", + "report.evidence": "证据", + "activity.manifestLoaded": "加载 manifest,{count} 个对象", + "activity.sceneBuilt": "构建预览:{mode},{count} 个对象", + "activity.projectSaved": "保存项目:{name}", + "activity.projectLoaded": "加载项目:{name}", + "activity.projectDeleted": "删除项目:{name}", + "activity.captureSaved": "导出视口截图", + "activity.packageExported": "导出验收包", + "activity.reportReady": "生成验收摘要", + "activity.workflowPrepared": "准备演示场景", + "activity.workflowRun": "恢复仿真运行", + "activity.workflowPaused": "暂停仿真检查", + "activity.workflowReset": "复位仿真", + "activity.layoutLine": "应用一字排开布局", + "activity.layoutGrid": "应用网格排列布局", + "activity.snapGrid": "物体吸附到网格", + "activity.dropGround": "物体贴地校准", + "activity.projectError": "操作失败:{message}", + "activity.acceptanceRun": "运行验收自检:{pass} 通过,{warn} 警告,{fail} 失败", + "activity.reportExported": "导出 HTML 验收报告", + "status.control.pending": "控制:等待中", + "status.control.unavailable": "控制:不可用", + "status.control.ready": "控制:就绪", + "status.control.actionPending": "控制:{action} 执行中", + "status.control.actionOk": "控制:{action} 成功", + "status.control.error": "控制:{message}", + "status.input.pending": "输入:等待中", + "status.input.unavailable": "输入:不可用", + "status.input.ready": "输入:MotrixSim 按键就绪", + "status.input.commandPending": "输入:指令发送中", + "status.input.commandSent": "输入:已发送 {command}", + "status.joints.pending": "关节:等待中", + "status.joints.ready": "关节:{count} 个就绪", + "status.joints.unavailable": "关节:不可用", + "status.joints.selected": "关节:已选择 {name}", + "status.joints.set": "关节:已设置 {name}", + "status.joints.gripperOpen": "关节:夹爪已打开", + "status.joints.gripperClose": "关节:夹爪已关闭", + "status.actuators.pending": "执行器:等待中", + "status.actuators.ready": "执行器:{count} 个就绪", + "status.actuators.unavailable": "执行器:不可用", + "status.actuators.selected": "执行器:已选择 {name}", + "status.actuators.set": "执行器:已设置 {name}", + "status.state.pending": "状态:等待中", + "state.none": "状态:无状态源", + "state.replayMissing": "状态:回放缺少 URL", + "state.replay": "状态:回放 {count} 帧 @ {fps} fps", + "state.pollMissing": "状态:轮询缺少 URL", + "state.pollStatus": "状态:轮询 HTTP {status}", + "state.pollConnected": "状态:轮询已连接", + "state.pollError": "状态:轮询错误 {message}", + "state.websocketMissing": "状态:WebSocket 缺少 URL", + "state.websocketConnected": "状态:WebSocket 已连接", + "state.websocketClosed": "状态:WebSocket 已关闭", + "state.websocketError": "状态:WebSocket 错误", + "state.websocketParseError": "状态:WebSocket 解析错误 {message}", + "physics.visualOnly": "仅视觉预览", + "physics.backendPhysics": "后端物理", + "physics.backendState": "后端状态", + "physics.staticPreview": "静态预览", + "run.paused": "已暂停", + "run.running": "运行中", + "run.offline": "未连接", + "mode.physicalComposed": "后端物理组合场景", + "mode.physicalBackend": "后端物理场景", + "mode.sourceBackend": "后端源场景", + "mode.visualComposition": "前端视觉组合", + "preset.scene.empty": "空网格", + "preset.scene.g1StoreBlocksPhysics": "G1 + 货架 + 方块物理场景", + "preset.scene.storeLite": "轻量货架场景", + "preset.scene.storeFull": "完整货架场景", + "preset.scene.frankaCube": "Franka + 方块物理场景", + "preset.scene.customUpload": "上传场景", + "preset.robot.none": "无机器人", + "preset.robot.g1": "Unitree G1 人形机器人", + "preset.robot.go2": "Unitree Go2 四足机器人", + "preset.robot.franka": "Franka 单臂", + "preset.prop.redCube": "红色方块", + "preset.prop.blueCrate": "蓝色箱体", + "preset.prop.greenBall": "绿色球体", + "preset.prop.yellowCapsule": "黄色胶囊", + "preset.prop.pallet": "低矮托盘", + "preset.prop.uploaded": "本地上传资产", + }, + "en-US": { + "app.name": "MotrixSim Web", + "app.title": "Scene Builder", + "language.label": "Language", + "section.compose": "Compose Scene", + "section.workspace": "Workspace", + "section.templates": "Scene Templates", + "section.assets": "Asset Library", + "section.sceneUpload": "Scene Upload", + "section.manifest": "Scene Manifest", + "section.advancedManifest": "Advanced Load", + "section.runtime": "Runtime", + "section.simControl": "Simulation Control", + "section.input": "MotrixSim Input", + "section.joint": "Joint Control", + "section.actuator": "Actuator Control", + "section.health": "Run Health", + "section.acceptance": "Acceptance Center", + "section.outline": "Scene Outline", + "section.properties": "Properties", + "section.project": "Project", + "section.savedProjects": "Project Library", + "section.workflow": "Demo Flow", + "section.activity": "Activity Timeline", + "section.status": "Status", + "label.scene": "Scene", + "label.robot": "Robot", + "label.object": "Object", + "label.currentScene": "Current scene", + "label.currentRobot": "Current robot", + "label.addedObjects": "Added objects", + "label.uploadedScene": "Uploaded scene", + "label.uploadedSceneHint": "Upload a JSON scene manifest together with mesh/texture/bin sidecar files; relative paths are matched to local files.", + "label.simulationSource": "Simulation source", + "label.physicsMode": "Mode", + "label.position": "Position", + "placeholder.noScene": "No scene uploaded", + "label.selectedObject": "Selected object", + "label.backend": "Backend", + "label.validation": "Validation", + "label.projectName": "Project name", + "label.acceptanceCases": "Acceptance Cases", + "label.runState": "Run state", + "label.sceneManifest": "Scene manifest", + "label.keys": "Keys", + "label.command": "Command", + "label.manifest": "Manifest", + "label.objects": "Objects", + "label.bindings": "Body bindings", + "label.meshes": "Meshes", + "label.fallbacks": "Fallbacks", + "label.physics": "Physics", + "label.lastStep": "Last step", + "label.paused": "Paused", + "label.pixelCheck": "Pixel check", + "button.build": "Build Preview", + "button.physical": "Physical Scene", + "button.uploadAsset": "Upload Asset", + "button.uploadScene": "Upload Scene Pack", + "button.clearUploads": "Clear Custom Uploads", + "button.add": "Add", + "button.remove": "Remove", + "button.duplicate": "Duplicate", + "button.clear": "Clear Objects", + "button.applyLayout": "Apply Layout", + "button.layoutLine": "Line Up", + "button.layoutGrid": "Grid Layout", + "button.snapGrid": "Snap Grid", + "button.dropGround": "Ground", + "button.undo": "Undo", + "button.redo": "Redo", + "button.saveDraft": "Save Draft", + "button.restoreDraft": "Restore Draft", + "button.importConfig": "Import Config", + "button.copyLink": "Copy Share Link", + "button.exportConfig": "Export Config", + "button.templateStore": "Store Refill", + "button.templateEmpty": "Empty Layout", + "button.templateArm": "Arm Pick", + "button.load": "Load", + "button.sample": "Sample", + "button.reload": "Reload", + "button.pause": "Pause", + "button.resume": "Resume", + "button.step": "Step", + "button.reset": "Reset", + "button.setJoint": "Set Joint", + "button.home": "Home", + "button.openGrip": "Open Grip", + "button.closeGrip": "Close Grip", + "button.setActuator": "Set Actuator", + "button.prepareDemo": "Prepare Demo", + "button.startDemo": "Run", + "button.pauseInspect": "Pause Inspect", + "button.resetDemo": "Reset Scene", + "button.buildReport": "Build Acceptance Summary", + "button.saveProject": "Save Project", + "button.loadProject": "Load", + "button.deleteProject": "Delete", + "button.capturePng": "Export PNG", + "button.exportPackage": "Export Package", + "button.exportReport": "Export Report", + "button.runAcceptance": "Run Checks", + "title.uploadAsset": "Upload local glTF/GLB/OBJ/STL assets, optionally with bin/texture sidecars", + "title.uploadScene": "Upload a local scene manifest (JSON) with related mesh/texture/bin files", + "title.clearUploads": "Clear uploaded assets or scene", + "title.build": "Build composed preview", + "title.physical": "Load backend physical scene", + "title.add": "Add object", + "title.remove": "Remove object", + "title.duplicate": "Duplicate object", + "title.clear": "Clear added objects", + "title.applyLayout": "Apply the current scene, robot, and object positions", + "title.layoutLine": "Arrange objects into one refill line", + "title.layoutGrid": "Arrange objects into a compact grid", + "title.snapGrid": "Snap object coordinates to a 5 cm grid", + "title.dropGround": "Calibrate object height to the floor", + "title.undo": "Undo the last scene composition change", + "title.redo": "Redo the last undone scene composition change", + "title.saveDraft": "Save this scene composition locally", + "title.restoreDraft": "Restore the last locally saved composition", + "title.importConfig": "Import an exported scene composition JSON", + "title.copyLink": "Copy a share link that restores this composition", + "title.exportConfig": "Export the current composition as JSON", + "title.templateStore": "Load the G1 store refill physics template", + "title.templateEmpty": "Load a lightweight empty layout template", + "title.templateArm": "Load the Franka arm cube template", + "title.load": "Load manifest", + "title.sample": "Load bundled sample", + "title.reload": "Reload current scene", + "title.pause": "Pause simulation", + "title.resume": "Resume simulation", + "title.step": "Advance one backend simulation step", + "title.reset": "Reset simulation state", + "title.joint": "Joint", + "title.jointTarget": "Joint target", + "title.jointValue": "Joint value", + "title.setJoint": "Apply selected joint value", + "title.home": "Reset robot joints", + "title.openGrip": "Open gripper", + "title.closeGrip": "Close gripper", + "title.actuator": "Actuator", + "title.actuatorTarget": "Actuator target", + "title.actuatorValue": "Actuator value", + "title.setActuator": "Apply selected actuator ctrl", + "title.prepareDemo": "Apply the store refill template and compose a backend physics scene", + "title.startDemo": "Resume backend simulation", + "title.pauseInspect": "Pause backend simulation for inspection", + "title.resetDemo": "Reset backend simulation state", + "title.buildReport": "Generate and copy the current preview acceptance summary", + "title.reportText": "Current preview acceptance summary", + "title.saveProject": "Save the current scene composition with a name", + "title.loadProject": "Load this saved scene project", + "title.deleteProject": "Delete this saved scene project", + "title.capturePng": "Export the current Three.js viewport screenshot", + "title.exportPackage": "Export acceptance JSON with config, health, stats, and activity timeline", + "title.exportReport": "Export a readable HTML acceptance report", + "title.runAcceptance": "Generate the acceptance summary and evaluate current delivery readiness", + "overlay.scene": "Three.js WebGL scene", + "overlay.dragHint": "Drag hint: left-click a draggable object to move it; use empty space for orbit/zoom", + "note.manifest": "This is not a fixed sphere demo. The page reads a scene manifest, loads primitives or meshes by object type, and binds body poses from a state source.", + "project.defaultName": "Store refill project", + "backend.frontendOnly": "frontend only", + "backend.localSim": "Local simulation", + "backend.externalSim": "External simulation", + "validation.score": "{ready}/{total} ready, {objects} objects", + "empty.props": "No added objects", + "empty.selection": "No object selected", + "empty.projects": "No saved projects", + "empty.activity": "No activity yet", + "health.stateOk": "state source connected", + "health.statePending": "state source pending", + "health.controlOk": "control endpoint ready", + "health.controlPending": "control endpoint unavailable", + "health.objects": "{count} objects", + "health.pixels": "{count} pixel samples", + "status.booting": "booting", + "status.loading": "loading {url}", + "status.manifestLoaded": "manifest loaded: {count} objects", + "status.error": "error: {message}", + "status.builder.ready": "builder: ready", + "status.builder.composing": "builder: composing", + "status.builder.composeReady": "builder: backend compose ready; objects become MJCF bodies", + "status.builder.physicsPreset": "builder: backend physics preset; objects come from MJCF", + "status.builder.result": "builder: {mode}, {count} objects", + "status.workspace.ready": "workspace: autosave enabled", + "status.workspace.saved": "workspace: draft saved", + "status.workspace.restored": "workspace: draft restored", + "status.workspace.noDraft": "workspace: no draft to restore", + "status.workspace.shareLoaded": "workspace: restored from share link", + "status.workspace.copyOk": "workspace: share link copied", + "status.workspace.copyFailed": "workspace: copy failed; export config instead", + "status.workspace.exported": "workspace: config exported", + "status.workspace.imported": "workspace: config imported", + "status.workspace.importFailed": "workspace: config import failed", + "status.workspace.assetsImported": "workspace: imported {count} local assets", + "status.workspace.sceneImported": "workspace: scene pack imported, {matched} assets matched, {missing} missing", + "status.workspace.undo": "workspace: undo", + "status.workspace.redo": "workspace: redo", + "status.workspace.noUndo": "workspace: nothing to undo", + "status.workspace.noRedo": "workspace: nothing to redo", + "status.workspace.layoutLine": "workspace: line layout applied", + "status.workspace.layoutGrid": "workspace: grid layout applied", + "status.workspace.snapGrid": "workspace: snapped to grid", + "status.workspace.dropGround": "workspace: grounded", + "status.workflow.ready": "flow: ready", + "status.workflow.preparing": "flow: preparing", + "status.workflow.prepared": "flow: demo scene prepared", + "status.workflow.running": "flow: running", + "status.workflow.paused": "flow: paused for inspection", + "status.workflow.reset": "flow: reset", + "status.workflow.reportReady": "flow: summary generated", + "status.workflow.reportCopied": "flow: summary copied", + "status.workflow.error": "flow: {message}", + "status.project.ready": "project: ready", + "status.project.saved": "project: saved {name}", + "status.project.loaded": "project: loaded {name}", + "status.project.deleted": "project: deleted {name}", + "status.project.missing": "project: record missing", + "status.project.captureSaved": "project: screenshot exported", + "status.project.captureFailed": "project: screenshot failed {message}", + "status.project.packageExported": "project: acceptance package exported", + "status.project.packageFailed": "project: package export failed {message}", + "status.project.reportExported": "project: HTML acceptance report exported", + "status.project.reportFailed": "project: HTML report export failed {message}", + "status.project.error": "project: {message}", + "status.acceptance.ready": "acceptance: waiting for checks", + "status.acceptance.running": "acceptance: checking current preview", + "status.acceptance.pass": "acceptance: passed, {pass}/{total} checks passed", + "status.acceptance.warn": "acceptance: demo-ready with {warn} warnings", + "status.acceptance.fail": "acceptance: failed, {fail} checks failed", + "acceptance.score": "{pass} passed / {warn} warnings / {fail} failed, {total} total", + "acceptance.verdict.ready": "Waiting for checks", + "acceptance.verdict.pass": "Ready for Acceptance", + "acceptance.verdict.warn": "Demo-ready with Boundaries", + "acceptance.verdict.fail": "Not Ready", + "acceptance.check.manifest": "Scene manifest", + "acceptance.check.backend": "State source", + "acceptance.check.control": "Control endpoint", + "acceptance.check.objects": "Objects and bindings", + "acceptance.check.assets": "Asset loading", + "acceptance.check.pixels": "Visible render", + "acceptance.check.physics": "Physics path", + "acceptance.check.report": "Acceptance summary", + "acceptance.detail.manifestOk": "loaded {name}", + "acceptance.detail.manifestPending": "manifest has not finished loading", + "acceptance.detail.backendPending": "state source not connected yet", + "acceptance.detail.controlMissing": "no control endpoint is available for this scene", + "acceptance.detail.objects": "{count} objects, {bindings} body bindings", + "acceptance.detail.assets": "{meshes} meshes, {fallbacks} fallbacks", + "acceptance.detail.pixels": "{count} non-background samples", + "acceptance.detail.reportOk": "summary generated and ready to copy/export", + "acceptance.detail.reportPending": "run checks to generate the summary", + "acceptance.case.preview.title": "Web 3D preview is visible", + "acceptance.case.preview.goal": "The page loads the manifest and shows real scene objects in the Three.js canvas.", + "acceptance.case.backend.title": "MotrixSim state stream works", + "acceptance.case.backend.goal": "The frontend reads backend state and exposes clear run/physics status.", + "acceptance.case.control.title": "Simulation control is available", + "acceptance.case.control.goal": "Pause, resume, step, and reset controls are connected.", + "acceptance.case.assets.title": "Assets load correctly", + "acceptance.case.assets.goal": "Meshes/primitives render and fallback counts remain visible and traceable.", + "acceptance.case.evidence.title": "Delivery evidence is exportable", + "acceptance.case.evidence.goal": "Acceptance summary, JSON package, and HTML report can be generated.", + "report.title": "MotrixSim Web Preview Acceptance Report", + "report.generatedAt": "Generated at", + "report.state": "State", + "report.case": "Case", + "report.check": "Check", + "report.evidence": "Evidence", + "activity.manifestLoaded": "Loaded manifest with {count} objects", + "activity.sceneBuilt": "Built preview: {mode}, {count} objects", + "activity.projectSaved": "Saved project: {name}", + "activity.projectLoaded": "Loaded project: {name}", + "activity.projectDeleted": "Deleted project: {name}", + "activity.captureSaved": "Exported viewport screenshot", + "activity.packageExported": "Exported acceptance package", + "activity.reportReady": "Generated acceptance summary", + "activity.workflowPrepared": "Prepared demo scene", + "activity.workflowRun": "Resumed simulation", + "activity.workflowPaused": "Paused simulation for inspection", + "activity.workflowReset": "Reset simulation", + "activity.layoutLine": "Applied line layout", + "activity.layoutGrid": "Applied grid layout", + "activity.snapGrid": "Snapped objects to grid", + "activity.dropGround": "Grounded objects", + "activity.projectError": "Action failed: {message}", + "activity.acceptanceRun": "Ran acceptance checks: {pass} passed, {warn} warnings, {fail} failed", + "activity.reportExported": "Exported HTML acceptance report", + "status.control.pending": "control: pending", + "status.control.unavailable": "control: unavailable", + "status.control.ready": "control: ready", + "status.control.actionPending": "control: {action} pending", + "status.control.actionOk": "control: {action} ok", + "status.control.error": "control: {message}", + "status.input.pending": "input: pending", + "status.input.unavailable": "input: unavailable", + "status.input.ready": "input: MotrixSim keys ready", + "status.input.commandPending": "input: command pending", + "status.input.commandSent": "input: command sent {command}", + "status.joints.pending": "joints: pending", + "status.joints.ready": "joints: {count} ready", + "status.joints.unavailable": "joints: unavailable", + "status.joints.selected": "joints: {name} selected", + "status.joints.set": "joints: {name} set", + "status.joints.gripperOpen": "joints: gripper open", + "status.joints.gripperClose": "joints: gripper close", + "status.actuators.pending": "actuators: pending", + "status.actuators.ready": "actuators: {count} ready", + "status.actuators.unavailable": "actuators: unavailable", + "status.actuators.selected": "actuators: {name} selected", + "status.actuators.set": "actuators: {name} set", + "status.state.pending": "state: pending", + "state.none": "state: none", + "state.replayMissing": "state: replay missing url", + "state.replay": "state: replay {count} frames @ {fps} fps", + "state.pollMissing": "state: poll missing url", + "state.pollStatus": "state: poll {status}", + "state.pollConnected": "state: poll connected", + "state.pollError": "state: poll error {message}", + "state.websocketMissing": "state: websocket missing url", + "state.websocketConnected": "state: websocket connected", + "state.websocketClosed": "state: websocket closed", + "state.websocketError": "state: websocket error", + "state.websocketParseError": "state: websocket parse error {message}", + "physics.visualOnly": "visual only", + "physics.backendPhysics": "backend physics", + "physics.backendState": "backend state", + "physics.staticPreview": "static preview", + "run.paused": "paused", + "run.running": "running", + "run.offline": "offline", + "mode.physicalComposed": "physical backend composed scene", + "mode.physicalBackend": "physical backend scene", + "mode.sourceBackend": "source backend scene", + "mode.visualComposition": "visual composition", + "preset.scene.empty": "Empty grid", + "preset.scene.g1StoreBlocksPhysics": "G1 + Store + blocks physics", + "preset.scene.storeLite": "Store shelves lite", + "preset.scene.storeFull": "Store shelves full", + "preset.scene.frankaCube": "Franka + cube physics", + "preset.scene.customUpload": "Uploaded scene", + "preset.robot.none": "No robot", + "preset.robot.g1": "Unitree G1 humanoid", + "preset.robot.go2": "Unitree Go2 quadruped", + "preset.robot.franka": "Franka arm", + "preset.prop.redCube": "Red cube", + "preset.prop.blueCrate": "Blue crate", + "preset.prop.greenBall": "Green ball", + "preset.prop.yellowCapsule": "Yellow capsule", + "preset.prop.pallet": "Low pallet", + "preset.prop.uploaded": "Uploaded asset", + }, +}; + +export function initialLocale(): Locale { + const saved = window.localStorage.getItem(STORAGE_KEY); + return isLocale(saved) ? saved : DEFAULT_LOCALE; +} + +export function persistLocale(locale: Locale): void { + window.localStorage.setItem(STORAGE_KEY, locale); +} + +export function isLocale(value: unknown): value is Locale { + return SUPPORTED_LOCALES.some((locale) => locale.id === value); +} + +export function translate(locale: Locale, key: MessageKey, params: Params = {}): string { + const template = messages[locale]?.[key] ?? messages["en-US"][key] ?? messages[DEFAULT_LOCALE][key] ?? key; + return template.replace(/\{(\w+)\}/g, (_, name: string) => String(params[name] ?? "")); +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..9342cc5 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,3830 @@ +import "./styles.css"; +import type { + ActuatorControlSpec, + JointControlSpec, + MeshGeometry, + PreviewFrame, + PreviewMaterial, + PreviewObject, + PreviewStateSource, + SceneManifest, + Vec3, +} from "./types"; +import { UniversalPreviewer, type DragPose } from "./preview/UniversalPreviewer"; +import { StateClient } from "./state/StateClient"; +import { initialLocale, isLocale, persistLocale, SUPPORTED_LOCALES, translate, type Locale, type MessageKey } from "./i18n"; + +const DEFAULT_MANIFEST = "/samples/universal-demo.manifest.json"; +const BUILDER_STORAGE_KEY = "motrixsim-web-builder-draft"; +const SAVED_PROJECTS_STORAGE_KEY = "motrixsim-web-saved-projects"; +const ACTIVITY_LIMIT = 20; +const LIVE_PANEL_REFRESH_MS = 350; +const initialManifestUrl = new URLSearchParams(window.location.search).get("manifest") ?? DEFAULT_MANIFEST; +const initialBuilderConfigParam = new URLSearchParams(window.location.search).get("builder"); +let currentLocale: Locale = initialLocale(); +type I18nParams = Parameters[2]; + +function t(key: Parameters[1], params?: Parameters[2]): string { + return translate(currentLocale, key, params); +} + +interface ScenePreset { + id: string; + label: string; + labelKey?: MessageKey; + manifestUrl?: string; + composeUrl?: string; + storeProductLimit?: number; + physical?: boolean; + defaultProps?: string[]; +} + +interface RobotPreset { + id: string; + label: string; + labelKey: MessageKey; + manifestUrl?: string; +} + +interface PropPreset { + id: string; + label: string; + labelKey?: MessageKey; + material: PreviewMaterial; + object: Omit & { + pose?: PreviewObject["pose"]; + }; +} + +interface BuilderProp { + id: string; + presetId: string; + label: string; + position: Vec3; +} + +interface BuilderConfig { + version: 1; + sceneId: string; + robotId: string; + robotPose: Vec3; + props: Array<{ + presetId: string; + position: Vec3; + }>; +} + +interface SceneTemplate { + id: string; + labelKey: MessageKey; + titleKey: MessageKey; + config: BuilderConfig; +} + +interface SavedProject { + id: string; + name: string; + updatedAt: string; + config: BuilderConfig; +} + +interface ActivityEntry { + id: string; + at: string; + message: string; + tone: "info" | "ok" | "warn"; +} + +interface AcceptanceCheck { + id: string; + label: string; + detail: string; + state: "pass" | "warn" | "fail"; +} + +interface AcceptanceCase { + id: string; + title: string; + goal: string; + evidence: string; + state: "pass" | "warn" | "fail"; +} + +interface LocalAssetBundle { + urlsByKey: Map; + objectUrls: string[]; + matched: number; + missing: string[]; +} + +const SCENE_PRESETS: ScenePreset[] = [ + { id: "empty", label: "Empty grid", labelKey: "preset.scene.empty" }, + { + id: "g1-store-blocks-physics", + label: "G1 + Store + blocks physics", + labelKey: "preset.scene.g1StoreBlocksPhysics", + manifestUrl: "http://127.0.0.1:18090/manifest", + composeUrl: "http://127.0.0.1:18090/compose", + physical: true, + defaultProps: ["red-cube", "blue-crate", "green-ball", "yellow-capsule"], + }, + { id: "store-lite", label: "Store shelves lite", labelKey: "preset.scene.storeLite", manifestUrl: "http://127.0.0.1:18085/manifest", storeProductLimit: 90 }, + { id: "store-full", label: "Store shelves full", labelKey: "preset.scene.storeFull", manifestUrl: "http://127.0.0.1:18085/manifest" }, + { id: "franka-cube", label: "Franka + cube physics", labelKey: "preset.scene.frankaCube", manifestUrl: "http://127.0.0.1:18088/manifest", physical: true }, +]; + +const ROBOT_PRESETS: RobotPreset[] = [ + { id: "none", label: "No robot", labelKey: "preset.robot.none" }, + { id: "g1", label: "Unitree G1 humanoid", labelKey: "preset.robot.g1", manifestUrl: "http://127.0.0.1:18087/manifest" }, + { id: "go2", label: "Unitree Go2 quadruped", labelKey: "preset.robot.go2", manifestUrl: "http://127.0.0.1:18086/manifest" }, + { id: "franka", label: "Franka arm", labelKey: "preset.robot.franka", manifestUrl: "http://127.0.0.1:18084/manifest" }, +]; + +const PROP_PRESETS: PropPreset[] = [ + { + id: "red-cube", + label: "Red cube", + labelKey: "preset.prop.redCube", + material: { id: "builder_red", color: "#e11d48", roughness: 0.56 }, + object: { geometry: { kind: "primitive", primitive: "box", size: [0.16, 0.16, 0.16] }, castShadow: true, receiveShadow: true }, + }, + { + id: "blue-crate", + label: "Blue crate", + labelKey: "preset.prop.blueCrate", + material: { id: "builder_blue", color: "#2563eb", roughness: 0.58 }, + object: { geometry: { kind: "primitive", primitive: "box", size: [0.22, 0.16, 0.12] }, castShadow: true, receiveShadow: true }, + }, + { + id: "green-ball", + label: "Green ball", + labelKey: "preset.prop.greenBall", + material: { id: "builder_green", color: "#22c55e", roughness: 0.42 }, + object: { geometry: { kind: "primitive", primitive: "sphere", radius: 0.09, segments: 32 }, castShadow: true, receiveShadow: true }, + }, + { + id: "yellow-capsule", + label: "Yellow capsule", + labelKey: "preset.prop.yellowCapsule", + material: { id: "builder_yellow", color: "#eab308", roughness: 0.5 }, + object: { + geometry: { kind: "primitive", primitive: "capsule", radius: 0.04, length: 0.24, segments: 24 }, + pose: { euler: [0, 1.5708, 0.25] }, + castShadow: true, + receiveShadow: true, + }, + }, + { + id: "pallet", + label: "Low pallet", + labelKey: "preset.prop.pallet", + material: { id: "builder_pallet", color: "#a16207", roughness: 0.76 }, + object: { geometry: { kind: "primitive", primitive: "box", size: [0.42, 0.28, 0.08] }, castShadow: true, receiveShadow: true }, + }, +]; + +const CUSTOM_PROP_PRESETS: PropPreset[] = []; +const CUSTOM_PROP_PRESET_PREFIX = "prop-uploaded-"; +const CUSTOM_SCENE_PRESET_PREFIX = "scene-uploaded-"; +const UPLOAD_MESH_EXTENSIONS = new Set(["gltf", "glb", "obj", "stl"]); +const UPLOAD_ASSET_EXTENSIONS = new Set([ + ...UPLOAD_MESH_EXTENSIONS, + "bin", + "png", + "jpg", + "jpeg", + "webp", + "ktx", + "ktx2", + "basis", + "mtl", +]); +let uploadedScenePreset: ScenePreset | undefined; +let uploadedSceneManifest: SceneManifest | undefined; +let uploadedSceneManifestId: string | undefined; +let uploadedScenePresetUrl: string | undefined; +let uploadedSceneSidecarUrls: string[] = []; +const uploadedPropAssetUrls = new Map(); +let sceneUploadSerial = 0; +let propUploadSerial = 0; + +const SCENE_TEMPLATES: SceneTemplate[] = [ + { + id: "store-refill", + labelKey: "button.templateStore", + titleKey: "title.templateStore", + config: { + version: 1, + sceneId: "g1-store-blocks-physics", + robotId: "none", + robotPose: [0, 0, 0], + props: [ + { presetId: "red-cube", position: [0.72, -0.48, 0.08] }, + { presetId: "blue-crate", position: [1, -0.48, 0.08] }, + { presetId: "green-ball", position: [1.28, -0.48, 0.09] }, + { presetId: "yellow-capsule", position: [1.56, -0.48, 0.08] }, + ], + }, + }, + { + id: "empty-layout", + labelKey: "button.templateEmpty", + titleKey: "title.templateEmpty", + config: { + version: 1, + sceneId: "empty", + robotId: "none", + robotPose: [0, 0, 0], + props: [ + { presetId: "red-cube", position: [0.45, -0.2, 0.08] }, + { presetId: "blue-crate", position: [0.75, -0.2, 0.08] }, + { presetId: "green-ball", position: [1.05, -0.2, 0.09] }, + ], + }, + }, + { + id: "arm-pick", + labelKey: "button.templateArm", + titleKey: "title.templateArm", + config: { + version: 1, + sceneId: "franka-cube", + robotId: "none", + robotPose: [0, 0, 0], + props: [ + { presetId: "red-cube", position: [0.62, 0, 0.08] }, + ], + }, + }, +]; + +document.querySelector("#app")!.innerHTML = ` +
+ + +
+
+
+
+ ${t("app.title")} + - + ${t("backend.localSim")} +
+
+ + +
+
+
+ + ${t("overlay.scene")} + ${t("overlay.dragHint")} + +
+
+ - + + + + +
+
+ + +
+`; + +const previewElement = document.querySelector("#preview")!; +const statusElement = document.querySelector("#status")!; +const hoverHintElement = document.querySelector("#hover-target")!; +const stateStatusElement = document.querySelector("#state-status")!; +const manifestInput = document.querySelector("#manifest-url")!; +const localeSelect = document.querySelector("#locale-select")!; +const previewer = new UniversalPreviewer(previewElement, statusElement, { + hoverLabel: hoverHintElement, +}); +const stateClient = new StateClient(); +let controlUrl: string | undefined; +let jointControls: JointControlSpec[] = []; +let actuatorControls: ActuatorControlSpec[] = []; +let latestFrame: PreviewFrame | undefined; +let mainStatusKey: MessageKey = "status.booting"; +let mainStatusParams: I18nParams = {}; +let workspaceStatusKey: MessageKey = "status.workspace.ready"; +let workspaceStatusParams: I18nParams = {}; +let workflowStatusKey: MessageKey = "status.workflow.ready"; +let workflowStatusParams: I18nParams = {}; +let projectStatusKey: MessageKey = "status.project.ready"; +let projectStatusParams: I18nParams = {}; +let acceptanceStatusKey: MessageKey = "status.acceptance.ready"; +let acceptanceStatusParams: I18nParams = {}; +let acceptanceLastRunAt: string | undefined; +let latestStateStatusMessage = "state: pending"; +let jointEditing = false; +let actuatorEditing = false; +let pendingCameraFit = false; +let physicsModeKey: MessageKey = "physics.staticPreview"; +const pressedInputKeys = new Set(); +let lastCommand: [number, number, number] = [0, 0, 0]; +let builderPropSerial = 0; +let builderRebuildTimer: number | undefined; +let builderRobotPose: Vec3 = [0, 0, 0]; +const builderProps: BuilderProp[] = []; +let builderHistory: BuilderConfig[] = []; +let builderHistoryIndex = -1; +let selectedBuilderPropId: string | undefined; +const activityLog: ActivityEntry[] = []; +let lastLivePanelRefreshAt = 0; + +document.documentElement.lang = currentLocale; + +function labelFor(preset: { label: string; labelKey?: MessageKey }): string { + return preset.labelKey ? t(preset.labelKey) : preset.label; +} + +function propLabelById(presetId: string): string { + const preset = allPropPresets().find((candidate) => candidate.id === presetId); + return preset ? labelFor(preset) : presetId; +} + +function allPropPresets(): PropPreset[] { + return [...PROP_PRESETS, ...CUSTOM_PROP_PRESETS]; +} + +function propPresetById(presetId: string): PropPreset | undefined { + return allPropPresets().find((candidate) => candidate.id === presetId); +} + +function allScenePresets(): ScenePreset[] { + const uploadedSceneId = uploadedScenePreset?.id; + return uploadedScenePreset ? [uploadedScenePreset, ...SCENE_PRESETS.filter((candidate) => candidate.id !== uploadedSceneId)] : SCENE_PRESETS; +} + +function isScenePresetIdKnown(id: string): boolean { + return allScenePresets().some((candidate) => candidate.id === id); +} + +function setUploadedScenePreset(fileName: string, manifestUrl: string, manifest: SceneManifest, sidecarUrls: string[] = []): void { + const presetId = `${CUSTOM_SCENE_PRESET_PREFIX}${sceneUploadSerial}`; + sceneUploadSerial += 1; + const baseLabel = fileName.replace(/\.[^.]+$/, ""); + uploadedScenePreset = { + id: presetId, + label: baseLabel || t("preset.scene.customUpload"), + manifestUrl, + }; + uploadedScenePreset.defaultProps = undefined; + uploadedSceneManifest = structuredClone(manifest); + uploadedSceneManifestId = presetId; + clearUploadedSceneAssetUrls(manifestUrl, sidecarUrls); + uploadedScenePresetUrl = manifestUrl; +} + +function clearUploadedSceneAssetUrls(nextUrl?: string, nextSidecarUrls: string[] = []): void { + if (uploadedScenePresetUrl && uploadedScenePresetUrl !== nextUrl) { + URL.revokeObjectURL(uploadedScenePresetUrl); + } + for (const url of uploadedSceneSidecarUrls) { + if (!nextSidecarUrls.includes(url)) { + URL.revokeObjectURL(url); + } + } + uploadedScenePresetUrl = nextUrl; + uploadedSceneSidecarUrls = [...nextSidecarUrls]; +} + +function getUploadedSceneManifest(): SceneManifest | undefined { + if (uploadedSceneManifestId === uploadedScenePreset?.id && uploadedSceneManifest) { + return uploadedSceneManifest; + } + return undefined; +} + +function uploadedSceneLabelText(): string { + return uploadedScenePreset ? uploadedScenePreset.label : t("placeholder.noScene"); +} + +function refreshUploadedSceneStatus(): void { + const input = document.querySelector("#uploaded-scene-label"); + if (input) { + input.value = uploadedSceneLabelText(); + } +} + +function removeUploadedScenePreset(): void { + clearUploadedSceneAssetUrls(); + uploadedScenePreset = undefined; + uploadedSceneManifest = undefined; + uploadedSceneManifestId = undefined; + uploadedScenePresetUrl = undefined; + refreshUploadedSceneStatus(); +} + +function stripFileExtension(fileName: string): string { + return fileName.replace(/\.[^.]+$/, ""); +} + +function makeObjectId(prefix: string, rawName: string, serial: number): string { + const sanitized = rawName + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/^-+|-+$/g, "") + .slice(0, 42); + return `${prefix}-${sanitized || "asset"}-${serial}`; +} + +function detectMeshFormat(fileName: string): "gltf" | "glb" | "obj" | "stl" { + const name = fileName.toLowerCase(); + if (name.endsWith(".glb")) { + return "glb"; + } + if (name.endsWith(".obj")) { + return "obj"; + } + if (name.endsWith(".stl")) { + return "stl"; + } + return "gltf"; +} + +function uploadFileExtension(fileName: string): string { + const match = fileName.toLowerCase().match(/\.([a-z0-9]+)(?:[?#].*)?$/); + return match?.[1] ?? ""; +} + +function isUploadMeshFile(file: File): boolean { + return UPLOAD_MESH_EXTENSIONS.has(uploadFileExtension(file.name)); +} + +function isUploadAssetFile(file: File): boolean { + return UPLOAD_ASSET_EXTENSIONS.has(uploadFileExtension(file.name)); +} + +function uploadFilePath(file: File): string { + const relative = (file as File & { webkitRelativePath?: string }).webkitRelativePath; + return relative && relative.length > 0 ? relative : file.name; +} + +function normalizeUploadPath(value: string): string { + const withoutQuery = value.split(/[?#]/, 1)[0] ?? value; + let decoded = withoutQuery; + try { + decoded = decodeURIComponent(withoutQuery); + } catch { + decoded = withoutQuery; + } + return decoded + .replace(/\\/g, "/") + .replace(/^\.\//, "") + .replace(/^\/+/, "") + .toLowerCase(); +} + +function uploadPathAliases(path: string): string[] { + const normalized = normalizeUploadPath(path); + const parts = normalized.split("/").filter(Boolean); + const aliases = new Set(); + aliases.add(normalized); + if (parts.length > 0) { + aliases.add(parts[parts.length - 1]!); + } + if (parts.length > 1) { + aliases.add(parts.slice(-2).join("/")); + } + return Array.from(aliases).filter(Boolean); +} + +function registerLocalAssetUrl(bundle: LocalAssetBundle, file: File, url: string): void { + for (const alias of uploadPathAliases(uploadFilePath(file))) { + bundle.urlsByKey.set(alias, url); + } +} + +function localAssetUrlForPath(bundle: LocalAssetBundle, rawUrl: string): string | undefined { + for (const alias of uploadPathAliases(rawUrl)) { + const url = bundle.urlsByKey.get(alias); + if (url) { + return url; + } + } + return undefined; +} + +function isInlineOrAbsoluteUrl(value: string): boolean { + return /^(?:[a-z][a-z0-9+.-]*:|\/)/i.test(value); +} + +function isRewritableLocalReference(value: string): boolean { + return value.length > 0 && !value.startsWith("#") && !isInlineOrAbsoluteUrl(value); +} + +function safeResolveUrl(value: string, baseUrl: string): string { + if (!value || value.startsWith("blob:") || value.startsWith("data:")) { + return value; + } + try { + return new URL(value, baseUrl).href; + } catch { + return value; + } +} + +function rewriteLocalReference(rawUrl: string, bundle: LocalAssetBundle): string { + if (!isRewritableLocalReference(rawUrl)) { + return rawUrl; + } + const localUrl = localAssetUrlForPath(bundle, rawUrl); + if (localUrl) { + bundle.matched += 1; + return localUrl; + } + bundle.missing.push(rawUrl); + return rawUrl; +} + +async function createGltfObjectUrl(file: File, bundle: LocalAssetBundle): Promise { + try { + const gltf = JSON.parse(await file.text()) as { + buffers?: Array<{ uri?: string }>; + images?: Array<{ uri?: string }>; + }; + let changed = false; + for (const item of [...(gltf.buffers ?? []), ...(gltf.images ?? [])]) { + if (!item.uri || !isRewritableLocalReference(item.uri)) { + continue; + } + const localUrl = localAssetUrlForPath(bundle, item.uri); + if (localUrl) { + item.uri = localUrl; + bundle.matched += 1; + changed = true; + } else { + bundle.missing.push(item.uri); + } + } + const blob = changed + ? new Blob([JSON.stringify(gltf)], { type: "model/gltf+json" }) + : file; + const url = URL.createObjectURL(blob); + bundle.objectUrls.push(url); + return url; + } catch { + const url = URL.createObjectURL(file); + bundle.objectUrls.push(url); + return url; + } +} + +async function createLocalAssetBundle(files: File[]): Promise { + const bundle: LocalAssetBundle = { + urlsByKey: new Map(), + objectUrls: [], + matched: 0, + missing: [], + }; + const assetFiles = files.filter(isUploadAssetFile); + + for (const file of assetFiles) { + if (uploadFileExtension(file.name) === "gltf") { + continue; + } + const url = URL.createObjectURL(file); + bundle.objectUrls.push(url); + registerLocalAssetUrl(bundle, file, url); + } + + for (const file of assetFiles) { + if (uploadFileExtension(file.name) !== "gltf") { + continue; + } + const url = await createGltfObjectUrl(file, bundle); + registerLocalAssetUrl(bundle, file, url); + } + + return bundle; +} + +function rewriteManifestLocalAssets(manifest: SceneManifest, bundle: LocalAssetBundle): SceneManifest { + const resolved = structuredClone(manifest); + for (const object of resolved.objects) { + if (object.geometry.kind === "mesh") { + const geometry = object.geometry as MeshGeometry; + geometry.url = rewriteLocalReference(geometry.url, bundle); + } + } + for (const material of resolved.materials ?? []) { + if (material.textureUrl) { + material.textureUrl = rewriteLocalReference(material.textureUrl, bundle); + } + } + bundle.missing = Array.from(new Set(bundle.missing)); + return resolved; +} + +function clearBuilderPropsForMissingPresetIds(validPresetIds: Set): void { + for (let index = builderProps.length - 1; index >= 0; index -= 1) { + if (!validPresetIds.has(builderProps[index]!.presetId)) { + builderProps.splice(index, 1); + } + } + if (selectedBuilderPropId && !allPropPresets().some((candidate) => candidate.id === selectedBuilderPropId)) { + selectedBuilderPropId = builderProps[0]?.id; + } + if (builderProps.length === 0) { + selectedBuilderPropId = undefined; + } +} + +function paletteColorBySerial(serial: number): string { + const palette = ["#f59e0b", "#22d3ee", "#a78bfa", "#34d399", "#f472b6", "#60a5fa", "#fbbf24", "#a78bfa", "#2dd4bf"]; + return palette[serial % palette.length] ?? "#93c5fd"; +} + +async function registerUploadedPropFile(file: File, files: File[]): Promise { + const fileLabel = stripFileExtension(file.name); + const presetId = makeObjectId(CUSTOM_PROP_PRESET_PREFIX, fileLabel, propUploadSerial); + propUploadSerial += 1; + const bundle = await createLocalAssetBundle(files); + const url = localAssetUrlForPath(bundle, uploadFilePath(file)) ?? URL.createObjectURL(file); + if (!bundle.objectUrls.includes(url)) { + bundle.objectUrls.push(url); + } + uploadedPropAssetUrls.set(presetId, bundle.objectUrls); + const format = detectMeshFormat(file.name); + return { + id: presetId, + label: fileLabel || t("preset.prop.uploaded"), + material: { + id: `${presetId}_mat`, + color: paletteColorBySerial(propUploadSerial), + }, + object: { + geometry: { + kind: "mesh", + url, + format, + }, + castShadow: true, + receiveShadow: true, + }, + }; +} + +async function addUploadedProps(files: FileList | File[]): Promise { + const fileList = Array.from(files); + let imported = 0; + for (const file of fileList) { + if (!isUploadMeshFile(file)) { + continue; + } + CUSTOM_PROP_PRESETS.push(await registerUploadedPropFile(file, fileList)); + imported += 1; + } + if (imported === 0) { + setWorkspaceStatus("status.workspace.importFailed"); + return; + } + renderAssetGrid(); + setWorkspaceStatus("status.workspace.assetsImported", { count: imported }); +} + +function revokeUploadedPropAssetUrl(preset: PropPreset): void { + for (const url of uploadedPropAssetUrls.get(preset.id) ?? []) { + URL.revokeObjectURL(url); + } + uploadedPropAssetUrls.delete(preset.id); +} + +function removeUploadedPropPreset(presetId: string): void { + const index = CUSTOM_PROP_PRESETS.findIndex((candidate) => candidate.id === presetId); + if (index < 0) { + return; + } + const [preset] = CUSTOM_PROP_PRESETS.splice(index, 1); + revokeUploadedPropAssetUrl(preset); + clearBuilderPropsForMissingPresetIds(new Set(allPropPresets().map((candidate) => candidate.id))); + if (selectedBuilderPropId && !allPropPresets().some((candidate) => candidate.id === selectedBuilderPropId)) { + selectedBuilderPropId = builderProps[0]?.id; + } + renderBuilderProps(); + renderBuilderSummary(); + renderAssetGrid(); +} + +function clearUploadedPropPresets(): void { + for (const preset of CUSTOM_PROP_PRESETS) { + revokeUploadedPropAssetUrl(preset); + } + CUSTOM_PROP_PRESETS.length = 0; + clearBuilderPropsForMissingPresetIds(new Set(PROP_PRESETS.map((preset) => preset.id))); + if (selectedBuilderPropId && !allPropPresets().some((candidate) => candidate.id === selectedBuilderPropId)) { + selectedBuilderPropId = builderProps[0]?.id; + } + renderAssetGrid(); + renderBuilderProps(); + renderBuilderSummary(); +} + +function isSceneManifestLike(value: unknown): value is SceneManifest { + return Boolean( + value + && typeof value === "object" + && "version" in (value as Record) + && "objects" in (value as Record) + && Array.isArray((value as SceneManifest).objects), + ); +} + +async function uploadSceneManifest(file: File, files: File[] = [file]): Promise { + const text = await file.text(); + let manifestData: unknown; + try { + manifestData = JSON.parse(text); + } catch { + setWorkspaceStatus("status.workspace.importFailed"); + return; + } + if (!isSceneManifestLike(manifestData)) { + setWorkspaceStatus("status.workspace.importFailed"); + return; + } + const bundle = await createLocalAssetBundle(files.filter((candidate) => candidate !== file)); + const resolvedManifest = rewriteManifestLocalAssets(manifestData, bundle); + const presetLabel = stripFileExtension(file.name) || t("preset.scene.customUpload"); + const manifestUrl = URL.createObjectURL(new Blob([JSON.stringify(resolvedManifest)], { type: "application/json" })); + const previousSceneId = selectedBuilderConfigSceneId(); + setUploadedScenePreset(presetLabel, manifestUrl, resolvedManifest, bundle.objectUrls); + refreshUploadedSceneStatus(); + renderBuilderOptions(false); + const sceneSelect = document.querySelector("#builder-scene"); + if (sceneSelect && previousSceneId !== uploadedScenePreset?.id) { + sceneSelect.value = uploadedScenePreset?.id ?? sceneSelect.value; + } + if (uploadedScenePreset) { + sceneSelect!.value = uploadedScenePreset.id; + const params = { matched: bundle.matched, missing: bundle.missing.length }; + setWorkspaceStatus("status.workspace.sceneImported", params); + await buildAndLoadBuilderScene("status.workspace.imported"); + setWorkspaceStatus("status.workspace.sceneImported", params); + } +} + +async function uploadSceneFileSet(files: FileList | File[]): Promise { + const fileList = Array.from(files); + const manifestFile = fileList.find((file) => uploadFileExtension(file.name) === "json"); + if (!manifestFile) { + setWorkspaceStatus("status.workspace.importFailed"); + return; + } + await uploadSceneManifest(manifestFile, fileList); +} + +function selectedBuilderConfigSceneId(): string { + const sceneSelect = document.querySelector("#builder-scene"); + return sceneSelect?.value ?? ""; +} + +function renderLocaleOptions(): void { + localeSelect.innerHTML = ""; + for (const locale of SUPPORTED_LOCALES) { + const option = document.createElement("option"); + option.value = locale.id; + option.textContent = locale.label; + localeSelect.appendChild(option); + } + localeSelect.value = currentLocale; +} + +function applyTranslations(): void { + document.documentElement.lang = currentLocale; + document.title = `${t("app.name")} - ${t("app.title")}`; + document.querySelectorAll("[data-i18n]").forEach((element) => { + const key = element.dataset.i18n; + if (key) { + element.textContent = t(key as MessageKey); + } + }); + document.querySelectorAll("[data-i18n-title]").forEach((element) => { + const key = element.dataset.i18nTitle; + if (key) { + element.title = t(key as MessageKey); + } + }); + renderLocaleOptions(); + renderTemplateGrid(); + renderAssetGrid(); + renderBuilderOptions(false); + renderHistoryButtons(); + renderControlAvailability(); + renderJointControls(); + renderActuatorControls(); + renderInputAvailability(); + renderInputFrame(latestFrame ?? {}); + renderMainStatus(); + renderWorkspaceStatus(); + renderWorkflowStatus(); + renderProjectStatus(); + renderAcceptanceStatus(); + renderAcceptancePanel(); + renderBuilderSummary(); + renderProjectOverview(); + setText("#viewport-source-label", simulationSourceLabel()); + setText("#project-simulation-source", simulationSourceLabel()); + renderSavedProjects(); + renderActivityLog(); + renderSceneOutline(); + renderPropertyInspector(); + renderHealthPanel(); + renderRunState(); + stateStatusElement.textContent = localizeStateStatus(latestStateStatusMessage); + renderStats(); +} + +function setLocale(locale: Locale): void { + currentLocale = locale; + persistLocale(locale); + applyTranslations(); +} + +stateClient.onFrame((frame) => { + latestFrame = frame; + previewer.applyFrame(frame); + updateDragAvailability(frame); + if (pendingCameraFit && Object.keys(frame.bodies ?? {}).length > 0) { + pendingCameraFit = false; + window.requestAnimationFrame(() => previewer.refitCamera()); + } + refreshJointValuesFromFrame(frame); + refreshActuatorValuesFromFrame(frame); + renderInputFrame(frame); + renderRunState(); + const now = performance.now(); + if (now - lastLivePanelRefreshAt > LIVE_PANEL_REFRESH_MS) { + lastLivePanelRefreshAt = now; + renderProjectOverview(); + renderHealthPanel(); + renderAcceptancePanel(); + } +}); +stateClient.onStatus((message) => { + latestStateStatusMessage = message; + stateStatusElement.textContent = localizeStateStatus(message); + renderProjectOverview(); + renderHealthPanel(); + renderAcceptancePanel(); +}); + +function setMainStatus(key: MessageKey, params: I18nParams = {}): void { + mainStatusKey = key; + mainStatusParams = params; + renderMainStatus(); +} + +function renderMainStatus(): void { + statusElement.textContent = t(mainStatusKey, mainStatusParams); +} + +function setWorkspaceStatus(key: MessageKey, params: I18nParams = {}): void { + workspaceStatusKey = key; + workspaceStatusParams = params; + renderWorkspaceStatus(); +} + +function renderWorkspaceStatus(): void { + setText("#workspace-status", t(workspaceStatusKey, workspaceStatusParams)); +} + +function setWorkflowStatus(key: MessageKey, params: I18nParams = {}): void { + workflowStatusKey = key; + workflowStatusParams = params; + renderWorkflowStatus(); +} + +function renderWorkflowStatus(): void { + setText("#workflow-status", t(workflowStatusKey, workflowStatusParams)); +} + +function setProjectStatus(key: MessageKey, params: I18nParams = {}): void { + projectStatusKey = key; + projectStatusParams = params; + renderProjectStatus(); +} + +function renderProjectStatus(): void { + setText("#project-status", t(projectStatusKey, projectStatusParams)); +} + +function setAcceptanceStatus(key: MessageKey, params: I18nParams = {}): void { + acceptanceStatusKey = key; + acceptanceStatusParams = params; + renderAcceptanceStatus(); +} + +function renderAcceptanceStatus(): void { + setText("#acceptance-status", t(acceptanceStatusKey, acceptanceStatusParams)); +} + +function addActivity(key: MessageKey, params: I18nParams = {}, tone: ActivityEntry["tone"] = "info"): void { + activityLog.unshift({ + id: `activity_${Date.now()}_${Math.round(Math.random() * 100000)}`, + at: new Date().toISOString(), + message: t(key, params), + tone, + }); + if (activityLog.length > ACTIVITY_LIMIT) { + activityLog.length = ACTIVITY_LIMIT; + } + renderActivityLog(); +} + +function renderActivityLog(): void { + const container = document.querySelector("#activity-list"); + if (!container) { + return; + } + if (activityLog.length === 0) { + container.innerHTML = `
${t("empty.activity")}
`; + return; + } + container.innerHTML = activityLog.map((entry) => ` +
+ + ${escapeHtml(entry.message)} +
+ `).join(""); +} + +async function loadManifest(url: string): Promise { + setMainStatus("status.loading", { url }); + const response = await fetch(url, { cache: "no-store" }); + if (!response.ok) { + throw new Error(`manifest request failed: ${response.status}`); + } + const manifest = resolveManifestUrls((await response.json()) as SceneManifest, response.url); + await loadResolvedManifest(manifest); +} + +async function loadResolvedManifest(manifest: SceneManifest): Promise { + stateClient.disconnect(); + latestFrame = undefined; + controlUrl = resolveControlUrl(manifest); + updateDragAvailability(undefined); + physicsModeKey = inferPhysicsMode(manifest); + jointControls = manifest.controls?.joints ?? []; + actuatorControls = manifest.controls?.actuators ?? []; + renderControlAvailability(); + renderJointControls(); + renderActuatorControls(); + renderInputAvailability(); + const stateConnect = stateClient.connect(manifest.state); + await previewer.loadManifest(manifest); + const inferredEditableObjectIds = inferDefaultEditableObjectIds(manifest, { requireBody: Boolean(controlUrl) }); + previewer.setDragOptions({ + editableObjectIds: inferredEditableObjectIds, + enabled: controlUrl ? false : true, + onDrag: (event) => { + if (event.kind === "prop" && event.end) { + void commitDraggedBodyPose(event); + } + }, + }); + setMainStatus("status.manifestLoaded", { count: manifest.objects.length }); + addActivity("activity.manifestLoaded", { count: manifest.objects.length }, "ok"); + pendingCameraFit = true; + await stateConnect; + renderStats(); +} + +function resolveManifestUrls(manifest: SceneManifest, manifestUrl: string): SceneManifest { + const resolved: SceneManifest = structuredClone(manifest); + if (resolved.state?.url) { + resolved.state.url = safeResolveUrl(resolved.state.url, manifestUrl); + } + if (resolved.state?.controlUrl) { + resolved.state.controlUrl = safeResolveUrl(resolved.state.controlUrl, manifestUrl); + } + for (const object of resolved.objects) { + if (object.geometry.kind === "mesh") { + const geometry = object.geometry as MeshGeometry; + geometry.url = safeResolveUrl(geometry.url, manifestUrl); + } + } + for (const material of resolved.materials ?? []) { + if (material.textureUrl) { + material.textureUrl = safeResolveUrl(material.textureUrl, manifestUrl); + } + } + return resolved; +} + +function resolveControlUrl(manifest: SceneManifest): string | undefined { + if (manifest.state?.controlUrl) { + return manifest.state.controlUrl; + } + if (manifest.state?.mode !== "poll" || !manifest.state.url) { + return undefined; + } + const url = new URL(manifest.state.url); + if (!url.pathname.endsWith("/state")) { + return undefined; + } + url.pathname = url.pathname.replace(/\/state$/, "/control"); + return url.href; +} + +function renderStats(): void { + const stats = previewer.getStats(); + setText("#stat-manifest", stats.manifestName); + setText("#stat-objects", String(stats.objectCount)); + setText("#stat-bindings", String(stats.bodyBoundObjectCount)); + setText("#stat-meshes", String(stats.loadedMeshCount)); + setText("#stat-fallbacks", String(stats.fallbackCount)); + setText("#stat-physics", t(physicsModeKey)); + setText("#stat-step", stats.lastStep === undefined ? "-" : String(stats.lastStep)); + setText("#stat-paused", stats.paused === undefined ? "-" : String(stats.paused)); + setText("#stat-pixels", String(stats.nonBackgroundPixelSamples ?? 0)); + setText("#summary-physics", t(physicsModeKey)); + setText("#viewport-source-label", simulationSourceLabel()); + renderProjectOverview(); + renderHealthPanel(); + renderAcceptancePanel(); + renderRunState(); +} + +function runStateLabel(): string { + if (!latestFrame) { + return t("run.offline"); + } + return latestFrame.paused ? t("run.paused") : t("run.running"); +} + +function renderRunState(): void { + const value = runStateLabel(); + setText("#summary-run-state", value); + setText("#viewport-run-state", value); +} + +function inferPhysicsMode(manifest: SceneManifest): MessageKey { + if (manifest.composite?.type?.includes("visual") || manifest.composite?.note?.includes("visual")) { + return "physics.visualOnly"; + } + if (manifest.state?.mode === "poll" && (manifest.controls?.joints?.length || manifest.controls?.actuators?.length)) { + return "physics.backendPhysics"; + } + if (manifest.state?.mode === "poll") { + return "physics.backendState"; + } + return "physics.staticPreview"; +} + +function localizeStateStatus(message: string): string { + if (message === "state: pending") return t("status.state.pending"); + if (message === "state: none") return t("state.none"); + if (message === "state: replay missing url") return t("state.replayMissing"); + if (message === "state: poll missing url") return t("state.pollMissing"); + if (message === "state: poll connected") return t("state.pollConnected"); + if (message === "state: websocket missing url") return t("state.websocketMissing"); + if (message === "state: websocket connected") return t("state.websocketConnected"); + if (message === "state: websocket closed") return t("state.websocketClosed"); + if (message === "state: websocket error") return t("state.websocketError"); + const replay = message.match(/^state: replay (\d+) frames @ ([\d.]+) fps$/); + if (replay) return t("state.replay", { count: replay[1], fps: replay[2] }); + const pollStatus = message.match(/^state: poll (\d+)$/); + if (pollStatus) return t("state.pollStatus", { status: pollStatus[1] }); + const pollError = message.match(/^state: poll error (.+)$/); + if (pollError) return t("state.pollError", { message: pollError[1] }); + const wsParse = message.match(/^state: websocket parse error (.+)$/); + if (wsParse) return t("state.websocketParseError", { message: wsParse[1] }); + return message; +} + +function setText(selector: string, value: string): void { + const element = document.querySelector(selector); + if (element) { + element.textContent = value; + } +} + +function renderBuilderOptions(resetSelection = true): void { + const sceneSelect = document.querySelector("#builder-scene")!; + const robotSelect = document.querySelector("#builder-robot")!; + const propSelect = document.querySelector("#builder-prop")!; + const sceneValue = resetSelection ? "g1-store-blocks-physics" : sceneSelect.value; + const robotValue = resetSelection ? "none" : robotSelect.value; + const propValue = propSelect.value; + fillPresetSelect("#builder-scene", allScenePresets()); + fillPresetSelect("#builder-robot", ROBOT_PRESETS); + fillPresetSelect("#builder-prop", allPropPresets()); + const availableScenes = allScenePresets(); + if (!availableScenes.some((preset) => preset.id === sceneValue)) { + sceneSelect.value = availableScenes[0]?.id ?? ""; + } else { + sceneSelect.value = sceneValue; + } + robotSelect.value = robotValue; + propSelect.value = propValue || (allPropPresets()[0]?.id ?? ""); + if (resetSelection) { + seedBuilderPropsForSelectedScene(); + } else { + renderBuilderProps(); + } + renderBuilderPhysicsGuard(); + renderBuilderSummary(); +} + +function fillPresetSelect(selector: string, presets: Array<{ id: string; label: string; labelKey?: MessageKey }>): void { + const select = document.querySelector(selector)!; + select.innerHTML = ""; + for (const preset of presets) { + const option = document.createElement("option"); + option.value = preset.id; + option.textContent = labelFor(preset); + select.appendChild(option); + } +} + +function renderTemplateGrid(): void { + const container = document.querySelector("#template-grid"); + if (!container) { + return; + } + container.innerHTML = SCENE_TEMPLATES.map( + (template) => ` + + `, + ).join(""); +} + +function renderAssetGrid(): void { + const container = document.querySelector("#asset-grid"); + if (!container) { + return; + } + container.innerHTML = allPropPresets().map((preset) => { + const color = preset.material.color ?? "#93c5fd"; + const isUploaded = CUSTOM_PROP_PRESETS.some((candidate) => candidate.id === preset.id); + const removeAction = isUploaded ? `` : ""; + return ` + + `; + }).join(""); +} + +function selectedScenePreset(): ScenePreset { + const value = document.querySelector("#builder-scene")!.value; + return allScenePresets().find((preset) => preset.id === value) ?? allScenePresets()[0]; +} + +function selectedRobotPreset(): RobotPreset { + const value = document.querySelector("#builder-robot")!.value; + return ROBOT_PRESETS.find((preset) => preset.id === value) ?? ROBOT_PRESETS[0]; +} + +function selectedPropPreset(): PropPreset { + const value = document.querySelector("#builder-prop")!.value; + return allPropPresets().find((preset) => preset.id === value) ?? allPropPresets()[0]; +} + +function isCustomUploadedPropId(presetId: string): boolean { + return presetId.startsWith(CUSTOM_PROP_PRESET_PREFIX) || CUSTOM_PROP_PRESETS.some((preset) => preset.id === presetId); +} + +function canUseBackendCompose(scenePreset: ScenePreset): boolean { + return Boolean(scenePreset.composeUrl) && builderProps.every((item) => !isCustomUploadedPropId(item.presetId)); +} + +function renderBuilderSummary(): void { + const scenePreset = selectedScenePreset(); + const robotPreset = selectedRobotPreset(); + setText("#summary-scene", labelFor(scenePreset)); + setText("#summary-robot", labelFor(robotPreset)); + setText("#summary-props", String(builderProps.length)); + setText("#summary-physics", t(physicsModeKey)); + setText("#viewport-scene-label", `${labelFor(scenePreset)} / ${labelFor(robotPreset)}`); + renderProjectOverview(); +} + +function basePropHeight(presetId: string): number { + if (presetId === "green-ball") return 0.09; + if (presetId === "pallet") return 0.04; + return 0.08; +} + +function pushBuilderProp(presetId: string, position?: Vec3): BuilderProp { + const preset = propPresetById(presetId) ?? allPropPresets()[0]; + if (!preset) { + throw new Error(`preset not found: ${presetId}`); + } + const index = builderPropSerial; + const row = Math.floor(builderProps.length / 4); + const col = builderProps.length % 4; + builderPropSerial += 1; + const item: BuilderProp = { + id: `builder_prop_${index}`, + presetId: preset.id, + label: preset.label, + position: position ?? [0.72 + col * 0.28, -0.48 - row * 0.26, basePropHeight(preset.id)], + }; + builderProps.push(item); + selectedBuilderPropId = item.id; + return item; +} + +function addBuilderProp(): void { + pushBuilderProp(selectedPropPreset().id); + renderBuilderProps(); +} + +function seedBuilderPropsForSelectedScene(): void { + builderProps.length = 0; + for (const presetId of selectedScenePreset().defaultProps ?? []) { + pushBuilderProp(presetId); + } + selectedBuilderPropId = builderProps[0]?.id; + renderBuilderProps(); +} + +function ensureSelectedBuilderProp(): void { + if (!builderProps.some((item) => item.id === selectedBuilderPropId)) { + selectedBuilderPropId = builderProps[0]?.id; + } +} + +function renderBuilderProps(): void { + const container = document.querySelector("#builder-props")!; + ensureSelectedBuilderProp(); + if (builderProps.length === 0) { + container.innerHTML = `
${t("empty.props")}
`; + renderBuilderSummary(); + renderSceneOutline(); + renderPropertyInspector(); + return; + } + container.innerHTML = builderProps + .map( + (item, index) => ` +
+
+ ${index + 1}. ${propLabelById(item.presetId)} +
+ + +
+
+
+ ${(["X", "Y", "Z"] as const) + .map( + (axis, axisIndex) => ` + + `, + ) + .join("")} +
+
+ `, + ) + .join(""); + renderBuilderSummary(); + renderSceneOutline(); + renderPropertyInspector(); +} + +function renderSceneOutline(): void { + const container = document.querySelector("#scene-outline"); + if (!container) { + return; + } + const scenePreset = selectedScenePreset(); + const robotPreset = selectedRobotPreset(); + const propRows = builderProps.map((item, index) => ` + + `).join(""); + container.innerHTML = ` +
+ ${t("label.scene")} + ${labelFor(scenePreset)} +
+
+ ${t("label.robot")} + ${labelFor(robotPreset)} +
+
+ ${propRows || `
${t("empty.props")}
`} + `; +} + +function selectedBuilderProp(): BuilderProp | undefined { + ensureSelectedBuilderProp(); + return builderProps.find((item) => item.id === selectedBuilderPropId); +} + +function renderPropertyInspector(): void { + const container = document.querySelector("#property-inspector"); + if (!container) { + return; + } + const item = selectedBuilderProp(); + if (!item) { + container.innerHTML = `
${t("empty.selection")}
`; + return; + } + container.innerHTML = ` +
+ ${t("label.selectedObject")} + ${propLabelById(item.presetId)} + ${item.id} +
+ +
+ ${(["X", "Y", "Z"] as const).map((axis, axisIndex) => ` + + `).join("")} +
+
+ + +
+ `; +} + +function renderHealthPanel(): void { + const container = document.querySelector("#health-list"); + if (!container) { + return; + } + const stats = previewer.getStats(); + const health = healthSummary(); + const items = [ + { ok: health.stateConnected, label: health.stateConnected ? t("health.stateOk") : t("health.statePending") }, + { ok: health.controlsReady, label: health.controlsReady ? t("health.controlOk") : t("health.controlPending") }, + { ok: stats.objectCount > 0, label: t("health.objects", { count: stats.objectCount }) }, + { ok: health.hasVisiblePixels, label: t("health.pixels", { count: stats.nonBackgroundPixelSamples ?? 0 }) }, + ]; + container.innerHTML = items.map((item) => ` +
+ + ${item.label} +
+ `).join(""); +} + +function healthSummary(): { readyCount: number; total: number; stateConnected: boolean; controlsReady: boolean; hasObjects: boolean; hasVisiblePixels: boolean } { + const stats = previewer.getStats(); + const stateConnected = latestStateStatusMessage.includes("connected") || latestStateStatusMessage.includes("none"); + const controlsReady = Boolean(controlUrl); + const hasObjects = stats.objectCount > 0; + const hasVisiblePixels = (stats.nonBackgroundPixelSamples ?? 0) > 0; + const readyCount = [stateConnected, controlsReady, hasObjects, hasVisiblePixels].filter(Boolean).length; + return { readyCount, total: 4, stateConnected, controlsReady, hasObjects, hasVisiblePixels }; +} + +function currentAcceptanceChecks(): AcceptanceCheck[] { + const stats = previewer.getStats(); + const health = healthSummary(); + const manifestAvailable = stats.manifestName !== "none" && stats.objectCount > 0 && manifestInput.value.trim().length > 0; + const hasUsefulMeshes = stats.loadedMeshCount > 0 || stats.objectCount > 0; + const reportText = document.querySelector("#workflow-report-text")?.value.trim() ?? ""; + return [ + { + id: "manifest", + label: t("acceptance.check.manifest"), + detail: manifestAvailable ? t("acceptance.detail.manifestOk", { name: stats.manifestName }) : t("acceptance.detail.manifestPending"), + state: manifestAvailable ? "pass" : "fail", + }, + { + id: "backend", + label: t("acceptance.check.backend"), + detail: health.stateConnected ? localizeStateStatus(latestStateStatusMessage) : t("acceptance.detail.backendPending"), + state: health.stateConnected ? "pass" : "fail", + }, + { + id: "control", + label: t("acceptance.check.control"), + detail: controlUrl ? controlUrl : t("acceptance.detail.controlMissing"), + state: controlUrl ? "pass" : "warn", + }, + { + id: "objects", + label: t("acceptance.check.objects"), + detail: t("acceptance.detail.objects", { count: stats.objectCount, bindings: stats.bodyBoundObjectCount }), + state: stats.objectCount > 0 ? "pass" : "fail", + }, + { + id: "assets", + label: t("acceptance.check.assets"), + detail: t("acceptance.detail.assets", { meshes: stats.loadedMeshCount, fallbacks: stats.fallbackCount }), + state: stats.fallbackCount > 0 ? "warn" : hasUsefulMeshes ? "pass" : "fail", + }, + { + id: "pixels", + label: t("acceptance.check.pixels"), + detail: t("acceptance.detail.pixels", { count: stats.nonBackgroundPixelSamples ?? 0 }), + state: health.hasVisiblePixels ? "pass" : "fail", + }, + { + id: "physics", + label: t("acceptance.check.physics"), + detail: t(physicsModeKey), + state: physicsModeKey === "physics.staticPreview" || physicsModeKey === "physics.visualOnly" ? "warn" : "pass", + }, + { + id: "report", + label: t("acceptance.check.report"), + detail: reportText ? t("acceptance.detail.reportOk") : t("acceptance.detail.reportPending"), + state: reportText ? "pass" : "warn", + }, + ]; +} + +function acceptanceResult(checks = currentAcceptanceChecks()): { + checks: AcceptanceCheck[]; + passCount: number; + warnCount: number; + failCount: number; + total: number; + state: "pass" | "warn" | "fail"; + verdictKey: MessageKey; + statusKey: MessageKey; +} { + const passCount = checks.filter((check) => check.state === "pass").length; + const warnCount = checks.filter((check) => check.state === "warn").length; + const failCount = checks.filter((check) => check.state === "fail").length; + const state = failCount > 0 ? "fail" : warnCount > 0 ? "warn" : "pass"; + const verdictKey: MessageKey = state === "pass" + ? "acceptance.verdict.pass" + : state === "warn" + ? "acceptance.verdict.warn" + : "acceptance.verdict.fail"; + const statusKey: MessageKey = state === "pass" + ? "status.acceptance.pass" + : state === "warn" + ? "status.acceptance.warn" + : "status.acceptance.fail"; + return { checks, passCount, warnCount, failCount, total: checks.length, state, verdictKey, statusKey }; +} + +function combineAcceptanceState(checks: AcceptanceCheck[]): AcceptanceCase["state"] { + if (checks.some((check) => check.state === "fail")) { + return "fail"; + } + if (checks.some((check) => check.state === "warn")) { + return "warn"; + } + return "pass"; +} + +function acceptanceEvidence(checks: AcceptanceCheck[]): string { + return checks.map((check) => `${check.label}: ${check.detail}`).join(";"); +} + +function currentAcceptanceCases(checks = currentAcceptanceChecks()): AcceptanceCase[] { + const byId = new Map(checks.map((check) => [check.id, check])); + const pick = (...ids: string[]) => ids.map((id) => byId.get(id)).filter((check): check is AcceptanceCheck => Boolean(check)); + const cases = [ + { + id: "preview", + titleKey: "acceptance.case.preview.title", + goalKey: "acceptance.case.preview.goal", + checks: pick("manifest", "objects", "pixels"), + }, + { + id: "backend", + titleKey: "acceptance.case.backend.title", + goalKey: "acceptance.case.backend.goal", + checks: pick("backend", "physics"), + }, + { + id: "control", + titleKey: "acceptance.case.control.title", + goalKey: "acceptance.case.control.goal", + checks: pick("control"), + }, + { + id: "assets", + titleKey: "acceptance.case.assets.title", + goalKey: "acceptance.case.assets.goal", + checks: pick("assets"), + }, + { + id: "evidence", + titleKey: "acceptance.case.evidence.title", + goalKey: "acceptance.case.evidence.goal", + checks: pick("report"), + }, + ] satisfies Array<{ id: string; titleKey: MessageKey; goalKey: MessageKey; checks: AcceptanceCheck[] }>; + return cases.map((item) => ({ + id: item.id, + title: t(item.titleKey), + goal: t(item.goalKey), + evidence: item.checks.length > 0 ? acceptanceEvidence(item.checks) : "-", + state: combineAcceptanceState(item.checks), + })); +} + +function renderAcceptancePanel(): void { + const checksContainer = document.querySelector("#acceptance-checks"); + const casesContainer = document.querySelector("#acceptance-cases"); + const verdictElement = document.querySelector("#acceptance-verdict"); + const scoreElement = document.querySelector("#acceptance-score"); + if (!checksContainer || !casesContainer || !verdictElement || !scoreElement) { + return; + } + const result = acceptanceResult(); + const cases = currentAcceptanceCases(result.checks); + verdictElement.textContent = t(result.verdictKey); + verdictElement.className = result.state; + scoreElement.textContent = t("acceptance.score", { + pass: result.passCount, + warn: result.warnCount, + fail: result.failCount, + total: result.total, + }); + checksContainer.innerHTML = result.checks.map((check) => ` +
+ +
+ ${escapeHtml(check.label)} + ${escapeHtml(check.detail)} +
+
+ `).join(""); + casesContainer.innerHTML = cases.map((item) => ` +
+
+ ${escapeHtml(item.title)} + ${escapeHtml(item.goal)} +
+

${escapeHtml(item.evidence)}

+
+ `).join(""); +} + +function runAcceptanceReview(): void { + setAcceptanceStatus("status.acceptance.running"); + renderWorkflowReport(false); + acceptanceLastRunAt = new Date().toISOString(); + const result = acceptanceResult(); + setAcceptanceStatus(result.statusKey, { pass: result.passCount, warn: result.warnCount, fail: result.failCount, total: result.total }); + addActivity("activity.acceptanceRun", { pass: result.passCount, warn: result.warnCount, fail: result.failCount }, result.state === "fail" ? "warn" : "ok"); + renderAcceptancePanel(); +} + +function backendLabel(): string { + if (controlUrl) { + return new URL(controlUrl).origin; + } + const sceneManifest = selectedScenePreset().manifestUrl; + if (sceneManifest) { + return new URL(sceneManifest).origin; + } + return t("backend.frontendOnly"); +} + +function simulationSourceLabel(): string { + return controlUrl ? t("backend.externalSim") : t("backend.localSim"); +} + +function renderProjectOverview(): void { + const stats = previewer.getStats(); + const health = healthSummary(); + setText("#project-scene", labelFor(selectedScenePreset())); + setText("#project-backend", backendLabel()); + setText("#project-simulation-source", simulationSourceLabel()); + setText("#project-validation", t("validation.score", { ready: health.readyCount, total: health.total, objects: stats.objectCount })); +} + +function currentWorkflowReport(): string { + const stats = previewer.getStats(); + const health = healthSummary(); + return [ + `${t("label.currentScene")}: ${labelFor(selectedScenePreset())}`, + `${t("label.currentRobot")}: ${labelFor(selectedRobotPreset())}`, + `${t("label.addedObjects")}: ${builderProps.length}`, + `${t("label.backend")}: ${backendLabel()}`, + `${t("label.simulationSource")}: ${simulationSourceLabel()}`, + `${t("label.objects")}: ${stats.objectCount}`, + `${t("label.meshes")}: ${stats.loadedMeshCount}`, + `${t("label.pixelCheck")}: ${stats.nonBackgroundPixelSamples ?? 0}`, + `${t("label.runState")}: ${runStateLabel()}`, + `${t("label.validation")}: ${health.readyCount}/${health.total}`, + `${t("label.sceneManifest")}: ${manifestInput.value}`, + ].join("\n"); +} + +function renderWorkflowReport(copyToClipboard = false): void { + const report = currentWorkflowReport(); + const textarea = document.querySelector("#workflow-report-text"); + if (textarea) { + textarea.value = report; + } + if (copyToClipboard) { + void navigator.clipboard.writeText(report) + .then(() => { + setWorkflowStatus("status.workflow.reportCopied"); + addActivity("activity.reportReady", {}, "ok"); + }) + .catch(() => { + setWorkflowStatus("status.workflow.reportReady"); + addActivity("activity.reportReady", {}, "ok"); + }); + } else { + setWorkflowStatus("status.workflow.reportReady"); + addActivity("activity.reportReady", {}, "ok"); + } +} + +function escapeHtml(value: string): string { + return value.replace(/[&<>"']/g, (char) => ({ + "&": "&", + "<": "<", + ">": ">", + "\"": """, + "'": "'", + }[char] ?? char)); +} + +function savedProjects(): SavedProject[] { + try { + const parsed = JSON.parse(window.localStorage.getItem(SAVED_PROJECTS_STORAGE_KEY) ?? "[]") as SavedProject[]; + if (!Array.isArray(parsed)) { + return []; + } + return parsed.filter((project) => ( + typeof project.id === "string" + && typeof project.name === "string" + && typeof project.updatedAt === "string" + && project.config?.version === 1 + )); + } catch { + return []; + } +} + +function writeSavedProjects(projects: SavedProject[]): void { + window.localStorage.setItem(SAVED_PROJECTS_STORAGE_KEY, JSON.stringify(projects.slice(0, 20))); +} + +function newProjectId(): string { + return window.crypto?.randomUUID?.() ?? `project_${Date.now()}_${Math.round(Math.random() * 100000)}`; +} + +function defaultProjectName(): string { + return `${labelFor(selectedScenePreset())} ${new Date().toLocaleDateString(currentLocale)}`; +} + +function renderSavedProjects(): void { + const container = document.querySelector("#saved-project-list"); + if (!container) { + return; + } + const projects = savedProjects(); + if (projects.length === 0) { + container.innerHTML = `
${t("empty.projects")}
`; + return; + } + container.innerHTML = projects.map((project) => ` +
+
+ ${escapeHtml(project.name)} + ${new Date(project.updatedAt).toLocaleString(currentLocale)} +
+
+ + +
+
+ `).join(""); +} + +function saveNamedProject(): void { + const nameInput = document.querySelector("#project-name"); + const name = nameInput?.value.trim() || defaultProjectName(); + if (nameInput) { + nameInput.value = name; + } + const projects = savedProjects(); + const existingIndex = projects.findIndex((project) => project.name === name); + const saved: SavedProject = { + id: existingIndex >= 0 ? projects[existingIndex].id : newProjectId(), + name, + updatedAt: new Date().toISOString(), + config: builderConfig(), + }; + if (existingIndex >= 0) { + projects.splice(existingIndex, 1); + } + projects.unshift(saved); + writeSavedProjects(projects); + renderSavedProjects(); + setProjectStatus("status.project.saved", { name }); + addActivity("activity.projectSaved", { name }, "ok"); +} + +function loadNamedProject(projectId: string): void { + const project = savedProjects().find((candidate) => candidate.id === projectId); + if (!project) { + setProjectStatus("status.project.missing"); + renderSavedProjects(); + return; + } + const nameInput = document.querySelector("#project-name"); + if (nameInput) { + nameInput.value = project.name; + } + applyBuilderConfig(structuredClone(project.config)); + setProjectStatus("status.project.loaded", { name: project.name }); + addActivity("activity.projectLoaded", { name: project.name }, "ok"); + void buildAndLoadBuilderScene("status.workspace.restored").catch((error) => { + setProjectStatus("status.project.error", { message: (error as Error).message }); + addActivity("activity.projectError", { message: (error as Error).message }, "warn"); + }); +} + +function deleteNamedProject(projectId: string): void { + const projects = savedProjects(); + const project = projects.find((candidate) => candidate.id === projectId); + writeSavedProjects(projects.filter((candidate) => candidate.id !== projectId)); + renderSavedProjects(); + setProjectStatus(project ? "status.project.deleted" : "status.project.missing", { name: project?.name ?? "" }); + if (project) { + addActivity("activity.projectDeleted", { name: project.name }, "warn"); + } +} + +function safeDownloadName(value: string): string { + const ascii = value.normalize("NFKD").replace(/[^\w.-]+/g, "-").replace(/^-+|-+$/g, ""); + return ascii || "motrixsim-preview"; +} + +function downloadPreviewPng(): void { + try { + const name = document.querySelector("#project-name")?.value.trim() || defaultProjectName(); + const anchor = document.createElement("a"); + anchor.href = previewer.capturePng(); + anchor.download = `${safeDownloadName(name)}-${new Date().toISOString().replace(/[:.]/g, "-")}.png`; + anchor.click(); + setProjectStatus("status.project.captureSaved"); + addActivity("activity.captureSaved", {}, "ok"); + } catch (error) { + setProjectStatus("status.project.captureFailed", { message: (error as Error).message }); + addActivity("activity.projectError", { message: (error as Error).message }, "warn"); + } +} + +function currentAcceptancePackage(): Record { + const stats = previewer.getStats(); + const health = healthSummary(); + const acceptance = acceptanceResult(); + const cases = currentAcceptanceCases(acceptance.checks); + return { + schema: "motrixsim-web.acceptance-package.v1", + capturedAt: new Date().toISOString(), + pageUrl: window.location.href, + manifestUrl: manifestInput.value, + projectName: document.querySelector("#project-name")?.value.trim() || defaultProjectName(), + scene: { + id: selectedScenePreset().id, + label: labelFor(selectedScenePreset()), + }, + robot: { + id: selectedRobotPreset().id, + label: labelFor(selectedRobotPreset()), + }, + config: builderConfig(), + backend: backendLabel(), + runState: runStateLabel(), + health, + stats, + acceptance: { + state: acceptance.state, + passCount: acceptance.passCount, + warnCount: acceptance.warnCount, + failCount: acceptance.failCount, + total: acceptance.total, + lastRunAt: acceptanceLastRunAt, + checks: acceptance.checks, + cases, + }, + workflowReport: currentWorkflowReport(), + activity: activityLog, + locale: currentLocale, + }; +} + +function exportAcceptancePackage(): void { + try { + addActivity("activity.packageExported", {}, "ok"); + const payload = JSON.stringify(currentAcceptancePackage(), null, 2); + const blob = new Blob([payload], { type: "application/json" }); + const url = URL.createObjectURL(blob); + const name = document.querySelector("#project-name")?.value.trim() || defaultProjectName(); + const anchor = document.createElement("a"); + anchor.href = url; + anchor.download = `${safeDownloadName(name)}-acceptance-${new Date().toISOString().replace(/[:.]/g, "-")}.json`; + anchor.click(); + URL.revokeObjectURL(url); + setProjectStatus("status.project.packageExported"); + } catch (error) { + setProjectStatus("status.project.packageFailed", { message: (error as Error).message }); + addActivity("activity.projectError", { message: (error as Error).message }, "warn"); + } +} + +function currentAcceptanceReportHtml(): string { + const payload = currentAcceptancePackage() as { + capturedAt: string; + pageUrl: string; + manifestUrl: string; + projectName: string; + backend: string; + runState: string; + stats: Record; + workflowReport: string; + acceptance: { + state: string; + passCount: number; + warnCount: number; + failCount: number; + total: number; + checks: AcceptanceCheck[]; + cases: AcceptanceCase[]; + }; + }; + const verdict = t(payload.acceptance.state === "pass" + ? "acceptance.verdict.pass" + : payload.acceptance.state === "warn" + ? "acceptance.verdict.warn" + : "acceptance.verdict.fail"); + const rows = payload.acceptance.checks.map((check) => ` + + ${check.state.toUpperCase()} + ${escapeHtml(check.label)} + ${escapeHtml(check.detail)} + + `).join(""); + const caseRows = payload.acceptance.cases.map((item) => ` + + ${item.state.toUpperCase()} + ${escapeHtml(item.title)}
${escapeHtml(item.goal)} + ${escapeHtml(item.evidence)} + + `).join(""); + return ` + + + + ${escapeHtml(payload.projectName)} - ${escapeHtml(t("report.title"))} + + + +
+
+

${escapeHtml(t("report.title"))}

+
${escapeHtml(verdict)}:${payload.acceptance.passCount}/${payload.acceptance.total}
+
+
${escapeHtml(t("label.projectName"))}: ${escapeHtml(payload.projectName)}
+
${escapeHtml(t("label.backend"))}: ${escapeHtml(payload.backend)}
+
${escapeHtml(t("label.runState"))}: ${escapeHtml(payload.runState)}
+
${escapeHtml(t("label.sceneManifest"))}: ${escapeHtml(payload.manifestUrl)}
+
${escapeHtml(t("report.generatedAt"))}: ${escapeHtml(new Date(payload.capturedAt).toLocaleString(currentLocale))}
+
URL: ${escapeHtml(payload.pageUrl)}
+
+
+

${escapeHtml(t("label.acceptanceCases"))}

+ ${caseRows}
${escapeHtml(t("report.state"))}${escapeHtml(t("report.case"))}${escapeHtml(t("report.evidence"))}
+

${escapeHtml(t("section.acceptance"))}

+ ${rows}
${escapeHtml(t("report.state"))}${escapeHtml(t("report.check"))}${escapeHtml(t("report.evidence"))}
+

${escapeHtml(t("section.runtime"))}

+
${escapeHtml(JSON.stringify(payload.stats, null, 2))}
+

${escapeHtml(t("button.buildReport"))}

+
${escapeHtml(payload.workflowReport)}
+
+ +`; +} + +function exportAcceptanceReport(): void { + try { + runAcceptanceReview(); + addActivity("activity.reportExported", {}, "ok"); + const html = currentAcceptanceReportHtml(); + const blob = new Blob([html], { type: "text/html" }); + const url = URL.createObjectURL(blob); + const name = document.querySelector("#project-name")?.value.trim() || defaultProjectName(); + const anchor = document.createElement("a"); + anchor.href = url; + anchor.download = `${safeDownloadName(name)}-acceptance-report-${new Date().toISOString().replace(/[:.]/g, "-")}.html`; + anchor.click(); + URL.revokeObjectURL(url); + setProjectStatus("status.project.reportExported"); + } catch (error) { + setProjectStatus("status.project.reportFailed", { message: (error as Error).message }); + addActivity("activity.projectError", { message: (error as Error).message }, "warn"); + } +} + +function updateSelectedInspectorPosition(target: HTMLInputElement): void { + const item = selectedBuilderProp(); + const axis = Number(target.dataset.inspectorAxis); + const value = Number(target.value); + if (!item || !Number.isInteger(axis) || axis < 0 || axis > 2 || !Number.isFinite(value)) { + return; + } + item.position[axis] = value; + target.value = value.toFixed(2); + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + scheduleBuilderRebuild(); +} + +function commitBuilderLayout(statusKey: MessageKey): void { + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(statusKey); + scheduleBuilderRebuild(); +} + +function arrangeBuilderPropsLine(): void { + builderProps.forEach((item, index) => { + item.position = [0.72 + index * 0.28, -0.48, basePropHeight(item.presetId)]; + }); + selectedBuilderPropId = builderProps[0]?.id; + commitBuilderLayout("status.workspace.layoutLine"); + addActivity("activity.layoutLine", {}, "info"); +} + +function arrangeBuilderPropsGrid(): void { + builderProps.forEach((item, index) => { + const row = Math.floor(index / 3); + const col = index % 3; + item.position = [0.72 + col * 0.3, -0.44 - row * 0.28, basePropHeight(item.presetId)]; + }); + selectedBuilderPropId = builderProps[0]?.id; + commitBuilderLayout("status.workspace.layoutGrid"); + addActivity("activity.layoutGrid", {}, "info"); +} + +function snapBuilderPropsToGrid(): void { + builderProps.forEach((item) => { + item.position = [ + Math.round(item.position[0] / 0.05) * 0.05, + Math.round(item.position[1] / 0.05) * 0.05, + item.position[2], + ]; + }); + commitBuilderLayout("status.workspace.snapGrid"); + addActivity("activity.snapGrid", {}, "info"); +} + +function dropBuilderPropsToGround(): void { + builderProps.forEach((item) => { + item.position = [item.position[0], item.position[1], basePropHeight(item.presetId)]; + }); + commitBuilderLayout("status.workspace.dropGround"); + addActivity("activity.dropGround", {}, "info"); +} + +function renderBuilderPhysicsGuard(): void { + const scenePreset = selectedScenePreset(); + const physical = scenePreset.physical === true; + const backendComposeReady = Boolean(scenePreset.composeUrl); + const propSelect = document.querySelector("#builder-prop")!; + const addButton = document.querySelector("#builder-add-prop")!; + propSelect.disabled = physical && !backendComposeReady; + addButton.disabled = physical && !backendComposeReady; + if (physical && !backendComposeReady && builderProps.length > 0) { + builderProps.length = 0; + selectedBuilderPropId = undefined; + renderBuilderProps(); + } + setText( + "#builder-status", + physical + ? backendComposeReady + ? t("status.builder.composeReady") + : t("status.builder.physicsPreset") + : t("status.builder.ready"), + ); + renderBuilderSummary(); +} + +function builderConfig(): BuilderConfig { + return { + version: 1, + sceneId: selectedScenePreset().id, + robotId: selectedRobotPreset().id, + robotPose: [...builderRobotPose] as Vec3, + props: builderProps.map((item) => ({ + presetId: item.presetId, + position: [...item.position] as Vec3, + })), + }; +} + +function isVec3(value: unknown): value is Vec3 { + return Array.isArray(value) + && value.length === 3 + && value.every((item) => typeof item === "number" && Number.isFinite(item)); +} + +function parseBuilderConfig(raw: string | null): BuilderConfig | undefined { + if (!raw) { + return undefined; + } + try { + const parsed = JSON.parse(raw) as Partial; + if (parsed.version !== 1 || typeof parsed.sceneId !== "string" || typeof parsed.robotId !== "string" || !Array.isArray(parsed.props)) { + return undefined; + } + return { + version: 1, + sceneId: parsed.sceneId, + robotId: parsed.robotId, + robotPose: isVec3(parsed.robotPose) ? [...parsed.robotPose] as Vec3 : [0, 0, 0], + props: parsed.props + .filter((item) => typeof item?.presetId === "string" && isVec3(item.position)) + .map((item) => ({ presetId: item.presetId, position: [...item.position] as Vec3 })), + }; + } catch { + return undefined; + } +} + +function parseBuilderConfigParam(raw: string | null): BuilderConfig | undefined { + if (!raw) { + return undefined; + } + try { + const padded = raw.replace(/-/g, "+").replace(/_/g, "/").padEnd(Math.ceil(raw.length / 4) * 4, "="); + return parseBuilderConfig(window.atob(padded)); + } catch { + return undefined; + } +} + +function encodeBuilderConfig(config: BuilderConfig): string { + return window.btoa(JSON.stringify(config)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, ""); +} + +function applyBuilderConfig(config: BuilderConfig, recordHistory = true): void { + const sceneSelect = document.querySelector("#builder-scene")!; + const robotSelect = document.querySelector("#builder-robot")!; + sceneSelect.value = isScenePresetIdKnown(config.sceneId) ? config.sceneId : allScenePresets()[0]?.id ?? SCENE_PRESETS[0].id; + robotSelect.value = ROBOT_PRESETS.some((preset) => preset.id === config.robotId) ? config.robotId : ROBOT_PRESETS[0].id; + builderRobotPose = isVec3(config.robotPose) ? [...config.robotPose] : [0, 0, 0]; + builderProps.length = 0; + for (const item of config.props) { + if (propPresetById(item.presetId)) { + pushBuilderProp(item.presetId, item.position); + } + } + selectedBuilderPropId = builderProps[0]?.id; + renderBuilderProps(); + renderBuilderPhysicsGuard(); + if (recordHistory) { + recordBuilderHistory(); + } else { + renderHistoryButtons(); + } +} + +function saveBuilderDraft(statusKey: MessageKey = "status.workspace.saved"): void { + window.localStorage.setItem(BUILDER_STORAGE_KEY, JSON.stringify(builderConfig())); + setWorkspaceStatus(statusKey); + renderBuilderSummary(); +} + +function sameBuilderConfig(left: BuilderConfig | undefined, right: BuilderConfig): boolean { + return Boolean(left) && JSON.stringify(left) === JSON.stringify(right); +} + +function recordBuilderHistory(): void { + const config = builderConfig(); + if (sameBuilderConfig(builderHistory[builderHistoryIndex], config)) { + renderHistoryButtons(); + return; + } + builderHistory = builderHistory.slice(0, builderHistoryIndex + 1); + builderHistory.push(structuredClone(config)); + if (builderHistory.length > 50) { + builderHistory.shift(); + } + builderHistoryIndex = builderHistory.length - 1; + renderHistoryButtons(); +} + +function renderHistoryButtons(): void { + const undo = document.querySelector("#workspace-undo"); + const redo = document.querySelector("#workspace-redo"); + if (undo) { + undo.disabled = builderHistoryIndex <= 0; + } + if (redo) { + redo.disabled = builderHistoryIndex < 0 || builderHistoryIndex >= builderHistory.length - 1; + } +} + +function applyHistoryConfig(statusKey: MessageKey): void { + const config = builderHistory[builderHistoryIndex]; + if (!config) { + return; + } + applyBuilderConfig(structuredClone(config), false); + void buildAndLoadBuilderScene(statusKey).catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +} + +function undoBuilderChange(): void { + if (builderHistoryIndex <= 0) { + setWorkspaceStatus("status.workspace.noUndo"); + return; + } + builderHistoryIndex -= 1; + applyHistoryConfig("status.workspace.undo"); +} + +function redoBuilderChange(): void { + if (builderHistoryIndex < 0 || builderHistoryIndex >= builderHistory.length - 1) { + setWorkspaceStatus("status.workspace.noRedo"); + return; + } + builderHistoryIndex += 1; + applyHistoryConfig("status.workspace.redo"); +} + +function restoreBuilderDraft(): boolean { + const config = parseBuilderConfig(window.localStorage.getItem(BUILDER_STORAGE_KEY)); + if (!config) { + setWorkspaceStatus("status.workspace.noDraft"); + return false; + } + applyBuilderConfig(config); + setWorkspaceStatus("status.workspace.restored"); + return true; +} + +function scheduleBuilderRebuild(): void { + if (builderRebuildTimer !== undefined) { + window.clearTimeout(builderRebuildTimer); + } + builderRebuildTimer = window.setTimeout(() => { + builderRebuildTimer = undefined; + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); + }, 450); +} + +async function copyBuilderShareLink(): Promise { + const url = new URL(window.location.href); + url.searchParams.delete("manifest"); + url.searchParams.set("builder", encodeBuilderConfig(builderConfig())); + url.searchParams.set("v", "builder-share"); + try { + await navigator.clipboard.writeText(url.href); + setWorkspaceStatus("status.workspace.copyOk"); + } catch { + setWorkspaceStatus("status.workspace.copyFailed"); + } +} + +function exportBuilderConfig(): void { + const payload = JSON.stringify(builderConfig(), null, 2); + const blob = new Blob([payload], { type: "application/json" }); + const url = URL.createObjectURL(blob); + const anchor = document.createElement("a"); + anchor.href = url; + anchor.download = `motrixsim-scene-${new Date().toISOString().replace(/[:.]/g, "-")}.json`; + anchor.click(); + URL.revokeObjectURL(url); + setWorkspaceStatus("status.workspace.exported"); +} + +async function importBuilderConfigFile(file: File): Promise { + const config = parseBuilderConfig(await file.text()); + if (!config) { + setWorkspaceStatus("status.workspace.importFailed"); + return; + } + applyBuilderConfig(config); + await buildAndLoadBuilderScene("status.workspace.imported"); +} + +async function buildAndLoadBuilderScene(savedStatusKey: MessageKey = "status.workspace.saved"): Promise { + const scenePreset = selectedScenePreset(); + const robotPreset = selectedRobotPreset(); + const useBackendCompose = canUseBackendCompose(scenePreset); + const hasCustomUploadedProps = builderProps.some((item) => isCustomUploadedPropId(item.presetId)); + saveBuilderDraft(savedStatusKey); + setText("#builder-status", t("status.builder.composing")); + const manifest = useBackendCompose + ? await composePhysicalScene(scenePreset, robotPreset) + : await createBuilderManifest(scenePreset, robotPreset, builderRobotPose); + if (!useBackendCompose) { + manifestInput.value = `builder://${scenePreset.id}+${robotPreset.id}`; + } + await loadResolvedManifest(manifest); + previewer.setRobotPose(builderRobotPose); + const editableObjectIds = new Set([ + ...inferDefaultEditableObjectIds(manifest, { requireBody: Boolean(controlUrl) }), + ...builderProps.map((item) => item.id), + ]); + previewer.setDragOptions({ + editableObjectIds, + robotId: robotPreset.id, + robotPrefix: robotPreset.id === "none" ? undefined : `robot_${robotPreset.id}`, + onDrag: (event) => { + if (event.kind === "robot") { + builderRobotPose = event.source; + setWorkspaceStatus("status.workspace.saved"); + } else if (event.kind === "prop") { + const prop = builderProps.find((candidate) => candidate.id === event.id); + if (prop) { + prop.position = event.source; + renderBuilderProps(); + renderBuilderSummary(); + renderSceneOutline(); + renderPropertyInspector(); + if (event.end) { + recordBuilderHistory(); + saveBuilderDraft(); + } + } + if (event.end && event.body && controlUrl) { + void commitDraggedBodyPose(event); + return; + } + } + if (event.end) { + setWorkspaceStatus("status.workspace.saved"); + } + }, + }); + if (controlUrl && (robotPreset.id !== "none" || scenePreset.physical)) { + await sendControl("reset"); + } + const modeKey: MessageKey = useBackendCompose + ? "mode.physicalComposed" + : hasCustomUploadedProps + ? "mode.visualComposition" + : robotPreset.id === "none" && scenePreset.physical + ? "mode.physicalBackend" + : robotPreset.id === "none" && scenePreset.manifestUrl + ? "mode.sourceBackend" + : "mode.visualComposition"; + setText("#builder-status", t("status.builder.result", { mode: t(modeKey), count: manifest.objects.length })); + addActivity("activity.sceneBuilt", { mode: t(modeKey), count: manifest.objects.length }, "ok"); +} + +interface ComposeSceneResponse { + ok?: boolean; + error?: string; + manifest?: SceneManifest; + manifestUrl?: string; +} + +async function composePhysicalScene(scenePreset: ScenePreset, robotPreset: RobotPreset): Promise { + if (!scenePreset.composeUrl) { + throw new Error("physical compose endpoint is unavailable"); + } + const response = await fetch(scenePreset.composeUrl, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ + scene: scenePreset.id, + robot: robotPreset.id, + robotPose: builderRobotPose, + objects: builderProps.map((item) => ({ + id: item.id, + presetId: item.presetId, + label: item.label, + position: item.position, + })), + }), + }); + const payload = (await response.json()) as ComposeSceneResponse; + if (!response.ok || payload.ok === false) { + throw new Error(payload.error ?? `compose failed: HTTP ${response.status}`); + } + const manifestUrl = new URL(payload.manifestUrl ?? "/manifest", response.url).href; + manifestInput.value = manifestUrl; + if (payload.manifest) { + return resolveManifestUrls(payload.manifest, response.url); + } + return loadPresetManifest(manifestUrl); +} + +async function createBuilderManifest(scenePreset: ScenePreset, robotPreset: RobotPreset, robotPose: Vec3 = [0, 0, 0]): Promise { + const baseManifest = scenePreset.manifestUrl + ? await loadPresetManifest(scenePreset.manifestUrl) + : createEmptyManifest(); + const robotManifest = robotPreset.manifestUrl ? await loadPresetManifest(robotPreset.manifestUrl) : undefined; + const baseIsLive = !robotManifest && scenePreset.manifestUrl !== undefined; + const materialById = new Map(); + const objects: PreviewObject[] = []; + const addMaterial = (material: PreviewMaterial) => materialById.set(material.id, material); + + for (const material of [ + { id: "default", color: "#93c5fd", roughness: 0.65 }, + { id: "fallback", color: "#fb7185", wireframe: true }, + ] satisfies PreviewMaterial[]) { + addMaterial(material); + } + + const basePart = copyManifestPart(baseManifest, { + prefix: "scene", + prefixBodies: !baseIsLive, + objectFilter: createSceneObjectFilter(scenePreset), + materialTuner: scenePreset.id.startsWith("store") ? tuneStoreMaterial : undefined, + }); + basePart.materials.forEach(addMaterial); + objects.push(...basePart.objects); + + if (robotManifest) { + const robotPart = copyManifestPart(robotManifest, { + prefix: `robot_${robotPreset.id}`, + prefixBodies: false, + }); + if (robotPose[0] !== 0 || robotPose[1] !== 0 || robotPose[2] !== 0) { + robotPart.objects = robotPart.objects.map((object) => { + const cloned = structuredClone(object); + if (cloned.body) { + const pose = cloned.pose ?? {}; + const currentPose: Vec3 = (pose.position && isVec3(pose.position)) ? pose.position : [0, 0, 0]; + cloned.pose = { + ...pose, + position: [ + currentPose[0] + robotPose[0], + currentPose[1] + robotPose[1], + currentPose[2] + robotPose[2], + ], + } as PreviewObject["pose"]; + } else if (!cloned.pose) { + cloned.pose = { position: [...robotPose] as Vec3 }; + } else if (!cloned.pose.position) { + cloned.pose.position = [...robotPose] as Vec3; + } + return cloned; + }); + } + robotPart.materials.forEach(addMaterial); + objects.push(...robotPart.objects); + } + + for (const item of builderProps) { + const preset = propPresetById(item.presetId); + if (!preset) { + continue; + } + addMaterial(preset.material); + objects.push(createPropObject(preset, item)); + } + + const liveSource = robotManifest ?? (baseIsLive ? baseManifest : undefined); + const state = liveSource?.state ?? { mode: "none" as const }; + const controls = liveSource?.controls; + const composite = robotManifest + ? { + type: "visual-composition", + visualObjects: basePart.objects.length + builderProps.length, + note: "Only robot state/control is from MotrixSim; base scene and added objects are visual preview objects.", + } + : undefined; + return { + version: "1.0", + name: `${t("app.title")}: ${labelFor(scenePreset)} + ${labelFor(robotPreset)}`, + description: robotManifest + ? "Front-end visual composition with one live MotrixSim robot state source." + : "Single MotrixSim scene or static front-end composition.", + units: "m", + coordinateSystem: baseManifest.coordinateSystem ?? robotManifest?.coordinateSystem ?? { up: "Z", handedness: "right" }, + materials: Array.from(materialById.values()), + objects, + lights: [ + { type: "ambient", color: "#ffffff", intensity: 0.24 }, + { type: "hemisphere", color: "#e0f2fe", intensity: 0.72 }, + { type: "directional", color: "#ffffff", intensity: 2.15, position: [4, -5, 8] }, + { type: "directional", color: "#dbeafe", intensity: 0.85, position: [-4, 3, 5] }, + ], + camera: { position: [3.6, -4.6, 2.4], target: [0.35, 0.3, 0.9], fov: 46, near: 0.03, far: 300 }, + state, + controls, + composite, + }; +} + +function createEmptyManifest(): SceneManifest { + return { + version: "1.0", + name: t("preset.scene.empty"), + units: "m", + coordinateSystem: { up: "Z", handedness: "right" }, + materials: [ + { id: "scene_floor", color: "#243244", roughness: 0.92 }, + ], + objects: [ + { + id: "scene_floor", + name: "empty_floor", + geometry: { kind: "primitive", primitive: "box", size: [5, 5, 0.04] }, + pose: { position: [0, 0, -0.02] }, + material: "scene_floor", + receiveShadow: true, + }, + ], + state: { mode: "none" }, + }; +} + +function isDraggableObjectId(id: string): boolean { + const normalized = id.toLowerCase(); + return !( + normalized.startsWith("scene_") || + normalized.includes("floor") || + normalized.includes("ground") || + normalized.includes("grid") + ); +} + +function isLikelyRobotBody(bodyName: string): boolean { + const normalized = bodyName.toLowerCase(); + return ( + normalized.includes("link") || + normalized.includes("waist") || + normalized.includes("hip") || + normalized.includes("knee") || + normalized.includes("ankle") || + normalized.includes("shoulder") || + normalized.includes("elbow") || + normalized.includes("wrist") || + normalized.includes("pelvis") + ); +} + +function inferDefaultEditableObjectIds(manifest: SceneManifest, options: { requireBody?: boolean } = {}): string[] { + const candidates = manifest.objects.filter((object) => { + if (!isDraggableObjectId(object.id)) { + return false; + } + if (options.requireBody && !object.body) { + return false; + } + if (!object.body) { + return true; + } + return !isLikelyRobotBody(object.body); + }); + return [...new Set(candidates.map((object) => object.id))]; +} + +async function loadPresetManifest(url: string): Promise { + if (uploadedScenePreset?.manifestUrl && url === uploadedScenePreset.manifestUrl && getUploadedSceneManifest()) { + return resolveManifestUrls(structuredClone(getUploadedSceneManifest()!), url); + } + const response = await fetch(url, { cache: "no-store" }); + if (!response.ok) { + throw new Error(`${url} ${response.status}`); + } + return resolveManifestUrls((await response.json()) as SceneManifest, response.url); +} + +function createSceneObjectFilter(scenePreset: ScenePreset): (object: PreviewObject) => boolean { + if (!scenePreset.storeProductLimit) { + return () => true; + } + let productCount = 0; + return (object) => { + if (isShelfObject(object)) { + return true; + } + if (productCount < scenePreset.storeProductLimit!) { + productCount += 1; + return true; + } + return false; + }; +} + +function isShelfObject(object: PreviewObject): boolean { + const meshUrl = object.geometry.kind === "mesh" ? object.geometry.url : ""; + return `${object.id} ${object.name ?? ""} ${meshUrl}`.toLowerCase().includes("shelf"); +} + +interface ManifestPartOptions { + prefix: string; + prefixBodies: boolean; + objectFilter?: (object: PreviewObject) => boolean; + materialTuner?: (material: PreviewMaterial) => PreviewMaterial; +} + +function copyManifestPart(manifest: SceneManifest, options: ManifestPartOptions): { + materials: PreviewMaterial[]; + objects: PreviewObject[]; +} { + const materialMap = new Map(); + const materials = (manifest.materials ?? []).map((material) => { + const id = `${options.prefix}_${material.id}`; + materialMap.set(material.id, id); + const copied = { ...material, id }; + return options.materialTuner ? options.materialTuner(copied) : copied; + }); + const objects = manifest.objects + .filter(options.objectFilter ?? (() => true)) + .map((object) => { + const copied = structuredClone(object); + copied.id = `${options.prefix}_${object.id}`; + copied.name = object.name ? `${options.prefix}_${object.name}` : copied.id; + if (copied.parent) { + copied.parent = `${options.prefix}_${copied.parent}`; + } + if (copied.body && options.prefixBodies) { + copied.body = `${options.prefix}_${copied.body}`; + } + if (copied.material) { + copied.material = materialMap.get(copied.material) ?? `${options.prefix}_${copied.material}`; + } + if (copied.geometry.kind === "mesh" && copied.geometry.materialOverride) { + copied.geometry.materialOverride = materialMap.get(copied.geometry.materialOverride) ?? `${options.prefix}_${copied.geometry.materialOverride}`; + } + return copied; + }); + return { materials, objects }; +} + +function tuneStoreMaterial(material: PreviewMaterial): PreviewMaterial { + const tuned = { ...material }; + if (tuned.id.endsWith("Metal_White")) { + tuned.color = "#687382"; + tuned.roughness = 0.84; + tuned.metalness = 0.02; + } else if (tuned.id.includes("Cans_")) { + tuned.roughness = 0.58; + tuned.metalness = 0.16; + } else if (tuned.id.includes("Bottle_") || tuned.id.includes("Tetra_")) { + tuned.roughness = 0.54; + tuned.metalness = 0; + } + return tuned; +} + +function createPropObject(preset: PropPreset, item: BuilderProp): PreviewObject { + const object = structuredClone(preset.object) as PreviewObject; + object.id = item.id; + object.name = item.label; + object.material = preset.material.id; + object.pose = { + ...(object.pose ?? {}), + position: item.position, + }; + return object; +} + +async function guardedLoad(url: string): Promise { + try { + await loadManifest(url); + } catch (error) { + setMainStatus("status.error", { message: (error as Error).message }); + console.error(error); + } +} + +type ControlAction = + | "pause" + | "resume" + | "toggle" + | "step" + | "reset" + | "home" + | "set_joint" + | "set_actuator" + | "set_body_pose" + | "command" + | "gripper"; + +async function sendControl( + action: ControlAction, + requestPayload: Record = {}, +): Promise { + const controlStatus = document.querySelector("#control-status")!; + if (!controlUrl) { + controlStatus.textContent = t("status.control.unavailable"); + return undefined; + } + controlStatus.textContent = t("status.control.actionPending", { action }); + try { + const compact = action !== "set_body_pose"; + const response = await fetch(controlUrl, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ action, steps: 1, compact, ...requestPayload }), + }); + const responsePayload = (await response.json()) as PreviewFrame & { ok?: boolean; error?: string }; + if (!response.ok || responsePayload.ok === false) { + throw new Error(responsePayload.error ?? `HTTP ${response.status}`); + } + latestFrame = { + ...(latestFrame ?? {}), + ...responsePayload, + bodies: responsePayload.bodies ?? latestFrame?.bodies, + joints: responsePayload.joints ?? latestFrame?.joints, + actuators: responsePayload.actuators ?? latestFrame?.actuators, + }; + if (responsePayload.bodies) { + previewer.applyFrame(responsePayload); + } + refreshJointValuesFromFrame(responsePayload); + refreshActuatorValuesFromFrame(responsePayload); + renderInputFrame(responsePayload); + renderStats(); + controlStatus.textContent = t("status.control.actionOk", { action }); + return responsePayload; + } catch (error) { + controlStatus.textContent = t("status.control.error", { message: (error as Error).message }); + return undefined; + } +} + +function updateDragAvailability(frame: PreviewFrame | undefined = latestFrame): void { + previewer.setDragEnabled(controlUrl ? frame?.paused === true : true); +} + +async function commitDraggedBodyPose(event: DragPose): Promise { + if (!event.body) { + previewer.clearBodyVisualOffset(); + return; + } + try { + await sendControl("set_body_pose", { + body: event.body, + pos: event.source, + quat: event.quat, + }); + setWorkspaceStatus("status.workspace.saved"); + } finally { + previewer.clearBodyVisualOffset(event.body); + if (latestFrame) { + previewer.applyFrame(latestFrame); + } + } +} + +function renderControlAvailability(): void { + const disabled = !controlUrl; + for (const id of ["#control-pause", "#control-resume", "#control-step", "#control-reset"]) { + const button = document.querySelector(id); + if (button) { + button.disabled = disabled; + } + } + setText("#control-status", disabled ? t("status.control.unavailable") : t("status.control.ready")); +} + +function selectedJoint(): JointControlSpec | undefined { + const select = document.querySelector("#joint-select"); + return jointControls.find((joint) => joint.name === select?.value) ?? jointControls[0]; +} + +function setJointInputs(joint: JointControlSpec, value: number): void { + const slider = document.querySelector("#joint-slider")!; + const input = document.querySelector("#joint-value")!; + const range = joint.range ?? [-3.14, 3.14]; + slider.min = String(range[0]); + slider.max = String(range[1]); + slider.step = joint.name.includes("finger") ? "0.001" : "0.01"; + slider.value = String(value); + input.min = String(range[0]); + input.max = String(range[1]); + input.step = slider.step; + input.value = value.toFixed(joint.name.includes("finger") ? 3 : 2); +} + +function renderJointControls(): void { + const select = document.querySelector("#joint-select")!; + select.innerHTML = ""; + for (const joint of jointControls) { + const option = document.createElement("option"); + option.value = joint.name; + option.textContent = joint.name; + select.appendChild(option); + } + const disabled = !controlUrl || jointControls.length === 0; + for (const id of ["#joint-select", "#joint-slider", "#joint-value", "#joint-apply", "#joint-home", "#gripper-open", "#gripper-close"]) { + const element = document.querySelector(id); + if (element) { + element.disabled = disabled; + } + } + if (jointControls.length > 0) { + const joint = selectedJoint()!; + setJointInputs(joint, joint.value ?? 0); + setText("#joint-status", disabled ? t("status.joints.unavailable") : t("status.joints.ready", { count: jointControls.length })); + } else { + setText("#joint-status", t("status.joints.unavailable")); + } +} + +function refreshJointValuesFromFrame(frame: PreviewFrame): void { + latestFrame = frame; + if (!frame.joints) { + return; + } + for (const joint of jointControls) { + const state = frame.joints[joint.name]; + if (state) { + joint.value = state.pos; + if (state.range) { + joint.range = state.range; + } + } + } + if (!jointEditing) { + const joint = selectedJoint(); + if (joint) { + setJointInputs(joint, joint.value ?? 0); + } + } +} + +async function applySelectedJoint(): Promise { + const joint = selectedJoint(); + const input = document.querySelector("#joint-value")!; + if (!joint) { + setText("#joint-status", t("status.joints.unavailable")); + return; + } + await sendControl("set_joint", { joint: joint.name, value: Number(input.value) }); + refreshJointValuesFromFrame(latestFrame ?? {}); + setText("#joint-status", t("status.joints.set", { name: joint.name })); +} + +function selectedActuator(): ActuatorControlSpec | undefined { + const select = document.querySelector("#actuator-select"); + return actuatorControls.find((actuator) => actuator.name === select?.value) ?? actuatorControls[0]; +} + +function setActuatorInputs(actuator: ActuatorControlSpec, value: number): void { + const slider = document.querySelector("#actuator-slider")!; + const input = document.querySelector("#actuator-value")!; + const range = actuator.range ?? [-1, 1]; + slider.min = String(range[0]); + slider.max = String(range[1]); + slider.step = "0.01"; + slider.value = String(value); + input.min = String(range[0]); + input.max = String(range[1]); + input.step = slider.step; + input.value = value.toFixed(3); +} + +function renderActuatorControls(): void { + const select = document.querySelector("#actuator-select")!; + select.innerHTML = ""; + for (const actuator of actuatorControls) { + const option = document.createElement("option"); + option.value = actuator.name; + option.textContent = actuator.targetName ? `${actuator.name} -> ${actuator.targetName}` : actuator.name; + select.appendChild(option); + } + const disabled = !controlUrl || actuatorControls.length === 0; + for (const id of ["#actuator-select", "#actuator-slider", "#actuator-value", "#actuator-apply"]) { + const element = document.querySelector(id); + if (element) { + element.disabled = disabled; + } + } + if (actuatorControls.length > 0) { + const actuator = selectedActuator()!; + setActuatorInputs(actuator, actuator.value ?? 0); + setText("#actuator-status", disabled ? t("status.actuators.unavailable") : t("status.actuators.ready", { count: actuatorControls.length })); + } else { + setText("#actuator-status", t("status.actuators.unavailable")); + } +} + +function refreshActuatorValuesFromFrame(frame: PreviewFrame): void { + latestFrame = frame; + if (!frame.actuators) { + return; + } + for (const actuator of actuatorControls) { + const state = frame.actuators[actuator.name]; + if (state) { + actuator.value = state.ctrl; + if (state.range) { + actuator.range = state.range; + } + } + } + if (!actuatorEditing) { + const actuator = selectedActuator(); + if (actuator) { + setActuatorInputs(actuator, actuator.value ?? 0); + } + } +} + +async function applySelectedActuator(): Promise { + const actuator = selectedActuator(); + const input = document.querySelector("#actuator-value")!; + if (!actuator) { + setText("#actuator-status", t("status.actuators.unavailable")); + return; + } + await sendControl("set_actuator", { actuator: actuator.name, value: Number(input.value) }); + refreshActuatorValuesFromFrame(latestFrame ?? {}); + setText("#actuator-status", t("status.actuators.set", { name: actuator.name })); +} + +function renderInputAvailability(): void { + if (!controlUrl) { + setText("#input-status", t("status.input.unavailable")); + return; + } + setText("#input-status", t("status.input.ready")); +} + +function renderInputFrame(frame: PreviewFrame): void { + if (frame.command) { + lastCommand = frame.command; + } + setText("#input-command", formatCommand(lastCommand)); +} + +function formatCommand(command: [number, number, number]): string { + return command.map((value) => value.toFixed(2)).join(" / "); +} + +function normalizeInputKey(key: string): string { + const lower = key.toLowerCase(); + if (lower === "arrowup") return "up"; + if (lower === "arrowdown") return "down"; + if (lower === "arrowleft") return "left"; + if (lower === "arrowright") return "right"; + if (lower === " ") return "space"; + return lower; +} + +function isEditableTarget(target: EventTarget | null): boolean { + if (!(target instanceof HTMLElement)) { + return false; + } + return target.isContentEditable || ["INPUT", "SELECT", "TEXTAREA"].includes(target.tagName); +} + +function isMotionKey(key: string): boolean { + return ["w", "s", "a", "d", "up", "down", "left", "right"].includes(key); +} + +function computeCommand(): [number, number, number] { + let x = 0; + let y = 0; + let yaw = 0; + if (pressedInputKeys.has("w") || pressedInputKeys.has("up")) x += 1; + if (pressedInputKeys.has("s") || pressedInputKeys.has("down")) x -= 1; + if (pressedInputKeys.has("left")) y += 0.5; + if (pressedInputKeys.has("right")) y -= 0.5; + if (pressedInputKeys.has("a")) yaw += 2; + if (pressedInputKeys.has("d")) yaw -= 2; + return [x, y, yaw]; +} + +function renderPressedKeys(): void { + const keys = Array.from(pressedInputKeys.values()).sort(); + setText("#input-keys", keys.length === 0 ? "-" : keys.join(" + ")); +} + +async function sendKeyboardCommand(): Promise { + lastCommand = computeCommand(); + renderPressedKeys(); + setText("#input-command", formatCommand(lastCommand)); + if (!controlUrl) { + setText("#input-status", t("status.input.unavailable")); + return; + } + setText("#input-status", t("status.input.commandPending")); + await sendControl("command", { command: lastCommand }); + setText("#input-status", t("status.input.commandSent", { command: formatCommand(lastCommand) })); +} + +function setupUploadDropZone(selector: string, onFiles: (files: File[]) => void): void { + const zone = document.querySelector(selector); + if (!zone) { + return; + } + const setActive = (active: boolean) => { + zone.classList.toggle("drag-over", active); + }; + zone.addEventListener("dragenter", (event) => { + event.preventDefault(); + setActive(true); + }); + zone.addEventListener("dragover", (event) => { + event.preventDefault(); + setActive(true); + }); + zone.addEventListener("dragleave", (event) => { + if (!zone.contains(event.relatedTarget as Node | null)) { + setActive(false); + } + }); + zone.addEventListener("drop", (event) => { + event.preventDefault(); + setActive(false); + const files = Array.from(event.dataTransfer?.files ?? []); + if (files.length > 0) { + onFiles(files); + } + }); +} + +localeSelect.addEventListener("change", () => { + if (isLocale(localeSelect.value)) { + setLocale(localeSelect.value); + } +}); + +document.querySelector("#load-manifest")!.addEventListener("click", () => { + void guardedLoad(manifestInput.value.trim() || DEFAULT_MANIFEST); +}); +document.querySelector("#builder-build")!.addEventListener("click", () => { + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +}); +document.querySelector("#template-grid")!.addEventListener("click", (event) => { + const target = event.target; + if (!(target instanceof HTMLButtonElement)) { + return; + } + const template = SCENE_TEMPLATES.find((candidate) => candidate.id === target.dataset.templateId); + if (!template) { + return; + } + applyBuilderConfig(structuredClone(template.config)); + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +}); +document.querySelector("#asset-grid")!.addEventListener("click", (event) => { + const removeTarget = (event.target as HTMLElement).closest("[data-remove-asset]"); + if (removeTarget?.dataset.removeAsset) { + removeUploadedPropPreset(removeTarget.dataset.removeAsset); + scheduleBuilderRebuild(); + return; + } + const target = (event.target as HTMLElement).closest("[data-add-preset]"); + if (!target?.dataset.addPreset) { + return; + } + pushBuilderProp(target.dataset.addPreset); + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + }); +}); +document.querySelector("#asset-upload")!.addEventListener("click", () => { + document.querySelector("#asset-upload-file")!.click(); +}); +document.querySelector("#asset-upload-file")!.addEventListener("change", (event) => { + const input = event.target as HTMLInputElement; + const files = Array.from(input.files ?? []); + input.value = ""; + if (files.length === 0) { + return; + } + void addUploadedProps(files) + .then(() => { + renderBuilderProps(); + }) + .catch(() => { + setWorkspaceStatus("status.workspace.importFailed"); + }); +}); +document.querySelector("#asset-clear-upload")!.addEventListener("click", () => { + clearUploadedPropPresets(); + scheduleBuilderRebuild(); +}); +document.querySelector("#scene-upload")!.addEventListener("click", () => { + document.querySelector("#scene-upload-file")!.click(); +}); +document.querySelector("#scene-upload-file")!.addEventListener("change", (event) => { + const input = event.target as HTMLInputElement; + const files = Array.from(input.files ?? []); + input.value = ""; + if (files.length === 0) { + return; + } + void uploadSceneFileSet(files).catch(() => { + setWorkspaceStatus("status.workspace.importFailed"); + }); +}); +document.querySelector("#scene-clear-upload")!.addEventListener("click", () => { + removeUploadedScenePreset(); + renderBuilderOptions(false); + void buildAndLoadBuilderScene("status.workspace.saved").catch(() => { + setWorkspaceStatus("status.workspace.importFailed"); + }); +}); + +setupUploadDropZone("#asset-upload-zone", (files) => { + void addUploadedProps(files) + .then(() => { + renderBuilderProps(); + }) + .catch(() => setWorkspaceStatus("status.workspace.importFailed")); +}); +setupUploadDropZone("#scene-upload-zone", (files) => { + void uploadSceneFileSet(files).catch(() => setWorkspaceStatus("status.workspace.importFailed")); +}); +document.querySelector("#builder-scene")!.addEventListener("change", () => { + seedBuilderPropsForSelectedScene(); + renderBuilderPhysicsGuard(); + recordBuilderHistory(); + saveBuilderDraft(); +}); +document.querySelector("#builder-robot")!.addEventListener("change", () => { + const previousRobotId = builderConfig().robotId; + const nextRobotId = document.querySelector("#builder-robot")!.value; + if (previousRobotId !== nextRobotId) { + builderRobotPose = [0, 0, 0]; + } + recordBuilderHistory(); + saveBuilderDraft(); + renderBuilderSummary(); +}); +document.querySelector("#builder-load-physical")!.addEventListener("click", () => { + document.querySelector("#builder-scene")!.value = "g1-store-blocks-physics"; + document.querySelector("#builder-robot")!.value = "none"; + seedBuilderPropsForSelectedScene(); + renderBuilderPhysicsGuard(); + recordBuilderHistory(); + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +}); +document.querySelector("#builder-add-prop")!.addEventListener("click", () => { + addBuilderProp(); + recordBuilderHistory(); + saveBuilderDraft(); + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + }); +}); +document.querySelector("#layout-line")!.addEventListener("click", () => { + arrangeBuilderPropsLine(); +}); +document.querySelector("#layout-grid")!.addEventListener("click", () => { + arrangeBuilderPropsGrid(); +}); +document.querySelector("#layout-snap")!.addEventListener("click", () => { + snapBuilderPropsToGrid(); +}); +document.querySelector("#layout-ground")!.addEventListener("click", () => { + dropBuilderPropsToGround(); +}); +document.querySelector("#builder-clear-props")!.addEventListener("click", () => { + builderProps.length = 0; + selectedBuilderPropId = undefined; + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + }); +}); +document.querySelector("#builder-apply-layout")!.addEventListener("click", () => { + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +}); +document.querySelector("#builder-props")!.addEventListener("click", (event) => { + const target = event.target; + const selectable = target instanceof HTMLElement ? target.closest("[data-select-prop]") : undefined; + if (selectable?.dataset.selectProp) { + selectedBuilderPropId = selectable.dataset.selectProp; + renderBuilderProps(); + } + if (!(target instanceof HTMLButtonElement)) { + return; + } + const id = target.dataset.removeProp; + if (!id) { + const duplicateId = target.dataset.duplicateProp; + if (!duplicateId) { + return; + } + const source = builderProps.find((item) => item.id === duplicateId); + if (source) { + pushBuilderProp(source.presetId, [source.position[0] + 0.18, source.position[1] - 0.18, source.position[2]]); + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + scheduleBuilderRebuild(); + } + return; + } + const index = builderProps.findIndex((item) => item.id === id); + if (index >= 0) { + builderProps.splice(index, 1); + if (selectedBuilderPropId === id) { + selectedBuilderPropId = builderProps[Math.min(index, builderProps.length - 1)]?.id; + } + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + scheduleBuilderRebuild(); + } +}); +document.querySelector("#builder-props")!.addEventListener("change", (event) => { + const target = event.target; + if (!(target instanceof HTMLInputElement)) { + return; + } + const id = target.dataset.propPosition; + const axis = Number(target.dataset.axis); + const value = Number(target.value); + if (!id || !Number.isInteger(axis) || axis < 0 || axis > 2 || !Number.isFinite(value)) { + return; + } + const item = builderProps.find((candidate) => candidate.id === id); + if (!item) { + return; + } + item.position[axis] = value; + target.value = value.toFixed(2); + recordBuilderHistory(); + saveBuilderDraft(); + scheduleBuilderRebuild(); +}); +document.querySelector("#scene-outline")!.addEventListener("click", (event) => { + const target = (event.target as HTMLElement).closest("[data-outline-prop]"); + if (!target?.dataset.outlineProp) { + return; + } + selectedBuilderPropId = target.dataset.outlineProp; + renderBuilderProps(); +}); +document.querySelector("#property-inspector")!.addEventListener("change", (event) => { + const target = event.target; + if (!(target instanceof HTMLInputElement)) { + return; + } + updateSelectedInspectorPosition(target); +}); +document.querySelector("#property-inspector")!.addEventListener("keydown", (event) => { + const target = event.target; + if (!(target instanceof HTMLInputElement) || event.key !== "Enter") { + return; + } + event.preventDefault(); + updateSelectedInspectorPosition(target); +}); +document.querySelector("#property-inspector")!.addEventListener("click", (event) => { + const target = event.target; + if (!(target instanceof HTMLButtonElement)) { + return; + } + const item = selectedBuilderProp(); + if (!item) { + return; + } + if (target.id === "inspector-duplicate") { + pushBuilderProp(item.presetId, [item.position[0] + 0.18, item.position[1] - 0.18, item.position[2]]); + } else if (target.id === "inspector-remove") { + const index = builderProps.findIndex((candidate) => candidate.id === item.id); + if (index >= 0) { + builderProps.splice(index, 1); + selectedBuilderPropId = builderProps[Math.min(index, builderProps.length - 1)]?.id; + } + } else { + return; + } + renderBuilderProps(); + recordBuilderHistory(); + saveBuilderDraft(); + scheduleBuilderRebuild(); +}); +document.querySelector("#workspace-undo")!.addEventListener("click", () => { + undoBuilderChange(); +}); +document.querySelector("#workspace-redo")!.addEventListener("click", () => { + redoBuilderChange(); +}); +document.querySelector("#workspace-save")!.addEventListener("click", () => { + saveBuilderDraft(); +}); +document.querySelector("#workspace-restore")!.addEventListener("click", () => { + if (restoreBuilderDraft()) { + void buildAndLoadBuilderScene("status.workspace.restored").catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); + } +}); +document.querySelector("#workspace-copy-link")!.addEventListener("click", () => { + void copyBuilderShareLink(); +}); +document.querySelector("#workspace-import")!.addEventListener("click", () => { + document.querySelector("#workspace-import-file")!.click(); +}); +document.querySelector("#workspace-import-file")!.addEventListener("change", (event) => { + const input = event.target as HTMLInputElement; + const file = input.files?.[0]; + input.value = ""; + if (!file) { + return; + } + void importBuilderConfigFile(file).catch(() => setWorkspaceStatus("status.workspace.importFailed")); +}); +document.querySelector("#workspace-export")!.addEventListener("click", () => { + exportBuilderConfig(); +}); +document.querySelector("#acceptance-run")!.addEventListener("click", () => { + runAcceptanceReview(); +}); +document.querySelector("#acceptance-export")!.addEventListener("click", () => { + exportAcceptancePackage(); +}); +document.querySelector("#acceptance-export-report")!.addEventListener("click", () => { + exportAcceptanceReport(); +}); +document.querySelector("#project-save")!.addEventListener("click", () => { + saveNamedProject(); +}); +document.querySelector("#project-capture")!.addEventListener("click", () => { + downloadPreviewPng(); +}); +document.querySelector("#project-export-package")!.addEventListener("click", () => { + exportAcceptancePackage(); +}); +document.querySelector("#saved-project-list")!.addEventListener("click", (event) => { + const target = event.target; + if (!(target instanceof HTMLButtonElement)) { + return; + } + const loadId = target.dataset.loadProject; + if (loadId) { + loadNamedProject(loadId); + return; + } + const deleteId = target.dataset.deleteProject; + if (deleteId) { + deleteNamedProject(deleteId); + } +}); +document.querySelector("#workflow-prepare")!.addEventListener("click", () => { + const template = SCENE_TEMPLATES.find((candidate) => candidate.id === "store-refill"); + if (!template) { + return; + } + setWorkflowStatus("status.workflow.preparing"); + applyBuilderConfig(structuredClone(template.config)); + void buildAndLoadBuilderScene("status.workspace.saved") + .then(() => { + setWorkflowStatus("status.workflow.prepared"); + addActivity("activity.workflowPrepared", {}, "ok"); + }) + .catch((error) => { + setWorkflowStatus("status.workflow.error", { message: (error as Error).message }); + setText("#builder-status", t("status.error", { message: (error as Error).message })); + addActivity("activity.projectError", { message: (error as Error).message }, "warn"); + }); +}); +document.querySelector("#workflow-run")!.addEventListener("click", () => { + void sendControl("resume").then(() => { + setWorkflowStatus("status.workflow.running"); + addActivity("activity.workflowRun", {}, "ok"); + }); +}); +document.querySelector("#workflow-pause")!.addEventListener("click", () => { + void sendControl("pause").then(() => { + setWorkflowStatus("status.workflow.paused"); + addActivity("activity.workflowPaused", {}, "info"); + }); +}); +document.querySelector("#workflow-reset")!.addEventListener("click", () => { + void sendControl("reset").then(() => { + setWorkflowStatus("status.workflow.reset"); + addActivity("activity.workflowReset", {}, "info"); + }); +}); +document.querySelector("#workflow-report")!.addEventListener("click", () => { + renderWorkflowReport(true); +}); +document.querySelector("#viewport-pause")!.addEventListener("click", () => { + void sendControl("pause"); +}); +document.querySelector("#viewport-resume")!.addEventListener("click", () => { + void sendControl("resume"); +}); +document.querySelector("#viewport-step")!.addEventListener("click", () => { + void sendControl("step"); +}); +document.querySelector("#viewport-reset")!.addEventListener("click", () => { + void sendControl("reset"); +}); +document.querySelector("#viewport-build")!.addEventListener("click", () => { + void buildAndLoadBuilderScene().catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +}); +document.querySelector("#viewport-copy-link")!.addEventListener("click", () => { + void copyBuilderShareLink(); +}); +document.querySelector("#load-demo")!.addEventListener("click", () => { + manifestInput.value = DEFAULT_MANIFEST; + void guardedLoad(DEFAULT_MANIFEST); +}); +document.querySelector("#reload")!.addEventListener("click", () => { + void guardedLoad(manifestInput.value.trim() || DEFAULT_MANIFEST); +}); +document.querySelector("#control-pause")!.addEventListener("click", () => { + void sendControl("pause"); +}); +document.querySelector("#control-resume")!.addEventListener("click", () => { + void sendControl("resume"); +}); +document.querySelector("#control-step")!.addEventListener("click", () => { + void sendControl("step"); +}); +document.querySelector("#control-reset")!.addEventListener("click", () => { + void sendControl("reset"); +}); +document.querySelector("#joint-select")!.addEventListener("change", () => { + const joint = selectedJoint(); + if (joint) { + setJointInputs(joint, joint.value ?? 0); + setText("#joint-status", t("status.joints.selected", { name: joint.name })); + } +}); +document.querySelector("#joint-slider")!.addEventListener("input", (event) => { + jointEditing = true; + const value = (event.target as HTMLInputElement).value; + document.querySelector("#joint-value")!.value = value; +}); +document.querySelector("#joint-slider")!.addEventListener("change", () => { + void applySelectedJoint().finally(() => { + jointEditing = false; + }); +}); +document.querySelector("#joint-value")!.addEventListener("input", (event) => { + jointEditing = true; + const value = (event.target as HTMLInputElement).value; + document.querySelector("#joint-slider")!.value = value; +}); +document.querySelector("#joint-value")!.addEventListener("change", () => { + void applySelectedJoint().finally(() => { + jointEditing = false; + }); +}); +document.querySelector("#joint-apply")!.addEventListener("click", () => { + void applySelectedJoint().finally(() => { + jointEditing = false; + }); +}); +document.querySelector("#joint-home")!.addEventListener("click", () => { + void sendControl("home"); +}); +document.querySelector("#gripper-open")!.addEventListener("click", () => { + void sendControl("gripper", { value: 0.04 }).then(() => setText("#joint-status", t("status.joints.gripperOpen"))); +}); +document.querySelector("#gripper-close")!.addEventListener("click", () => { + void sendControl("gripper", { value: 0.0 }).then(() => setText("#joint-status", t("status.joints.gripperClose"))); +}); +document.querySelector("#actuator-select")!.addEventListener("change", () => { + const actuator = selectedActuator(); + if (actuator) { + setActuatorInputs(actuator, actuator.value ?? 0); + setText("#actuator-status", t("status.actuators.selected", { name: actuator.name })); + } +}); +document.querySelector("#actuator-slider")!.addEventListener("input", (event) => { + actuatorEditing = true; + const value = (event.target as HTMLInputElement).value; + document.querySelector("#actuator-value")!.value = value; +}); +document.querySelector("#actuator-slider")!.addEventListener("change", () => { + void applySelectedActuator().finally(() => { + actuatorEditing = false; + }); +}); +document.querySelector("#actuator-value")!.addEventListener("input", (event) => { + actuatorEditing = true; + const value = (event.target as HTMLInputElement).value; + document.querySelector("#actuator-slider")!.value = value; +}); +document.querySelector("#actuator-value")!.addEventListener("change", () => { + void applySelectedActuator().finally(() => { + actuatorEditing = false; + }); +}); +document.querySelector("#actuator-apply")!.addEventListener("click", () => { + void applySelectedActuator().finally(() => { + actuatorEditing = false; + }); +}); +window.addEventListener("keydown", (event) => { + if (isEditableTarget(event.target)) { + return; + } + const key = normalizeInputKey(event.key); + if (key === "space") { + if (!event.repeat) { + event.preventDefault(); + void sendControl("toggle"); + } + return; + } + if (key === "r") { + if (!event.repeat) { + event.preventDefault(); + pressedInputKeys.clear(); + renderPressedKeys(); + lastCommand = [0, 0, 0]; + setText("#input-command", formatCommand(lastCommand)); + void sendControl("reset").then(() => sendKeyboardCommand()); + } + return; + } + if (isMotionKey(key)) { + event.preventDefault(); + if (!pressedInputKeys.has(key)) { + pressedInputKeys.add(key); + void sendKeyboardCommand(); + } + } +}); +window.addEventListener("keyup", (event) => { + if (isEditableTarget(event.target)) { + return; + } + const key = normalizeInputKey(event.key); + if (isMotionKey(key) && pressedInputKeys.delete(key)) { + event.preventDefault(); + void sendKeyboardCommand(); + } +}); +window.addEventListener("blur", () => { + if (pressedInputKeys.size === 0) { + return; + } + pressedInputKeys.clear(); + void sendKeyboardCommand(); +}); + +renderLocaleOptions(); +window.setInterval(renderStats, 500); +renderBuilderOptions(); +renderSavedProjects(); +applyTranslations(); +recordBuilderHistory(); +const initialBuilderConfig = parseBuilderConfigParam(initialBuilderConfigParam); +if (initialBuilderConfig) { + applyBuilderConfig(initialBuilderConfig); + saveBuilderDraft("status.workspace.shareLoaded"); + void buildAndLoadBuilderScene("status.workspace.shareLoaded") + .catch((error) => { + setText("#builder-status", t("status.error", { message: (error as Error).message })); + setMainStatus("status.error", { message: (error as Error).message }); + }); +} else { + void guardedLoad(initialManifestUrl); +} + +declare global { + interface Window { + __motrixPreviewDebug?: { + getStats: () => ReturnType; + reload: (url?: string) => Promise; + control: (action: ControlAction, payload?: Record) => Promise; + buildScene: () => Promise; + getBuilderConfig: () => BuilderConfig; + getCommand: () => [number, number, number]; + getManifestUrl: () => string; + getControlUrl: () => string | undefined; + capturePng: () => string; + }; + } +} + +window.__motrixPreviewDebug = { + getStats: () => previewer.getStats(), + reload: (url?: string) => guardedLoad(url ?? (manifestInput.value.trim() || DEFAULT_MANIFEST)), + control: (action: ControlAction, payload?: Record) => sendControl(action, payload), + buildScene: () => buildAndLoadBuilderScene(), + getBuilderConfig: () => builderConfig(), + getCommand: () => lastCommand, + getManifestUrl: () => manifestInput.value, + getControlUrl: () => controlUrl, + capturePng: () => previewer.capturePng(), +}; diff --git a/src/preview/UniversalPreviewer.ts b/src/preview/UniversalPreviewer.ts new file mode 100644 index 0000000..1498e7e --- /dev/null +++ b/src/preview/UniversalPreviewer.ts @@ -0,0 +1,1469 @@ +import * as THREE from "three"; +import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; +import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; +import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader.js"; +import { STLLoader } from "three/examples/jsm/loaders/STLLoader.js"; +import { ConvexGeometry } from "three/examples/jsm/geometries/ConvexGeometry.js"; +import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment.js"; +import type { + BodyState, + MeshGeometry, + PreviewFrame, + PreviewGeometry, + PreviewMaterial, + PreviewObject, + Quat, + RendererStats, + SceneManifest, +} from "../types"; +import { CoordinateConverter } from "../utils/coordinates"; + +type InteractionMode = "idle" | "hover" | "dragging"; +type PointerLikeEvent = PointerEvent | MouseEvent; + +interface PreviewerOptions { + hoverLabel?: HTMLElement; +} + +interface BoundObject { + manifest: PreviewObject; + root: THREE.Object3D; +} + +export interface DragPose { + id: string; + source: [number, number, number]; + sourceDelta: [number, number, number]; + body?: string; + quat?: Quat; + kind: "prop" | "robot"; + start: boolean; + end: boolean; +} + +export interface DragOptions { + editableObjectIds: Iterable; + enabled?: boolean; + robotPrefix?: string; + robotId?: string; + onDrag?: (event: DragPose) => void; +} + +interface DragState { + kind: "prop" | "robot"; + targetId: string; + target: THREE.Object3D; + pointerId?: number; + plane: THREE.Plane; + worldStart: THREE.Vector3; + sourceStart: [number, number, number]; + sourceStartById: Map; + sourceOffsetStartById: Map; + worldStartById: Map; + targetIds: string[]; + robotPoseStart: [number, number, number]; +} + +function isEditingInputTarget(target: EventTarget | null): boolean { + if (!(target instanceof HTMLElement)) { + return false; + } + return target.isContentEditable || ["INPUT", "SELECT", "TEXTAREA"].includes(target.tagName); +} + +export class UniversalPreviewer { + readonly renderer: THREE.WebGLRenderer; + readonly scene = new THREE.Scene(); + readonly camera = new THREE.PerspectiveCamera(46, 1, 0.05, 500); + readonly controls: OrbitControls; + + private readonly root = new THREE.Group(); + private readonly environmentTarget: THREE.WebGLRenderTarget; + private readonly materials = new Map(); + private readonly meshCache = new Map>(); + private readonly bodyBindings = new Map(); + private readonly objectsById = new Map(); + private readonly objectBodyIds = new Map(); + private readonly hoverOutline = new THREE.BoxHelper(new THREE.Object3D(), "#38bdf8"); + private readonly editableObjectIds = new Set(); + private readonly clock = new THREE.Clock(); + private readonly raycaster = new THREE.Raycaster(); + private readonly pointer = new THREE.Vector2(); + private dragState: DragState | undefined; + private currentMode: InteractionMode = "idle"; + private readonly focusMarker = new THREE.Mesh( + new THREE.RingGeometry(0.7, 1, 48), + new THREE.MeshBasicMaterial({ + color: "#38bdf8", + depthTest: false, + opacity: 0.92, + side: THREE.DoubleSide, + transparent: true, + }), + ); + private readonly focusMarkerTarget = new THREE.Vector3(); + private focusMarkerRadius = 0.2; + private converter = new CoordinateConverter({ up: "Z" }); + private manifest?: SceneManifest; + private animationHandle = 0; + private focusMarkerHideHandle = 0; + private frameCount = 0; + private loadedMeshCount = 0; + private fallbackCount = 0; + private loadToken = 0; + private lastFrame?: PreviewFrame; + private robotOffsetPose: [number, number, number] = [0, 0, 0]; + private readonly robotBodyNames = new Set(); + private readonly robotObjectIds = new Set(); + private readonly bodySourceOffsets = new Map(); + private readonly bodyVisualOffsets = new Map(); + private hoveredObjectId: string | undefined; + private dragOptions: DragOptions = { + editableObjectIds: [], + enabled: false, + }; + private readonly statusElement: HTMLElement; + private readonly hoverLabel: HTMLElement | undefined; + + constructor(private readonly container: HTMLElement, statusElement: HTMLElement, options: PreviewerOptions = {}) { + this.statusElement = statusElement; + this.hoverLabel = options.hoverLabel; + this.renderer = new THREE.WebGLRenderer({ + antialias: true, + alpha: false, + powerPreference: "high-performance", + preserveDrawingBuffer: true, + }); + this.renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2)); + this.renderer.outputColorSpace = THREE.SRGBColorSpace; + this.renderer.toneMapping = THREE.ACESFilmicToneMapping; + this.renderer.toneMappingExposure = 1.05; + this.renderer.shadowMap.enabled = true; + this.renderer.shadowMap.type = THREE.PCFSoftShadowMap; + this.renderer.domElement.className = "preview-canvas"; + this.container.appendChild(this.renderer.domElement); + + this.scene.background = new THREE.Color("#0f172a"); + const environmentGenerator = new THREE.PMREMGenerator(this.renderer); + this.environmentTarget = environmentGenerator.fromScene(new RoomEnvironment(), 0.04); + this.scene.environment = this.environmentTarget.texture; + environmentGenerator.dispose(); + this.scene.add(this.root); + this.focusMarker.visible = false; + this.focusMarker.renderOrder = 50; + this.scene.add(this.focusMarker); + this.hoverOutline.visible = false; + this.hoverOutline.renderOrder = 52; + (this.hoverOutline.material as THREE.LineBasicMaterial).depthTest = false; + this.scene.add(this.hoverOutline); + this.controls = new OrbitControls(this.camera, this.renderer.domElement); + this.controls.enableDamping = true; + this.controls.dampingFactor = 0.08; + this.controls.mouseButtons = { + LEFT: THREE.MOUSE.ROTATE, + MIDDLE: THREE.MOUSE.DOLLY, + RIGHT: THREE.MOUSE.PAN, + }; + this.controls.touches = { + ONE: THREE.TOUCH.ROTATE, + TWO: THREE.TOUCH.DOLLY_PAN, + }; + this.controls.screenSpacePanning = true; + this.controls.target.set(0, 1, 0); + this.camera.position.set(5.5, 4.6, 7.2); + this.setupCameraInput(); + this.resize(); + window.addEventListener("resize", () => this.resize()); + this.animate(); + } + + async loadManifest(manifest: SceneManifest): Promise { + const token = this.loadToken + 1; + this.loadToken = token; + this.manifest = manifest; + this.converter = new CoordinateConverter(manifest.coordinateSystem); + this.clearScene(); + this.buildMaterials(manifest.materials ?? []); + this.addDefaultHelpers(); + this.addLights(manifest); + this.applyCamera(manifest); + + await this.addObjects(manifest.objects, token); + if (token !== this.loadToken) { + return; + } + this.refreshEditableObjectIds(); + this.fitCameraToObjects(); + this.updateStatus(`manifest loaded: ${manifest.objects.length} objects`); + } + + applyFrame(frame: PreviewFrame): void { + this.lastFrame = frame; + const bodies = frame.bodies ?? {}; + for (const [bodyName, bodyState] of Object.entries(bodies)) { + const bound = this.bodyBindings.get(bodyName); + if (!bound) { + continue; + } + for (const item of bound) { + this.applyBodyState(item.root, bodyName, bodyState); + } + } + } + + setDragOptions(options: DragOptions): void { + this.dragOptions = { + editableObjectIds: options.editableObjectIds, + enabled: options.enabled ?? this.dragOptions.enabled, + robotPrefix: options.robotPrefix, + robotId: options.robotId, + onDrag: options.onDrag, + }; + this.refreshEditableObjectIds(); + } + + setDragEnabled(enabled: boolean): void { + this.dragOptions = { + ...this.dragOptions, + enabled, + }; + if (!enabled && this.currentMode !== "dragging") { + this.setInteractionMode("idle"); + } + } + + clearBodyVisualOffset(bodyName?: string): void { + if (!bodyName) { + this.bodyVisualOffsets.clear(); + return; + } + this.bodyVisualOffsets.delete(bodyName); + } + + setRobotPose(pose: [number, number, number]): void { + this.robotOffsetPose[0] = pose[0]; + this.robotOffsetPose[1] = pose[1]; + this.robotOffsetPose[2] = pose[2]; + this.applyRobotPoseOffset(); + } + + private refreshEditableObjectIds(): void { + this.editableObjectIds.clear(); + for (const item of this.dragOptions.editableObjectIds) { + this.editableObjectIds.add(item); + } + this.robotObjectIds.clear(); + if (this.dragOptions.robotPrefix) { + for (const id of this.objectsById.keys()) { + if (this.isRobotManifestObject(id)) { + this.robotObjectIds.add(id); + } + } + } + this.robotBodyNames.clear(); + if (this.dragOptions.robotPrefix) { + for (const object of this.objectsById.values()) { + if (object.manifest.body && this.isRobotManifestObject(object.manifest.id)) { + this.robotBodyNames.add(object.manifest.body); + } + } + } + } + + getStats(): RendererStats { + return { + manifestName: this.manifest?.name ?? "none", + objectCount: this.manifest?.objects.length ?? 0, + bodyBoundObjectCount: Array.from(this.bodyBindings.values()).reduce((sum, items) => sum + items.length, 0), + loadedMeshCount: this.loadedMeshCount, + fallbackCount: this.fallbackCount, + frameCount: this.frameCount, + lastStep: this.lastFrame?.step, + lastBodyCount: Object.keys(this.lastFrame?.bodies ?? {}).length, + paused: this.lastFrame?.paused, + running: this.lastFrame?.running, + nonBackgroundPixelSamples: this.sampleCanvasPixels(), + }; + } + + refitCamera(): void { + this.fitCameraToObjects(); + } + + capturePng(): string { + this.renderer.render(this.scene, this.camera); + return this.renderer.domElement.toDataURL("image/png"); + } + + sampleCanvasPixels(): number { + const gl = this.renderer.getContext(); + const canvas = this.renderer.domElement; + const width = canvas.width; + const height = canvas.height; + if (width === 0 || height === 0) { + return 0; + } + const points: [number, number][] = []; + for (let y = 0.2; y <= 0.85; y += 0.13) { + for (let x = 0.18; x <= 0.85; x += 0.13) { + points.push([x, y]); + } + } + const background = new THREE.Color(this.scene.background as THREE.Color); + const bg = [ + Math.round(background.r * 255), + Math.round(background.g * 255), + Math.round(background.b * 255), + ]; + let nonBackground = 0; + const pixel = new Uint8Array(4); + for (const [px, py] of points) { + gl.readPixels(Math.floor(width * px), Math.floor(height * py), 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixel); + const delta = Math.abs(pixel[0] - bg[0]) + Math.abs(pixel[1] - bg[1]) + Math.abs(pixel[2] - bg[2]); + if (delta > 24) { + nonBackground += 1; + } + } + return nonBackground; + } + + dispose(): void { + cancelAnimationFrame(this.animationHandle); + this.environmentTarget.dispose(); + this.renderer.dispose(); + this.controls.dispose(); + } + + private animate = (): void => { + this.animationHandle = requestAnimationFrame(this.animate); + this.frameCount += 1; + this.controls.update(); + this.updateFocusMarker(); + const elapsed = this.clock.getElapsedTime(); + this.root.traverse((child) => { + if (child.userData.spin) { + child.rotation.y = elapsed * 0.6; + } + }); + this.renderer.render(this.scene, this.camera); + }; + + private setupCameraInput(): void { + const canvas = this.renderer.domElement; + canvas.addEventListener("contextmenu", (event) => event.preventDefault()); + + const isPrimaryButton = (event: PointerLikeEvent): boolean => event.button === 0; + + const startDragByEvent = (event: PointerLikeEvent): void => { + if (!isPrimaryButton(event) || isEditingInputTarget(event.target)) { + return; + } + if (this.startDrag(event)) { + event.preventDefault(); + event.stopImmediatePropagation(); + } + }; + + const updateDragByEvent = (event: PointerLikeEvent): void => { + if (!this.dragState) { + this.updateDragHoverTarget(event); + return; + } + this.updateDragTarget(event); + event.preventDefault(); + }; + + const endDragByEvent = (event: PointerLikeEvent): void => { + const activePointerId = this.getPointerId(event); + if (!this.dragState) { + return; + } + if (this.dragState.pointerId === undefined || activePointerId === undefined || this.dragState.pointerId === activePointerId) { + this.finishDrag(event); + event.preventDefault(); + event.stopImmediatePropagation(); + } + }; + + const isCanvasEventFromTarget = (target: EventTarget | null): boolean => this.isCanvasEvent(target); + + if (typeof window.PointerEvent === "undefined") { + window.addEventListener( + "mousedown", + (event) => { + if (this.currentMode === "dragging") { + return; + } + if (!isCanvasEventFromTarget(event.target)) { + return; + } + startDragByEvent(event); + }, + { capture: true, passive: false }, + ); + canvas.addEventListener("mousedown", startDragByEvent, { + capture: true, + passive: false, + }); + canvas.addEventListener("mousemove", updateDragByEvent, { + capture: true, + passive: false, + }); + canvas.addEventListener("mouseup", endDragByEvent, { + capture: true, + passive: false, + }); + canvas.addEventListener("mouseout", () => { + if (!this.dragState) { + this.setInteractionMode("idle"); + this.focusMarker.visible = false; + this.hideHoverOutline(); + this.updateHoverLabel(undefined); + this.hoveredObjectId = undefined; + } + }, { capture: true }); + window.addEventListener("mouseup", (event) => { + if (!this.dragState || this.currentMode !== "dragging") { + return; + } + endDragByEvent(event); + this.hideFocusMarkerSoon(); + }); + return; + } + + window.addEventListener( + "pointerdown", + (event) => { + if (this.currentMode === "dragging") { + return; + } + if (!this.isCanvasEvent(event.target)) { + return; + } + startDragByEvent(event); + }, + { capture: true, passive: false }, + ); + canvas.addEventListener("pointerdown", startDragByEvent, { + capture: true, + passive: false, + }); + canvas.addEventListener( + "pointermove", + updateDragByEvent, + { capture: true, passive: false }, + ); + canvas.addEventListener( + "pointerup", + endDragByEvent, + { capture: true, passive: false }, + ); + canvas.addEventListener( + "pointerleave", + () => { + if (!this.dragState) { + this.setInteractionMode("idle"); + this.focusMarker.visible = false; + this.hideHoverOutline(); + this.updateHoverLabel(undefined); + this.hoveredObjectId = undefined; + } + }, + { capture: true }, + ); + canvas.addEventListener( + "pointercancel", + (event) => { + const pointerId = this.getPointerId(event); + if (this.dragState?.pointerId === undefined || this.dragState?.pointerId === pointerId) { + this.cancelDrag(); + this.setInteractionMode("idle"); + } + }, + { capture: true }, + ); + window.addEventListener("pointerup", (event) => { + if (!this.dragState || this.currentMode !== "dragging") { + return; + } + const activePointerId = this.getPointerId(event); + if (this.dragState.pointerId === undefined || this.dragState.pointerId === activePointerId) { + endDragByEvent(event); + this.hideFocusMarkerSoon(); + } + }); + window.addEventListener("blur", () => { + this.cancelDrag(); + this.setInteractionMode("idle"); + this.hideFocusMarkerSoon(); + }); + } + + private getPointerId(event: PointerLikeEvent): number | undefined { + return typeof (event as PointerEvent).pointerId === "number" ? (event as PointerEvent).pointerId : undefined; + } + + private isCanvasEvent(target: EventTarget | null): boolean { + if (!(target instanceof Node)) { + return false; + } + return this.renderer.domElement === target || this.renderer.domElement.contains(target); + } + + private setInteractionMode(mode: InteractionMode): void { + this.currentMode = mode; + const canvas = this.renderer.domElement; + canvas.classList.toggle("draggable-hover", mode === "hover"); + canvas.classList.toggle("dragging", mode === "dragging"); + if (mode === "dragging") { + canvas.style.cursor = "grabbing"; + return; + } + if (mode === "hover") { + canvas.style.cursor = "grab"; + return; + } + if (mode === "idle") { + canvas.style.cursor = ""; + return; + } + } + + private showHoverOutline(target: THREE.Object3D, colorHex: string): void { + this.hoverOutline.setFromObject(target); + (this.hoverOutline.material as THREE.LineBasicMaterial).color.set(colorHex); + this.hoverOutline.visible = true; + } + + private hideHoverOutline(): void { + this.hoverOutline.visible = false; + } + + private updateHoverLabel( + id: string | undefined, + bound?: BoundObject, + editable = false, + disabledReason?: string, + ): void { + if (!this.hoverLabel) { + return; + } + if (!id || !bound) { + this.hoverLabel.textContent = ""; + this.hoverLabel.removeAttribute("title"); + return; + } + const name = bound.manifest.name && bound.manifest.name !== id ? `${id} · ${bound.manifest.name}` : id; + this.hoverLabel.textContent = `${disabledReason ?? (editable ? "可拖拽" : "非可拖拽")}: ${name}`; + this.hoverLabel.title = name; + } + + private showFocusAtObject(target: THREE.Object3D, colorHex: string, radiusScale = 1): void { + const bounds = new THREE.Box3().setFromObject(target); + const center = new THREE.Vector3(); + const size = new THREE.Vector3(); + if (bounds.isEmpty()) { + target.getWorldPosition(center); + this.focusMarkerRadius = 0.12 * radiusScale; + } else { + bounds.getCenter(center); + bounds.getSize(size); + this.focusMarkerRadius = Math.max(0.08, Math.max(size.x, size.y, size.z) * 0.5 * radiusScale); + } + this.focusMarkerTarget.copy(center); + this.focusMarker.visible = true; + (this.focusMarker.material as THREE.MeshBasicMaterial).color.set(colorHex); + window.clearTimeout(this.focusMarkerHideHandle); + } + + private setHoverFromPick( + pick: { id: string; bound: BoundObject; editable: boolean; disabledReason?: string } | undefined, + ): void { + if (!pick) { + if (this.currentMode !== "dragging") { + this.setInteractionMode("idle"); + this.focusMarker.visible = false; + this.hideHoverOutline(); + this.updateHoverLabel(undefined); + } + this.hoveredObjectId = undefined; + return; + } + if (this.hoveredObjectId !== pick.id) { + this.hoveredObjectId = pick.id; + const color = pick.editable ? "#38bdf8" : "#f59e0b"; + this.showFocusAtObject(pick.bound.root, color, 1.05); + this.showHoverOutline(pick.bound.root, color); + this.setInteractionMode("hover"); + } + this.updateHoverLabel(pick.id, pick.bound, pick.editable, pick.disabledReason); + } + + private updateDragHoverTarget(event: PointerLikeEvent): void { + if (this.currentMode === "dragging") { + return; + } + const pick = this.pickAnyObject(event); + this.setHoverFromPick(pick); + } + + private showFocusMarker(): void { + window.clearTimeout(this.focusMarkerHideHandle); + if (this.currentMode !== "idle") { + return; + } + this.focusMarker.visible = true; + } + + private hideFocusMarkerSoon(): void { + window.clearTimeout(this.focusMarkerHideHandle); + this.focusMarkerHideHandle = window.setTimeout(() => { + this.focusMarker.visible = false; + this.setInteractionMode("idle"); + }, 650); + } + + private updateFocusMarker(): void { + if (!this.focusMarker.visible) { + return; + } + this.focusMarker.position.copy(this.focusMarkerTarget); + this.focusMarker.quaternion.copy(this.camera.quaternion); + const distance = this.camera.position.distanceTo(this.focusMarker.position); + const scale = Math.max(0.06, distance * 0.12 * this.focusMarkerRadius); + this.focusMarker.scale.setScalar(scale); + } + + private resize(): void { + const width = Math.max(320, this.container.clientWidth); + const height = Math.max(320, this.container.clientHeight); + this.camera.aspect = width / height; + this.camera.updateProjectionMatrix(); + this.renderer.setSize(width, height, false); + } + + private clearScene(): void { + this.root.clear(); + this.materials.clear(); + this.meshCache.clear(); + this.bodyBindings.clear(); + this.objectsById.clear(); + this.objectBodyIds.clear(); + this.bodySourceOffsets.clear(); + this.bodyVisualOffsets.clear(); + this.robotObjectIds.clear(); + this.robotBodyNames.clear(); + this.cancelDrag(); + this.hoveredObjectId = undefined; + this.hideHoverOutline(); + this.updateHoverLabel(undefined); + this.loadedMeshCount = 0; + this.fallbackCount = 0; + this.lastFrame = undefined; + } + + private isRobotManifestObject(id: string): boolean { + if (!this.dragOptions.robotPrefix) { + return false; + } + const prefix = this.dragOptions.robotPrefix; + return id === prefix || id.startsWith(`${prefix}_`); + } + + private startDrag(event: PointerLikeEvent): boolean { + if (!this.dragOptions.enabled) { + return false; + } + const found = this.pickEditableObject(event); + if (!found) { + return false; + } + const pointerWorld = this.pointerWorld(event); + if (!pointerWorld) { + return false; + } + const { id, bound } = found; + const isRobot = this.robotObjectIds.has(id); + const targetIds = isRobot ? Array.from(this.robotObjectIds) : [id]; + const worldStartById = new Map(); + const sourceStartById = new Map(); + const sourceOffsetStartById = new Map(); + for (const targetId of targetIds) { + const targetBound = this.objectsById.get(targetId); + if (!targetBound) { + continue; + } + worldStartById.set(targetId, targetBound.root.position.clone()); + sourceStartById.set(targetId, this.toSourceTuple(targetBound.root.position)); + if (targetBound.manifest.body) { + sourceOffsetStartById.set(targetId, this.bodyVisualOffsets.get(targetBound.manifest.body) ?? [0, 0, 0]); + } + } + if (sourceStartById.size === 0) { + return false; + } + + const normal = new THREE.Vector3(); + this.camera.getWorldDirection(normal); + const plane = new THREE.Plane().setFromNormalAndCoplanarPoint(normal, pointerWorld); + this.dragState = { + kind: isRobot ? "robot" : "prop", + targetId: id, + target: bound.root, + pointerId: this.getPointerId(event), + plane, + worldStart: pointerWorld.clone(), + sourceStart: sourceStartById.get(id) ?? [0, 0, 0], + sourceStartById, + sourceOffsetStartById, + worldStartById, + targetIds, + robotPoseStart: [...this.robotOffsetPose], + }; + this.controls.enabled = false; + this.canvasSetPointerCapture(event); + const sourceDelta: [number, number, number] = [0, 0, 0]; + this.emitDragEvent({ + id, + body: bound.manifest.body, + source: sourceStartById.get(id) ?? [0, 0, 0], + quat: this.currentSourceQuat(bound.manifest.body), + sourceDelta, + kind: isRobot ? "robot" : "prop", + start: true, + end: false, + }); + this.showFocusAtObject(bound.root, "#f97316", 1.2); + this.showHoverOutline(bound.root, "#f97316"); + this.setInteractionMode("dragging"); + return true; + } + + private updateDragTarget(event: PointerLikeEvent): void { + if (!this.dragState) { + return; + } + const current = this.pointerWorld(event); + if (!current) { + return; + } + const delta = current.clone().sub(this.dragState.worldStart); + const deltaSource = this.toSourceVector(delta); + for (const targetId of this.dragState.targetIds) { + const start = this.dragState.worldStartById.get(targetId); + const bound = this.objectsById.get(targetId); + if (!start || !bound) { + continue; + } + bound.root.position.copy(start).add(delta); + } + this.updateDraggedBodyOffsets(deltaSource); + + const primarySource = this.toSourceTuple(this.objectsById.get(this.dragState.targetId)?.root.position ?? this.dragState.worldStart); + const sourceDelta: [number, number, number] = [ + primarySource[0] - this.dragState.sourceStart[0], + primarySource[1] - this.dragState.sourceStart[1], + primarySource[2] - this.dragState.sourceStart[2], + ]; + + this.emitDragEvent({ + id: this.dragState.targetId, + body: this.objectsById.get(this.dragState.targetId)?.manifest.body, + source: this.dragState.kind === "robot" + ? [ + this.dragState.robotPoseStart[0] + deltaSource[0], + this.dragState.robotPoseStart[1] + deltaSource[1], + this.dragState.robotPoseStart[2] + deltaSource[2], + ] + : primarySource, + quat: this.currentSourceQuat(this.objectsById.get(this.dragState.targetId)?.manifest.body), + sourceDelta, + kind: this.dragState.kind, + start: false, + end: false, + }); + } + + private finishDrag(event?: PointerLikeEvent): void { + if (!this.dragState) { + return; + } + const finalWorld = event ? this.pointerWorld(event) : undefined; + if (finalWorld) { + const delta = finalWorld.clone().sub(this.dragState.worldStart); + const deltaSource = this.toSourceVector(delta); + for (const targetId of this.dragState.targetIds) { + const start = this.dragState.worldStartById.get(targetId); + const bound = this.objectsById.get(targetId); + if (!start || !bound) { + continue; + } + bound.root.position.copy(start).add(delta); + } + this.updateDraggedBodyOffsets(deltaSource); + + const source: [number, number, number] = this.dragState.kind === "robot" + ? [ + this.dragState.robotPoseStart[0] + deltaSource[0], + this.dragState.robotPoseStart[1] + deltaSource[1], + this.dragState.robotPoseStart[2] + deltaSource[2], + ] + : this.toSourceTuple( + this.objectsById.get(this.dragState.targetId)?.root.position ?? this.dragState.worldStart, + ); + const sourceStart = this.dragState.sourceStartById.get(this.dragState.targetId) ?? [0, 0, 0]; + const sourceDelta: [number, number, number] = [ + source[0] - sourceStart[0], + source[1] - sourceStart[1], + source[2] - sourceStart[2], + ]; + this.emitDragEvent({ + id: this.dragState.targetId, + body: this.objectsById.get(this.dragState.targetId)?.manifest.body, + source, + quat: this.currentSourceQuat(this.objectsById.get(this.dragState.targetId)?.manifest.body), + sourceDelta, + kind: this.dragState.kind, + start: false, + end: true, + }); + } else { + this.emitDragEvent({ + id: this.dragState.targetId, + body: this.objectsById.get(this.dragState.targetId)?.manifest.body, + source: this.dragState.sourceStart, + quat: this.currentSourceQuat(this.objectsById.get(this.dragState.targetId)?.manifest.body), + sourceDelta: [0, 0, 0], + kind: this.dragState.kind, + start: false, + end: true, + }); + } + this.controls.enabled = true; + this.canvasReleasePointerCapture(this.dragState.pointerId); + const endState = this.dragState; + this.dragState = undefined; + this.setInteractionMode("idle"); + if (event) { + this.updateDragHoverTarget(event); + this.setInteractionMode(this.hoveredObjectId === endState.targetId ? "hover" : "idle"); + } else { + this.focusMarker.visible = false; + this.hideHoverOutline(); + this.updateHoverLabel(undefined); + this.hoveredObjectId = undefined; + } + this.renderer.domElement.style.cursor = ""; + } + + private cancelDrag(): void { + if (this.dragState) { + for (const targetId of this.dragState.targetIds) { + const bound = this.objectsById.get(targetId); + const body = bound?.manifest.body; + if (!body) { + continue; + } + const startOffset = this.dragState.sourceOffsetStartById.get(targetId); + if (startOffset) { + this.bodyVisualOffsets.set(body, [...startOffset]); + } else { + this.bodyVisualOffsets.delete(body); + } + } + this.canvasReleasePointerCapture(this.dragState.pointerId); + this.dragState = undefined; + } + this.controls.enabled = true; + this.setInteractionMode("idle"); + this.renderer.domElement.style.cursor = ""; + } + + private pickEditableObject(event: PointerLikeEvent): { id: string; bound: BoundObject } | undefined { + if (this.editableObjectIds.size === 0 && this.robotObjectIds.size === 0) { + return undefined; + } + this.updatePointerFromEvent(event); + this.raycaster.setFromCamera(this.pointer, this.camera); + const intersects = this.raycaster.intersectObjects(this.root.children, true); + for (const hit of intersects) { + const manifestId = this.extractManifestId(hit.object); + if (!manifestId) { + continue; + } + if (!this.editableObjectIds.has(manifestId) && !this.robotObjectIds.has(manifestId)) { + continue; + } + const bound = this.objectsById.get(manifestId); + if (!bound) { + continue; + } + return { id: manifestId, bound }; + } + return undefined; + } + + private pickAnyObject( + event: PointerLikeEvent, + ): { id: string; bound: BoundObject; editable: boolean; disabledReason?: string } | undefined { + if (this.objectsById.size === 0) { + return undefined; + } + this.updatePointerFromEvent(event); + this.raycaster.setFromCamera(this.pointer, this.camera); + const intersects = this.raycaster.intersectObjects(this.root.children, true); + for (const hit of intersects) { + const manifestId = this.extractManifestId(hit.object); + if (!manifestId) { + continue; + } + const bound = this.objectsById.get(manifestId); + if (!bound) { + continue; + } + const isEditable = this.editableObjectIds.has(manifestId) || this.robotObjectIds.has(manifestId); + const disabledReason = isEditable && this.dragOptions.enabled === false + ? "需暂停后拖拽" + : !isEditable && !bound.manifest.body + ? "静态对象" + : undefined; + return { + id: manifestId, + bound, + editable: isEditable && this.dragOptions.enabled !== false, + disabledReason, + }; + } + return undefined; + } + + private currentSourceQuat(bodyName?: string): Quat | undefined { + if (!bodyName) { + return undefined; + } + const quat = this.lastFrame?.bodies?.[bodyName]?.quat; + return quat ? [quat[0], quat[1], quat[2], quat[3]] : undefined; + } + + private updateDraggedBodyOffsets(deltaSource: [number, number, number]): void { + if (!this.dragState || this.dragState.kind !== "prop") { + return; + } + for (const targetId of this.dragState.targetIds) { + const bound = this.objectsById.get(targetId); + const body = bound?.manifest.body; + if (!body) { + continue; + } + const startOffset = this.dragState.sourceOffsetStartById.get(targetId) ?? [0, 0, 0]; + this.bodyVisualOffsets.set(body, [ + startOffset[0] + deltaSource[0], + startOffset[1] + deltaSource[1], + startOffset[2] + deltaSource[2], + ]); + } + } + private extractManifestId(object: THREE.Object3D): string | undefined { + let current: THREE.Object3D | null = object; + while (current) { + const id = current.userData?.manifestId; + if (typeof id === "string" && id.length > 0) { + return id; + } + current = current.parent; + } + return undefined; + } + + private pointerWorld(event: PointerLikeEvent): THREE.Vector3 | undefined { + this.updatePointerFromEvent(event); + this.raycaster.setFromCamera(this.pointer, this.camera); + if (!this.dragState) { + const normal = this.camera.getWorldDirection(new THREE.Vector3()); + const world = this.raycaster.ray.intersectPlane( + new THREE.Plane().setFromNormalAndCoplanarPoint(normal, this.controls.target), + new THREE.Vector3(), + ); + return world ?? undefined; + } + const world = this.raycaster.ray.intersectPlane(this.dragState.plane, new THREE.Vector3()); + return world ?? undefined; + } + + private toSourceTuple(value: THREE.Vector3): [number, number, number] { + const converted = this.converter.worldToSourcePosition([value.x, value.y, value.z]); + return [converted[0], converted[1], converted[2]]; + } + + private toSourceVector(value: THREE.Vector3): [number, number, number] { + const converted = this.converter.worldToSourcePosition([value.x, value.y, value.z]); + return [converted[0], converted[1], converted[2]]; + } + + private canvasSetPointerCapture(event: PointerLikeEvent): void { + const canvas = this.renderer.domElement; + if (typeof canvas.setPointerCapture !== "function") { + return; + } + try { + const pointerId = this.getPointerId(event); + if (pointerId === undefined) { + return; + } + canvas.setPointerCapture(pointerId); + } catch { + // Some browsers may reject repeated capture calls, ignore for graceful UX. + } + } + + private canvasReleasePointerCapture(pointerId?: number): void { + const target = this.renderer.domElement; + if (pointerId === undefined || typeof target.releasePointerCapture !== "function") { + return; + } + try { + if (target.hasPointerCapture(pointerId)) { + target.releasePointerCapture(pointerId); + } + } catch { + // Ignore pointer capture lifecycle exceptions. + } + } + + private updatePointerFromEvent(event: PointerLikeEvent): void { + const rect = this.renderer.domElement.getBoundingClientRect(); + this.pointer.x = ((event.clientX - rect.left) / rect.width) * 2 - 1; + this.pointer.y = -((event.clientY - rect.top) / rect.height) * 2 + 1; + } + + private emitDragEvent(event: DragPose): void { + if (!this.dragOptions.onDrag) { + return; + } + this.dragOptions.onDrag(event); + } + + private buildMaterials(materials: PreviewMaterial[]): void { + const defaults: PreviewMaterial[] = [ + { id: "default", color: "#93c5fd", roughness: 0.65 }, + { id: "fallback", color: "#fb7185", wireframe: true }, + ]; + for (const material of [...defaults, ...materials]) { + const texture = this.createMaterialTexture(material); + const [roughness, metalness] = this.previewSurface(material); + const threeMaterial = new THREE.MeshStandardMaterial({ + color: material.color ?? "#93c5fd", + map: texture, + opacity: material.opacity ?? 1, + transparent: material.opacity !== undefined && material.opacity < 1, + roughness, + metalness, + side: THREE.DoubleSide, + wireframe: material.wireframe ?? false, + }); + this.materials.set(material.id, threeMaterial); + } + } + + private previewSurface(material: PreviewMaterial): [roughness: number, metalness: number] { + let roughness = material.roughness ?? 0.68; + let metalness = material.metalness ?? 0; + if (metalness >= 0.85 && roughness >= 0.85) { + // MJCF store assets use painted white metal as rough metallic PBR. + // Without the original HDR environment that previews too dark, so keep it readable. + metalness = 0.16; + roughness = 0.58; + } + return [roughness, metalness]; + } + + private createMaterialTexture(material: PreviewMaterial): THREE.Texture | undefined { + let texture: THREE.Texture | undefined; + let immediateImage = false; + if (material.textureUrl) { + texture = new THREE.TextureLoader().load(material.textureUrl); + texture.colorSpace = THREE.SRGBColorSpace; + } else if (material.textureKind === "checker") { + texture = this.createCheckerTexture(material.textureColors ?? ["#64748b", "#e5e7eb"]); + immediateImage = true; + } + if (!texture) { + return undefined; + } + const [repeatX, repeatY] = material.textureRepeat ?? [1, 1]; + texture.wrapS = THREE.RepeatWrapping; + texture.wrapT = THREE.RepeatWrapping; + texture.repeat.set(repeatX, repeatY); + if (immediateImage) { + texture.needsUpdate = true; + } + return texture; + } + + private createCheckerTexture(colors: [string, string]): THREE.Texture { + const size = 128; + const squares = 8; + const canvas = document.createElement("canvas"); + canvas.width = size; + canvas.height = size; + const context = canvas.getContext("2d"); + if (context) { + const cell = size / squares; + for (let y = 0; y < squares; y += 1) { + for (let x = 0; x < squares; x += 1) { + context.fillStyle = colors[(x + y) % 2]; + context.fillRect(x * cell, y * cell, cell, cell); + } + } + } + const texture = new THREE.CanvasTexture(canvas); + texture.colorSpace = THREE.SRGBColorSpace; + return texture; + } + + private getMaterial(id?: string): THREE.Material { + return this.materials.get(id ?? "default") ?? this.materials.get("default")!; + } + + private addDefaultHelpers(): void { + const grid = new THREE.GridHelper(12, 24, "#64748b", "#243244"); + grid.position.y = 0; + grid.userData.helper = true; + this.root.add(grid); + } + + private addLights(manifest: SceneManifest): void { + const lights = manifest.lights ?? [ + { type: "hemisphere" as const, intensity: 0.75, color: "#e0f2fe" }, + { type: "directional" as const, intensity: 2.0, color: "#ffffff", position: [4, -5, 7] as [number, number, number] }, + ]; + for (const lightSpec of lights) { + if (lightSpec.type === "ambient") { + this.root.add(new THREE.AmbientLight(lightSpec.color ?? "#ffffff", lightSpec.intensity ?? 0.4)); + } else if (lightSpec.type === "hemisphere") { + this.root.add(new THREE.HemisphereLight(lightSpec.color ?? "#ffffff", "#111827", lightSpec.intensity ?? 0.6)); + } else { + const light = new THREE.DirectionalLight(lightSpec.color ?? "#ffffff", lightSpec.intensity ?? 2); + light.position.copy(this.converter.position(lightSpec.position, [3, -4, 7])); + light.castShadow = true; + light.shadow.mapSize.set(2048, 2048); + this.root.add(light); + } + } + } + + private applyCamera(manifest: SceneManifest): void { + const camera = manifest.camera; + if (!camera) { + return; + } + this.camera.fov = camera.fov ?? 46; + this.camera.near = camera.near ?? 0.05; + this.camera.far = camera.far ?? 500; + this.camera.position.copy(this.converter.position(camera.position, [5.5, -7.2, 4.6])); + this.controls.target.copy(this.converter.position(camera.target, [0, 0, 1.2])); + this.camera.updateProjectionMatrix(); + this.controls.update(); + } + + private fitCameraToObjects(): void { + const bounds = new THREE.Box3(); + let found = false; + for (const child of this.root.children) { + if (!child.userData.manifestId) { + continue; + } + const childBounds = new THREE.Box3().setFromObject(child); + if (childBounds.isEmpty()) { + continue; + } + bounds.union(childBounds); + found = true; + } + if (!found || bounds.isEmpty()) { + return; + } + const center = bounds.getCenter(new THREE.Vector3()); + const size = bounds.getSize(new THREE.Vector3()); + const maxSize = Math.max(size.x, size.y, size.z, 0.8); + const distance = Math.max(1.6, (maxSize / (2 * Math.tan(THREE.MathUtils.degToRad(this.camera.fov) / 2))) * 1.55); + const direction = this.camera.position.clone().sub(this.controls.target); + if (direction.lengthSq() < 1e-6) { + direction.set(1.2, 0.9, 1.2); + } + direction.normalize(); + this.controls.target.copy(center); + this.camera.position.copy(center).addScaledVector(direction, distance); + this.camera.near = Math.max(0.01, distance / 100); + this.camera.far = Math.max(50, distance * 100); + this.camera.updateProjectionMatrix(); + this.controls.update(); + } + + private async addObject(object: PreviewObject, token: number): Promise { + const root = new THREE.Group(); + root.name = object.name ?? object.id; + root.visible = object.visible !== false; + root.userData.manifestId = object.id; + + const visual = await this.createVisual(object.geometry, object.material, token); + if (token !== this.loadToken) { + return; + } + visual.castShadow = object.castShadow ?? true; + visual.receiveShadow = object.receiveShadow ?? true; + visual.name = `${object.id}_visual`; + if (object.body) { + const local = new THREE.Group(); + local.name = `${object.id}_local_pose`; + this.converter.applyPose(local, object.pose); + local.add(visual); + root.add(local); + } else { + this.converter.applyPose(root, object.pose); + root.add(visual); + } + this.root.add(root); + this.objectsById.set(object.id, { manifest: object, root }); + if (object.body) { + const ids = this.objectBodyIds.get(object.id) ?? []; + if (!ids.includes(object.body)) { + ids.push(object.body); + } + this.objectBodyIds.set(object.id, ids); + const sourcePose = object.pose?.position ?? [0, 0, 0]; + if (!this.bodySourceOffsets.has(object.body)) { + this.bodySourceOffsets.set(object.body, [...sourcePose] as [number, number, number]); + } + } else { + this.objectBodyIds.set(object.id, []); + } + + if (object.body) { + const items = this.bodyBindings.get(object.body) ?? []; + items.push({ manifest: object, root }); + this.bodyBindings.set(object.body, items); + } + } + + private async addObjects(objects: PreviewObject[], token: number): Promise { + let nextIndex = 0; + const workerCount = Math.min(24, Math.max(1, objects.length)); + const workers = Array.from({ length: workerCount }, async () => { + while (token === this.loadToken) { + const index = nextIndex; + nextIndex += 1; + const object = objects[index]; + if (!object) { + return; + } + await this.addObject(object, token); + } + }); + await Promise.all(workers); + } + + private async createVisual(geometry: PreviewGeometry, materialId: string | undefined, token: number): Promise { + if (geometry.kind === "mesh") { + return this.loadMesh(geometry, materialId, token); + } + if (geometry.kind === "convexMesh") { + return this.createInlineMesh(geometry.vertices, geometry.faces, materialId, token); + } + const material = this.getMaterial(materialId); + switch (geometry.primitive) { + case "sphere": + return new THREE.Mesh( + new THREE.SphereGeometry(geometry.radius ?? 0.25, geometry.segments ?? 32, geometry.segments ?? 24), + material, + ); + case "capsule": + return new THREE.Mesh( + new THREE.CapsuleGeometry(geometry.radius ?? 0.1, geometry.length ?? 0.8, 8, geometry.segments ?? 24), + material, + ); + case "cylinder": + return new THREE.Mesh( + new THREE.CylinderGeometry(geometry.radius ?? 0.1, geometry.radius ?? 0.1, geometry.length ?? 0.8, geometry.segments ?? 32), + material, + ); + case "plane": { + const [x, , z] = this.converter.primitiveSize(geometry.size, [4, 0, 4]); + const mesh = new THREE.Mesh(new THREE.PlaneGeometry(x, z), material); + mesh.rotation.x = -Math.PI / 2; + return mesh; + } + case "axes": { + const [x] = geometry.size ?? [1, 1, 1]; + return new THREE.AxesHelper(x); + } + case "box": + default: { + const [x, y, z] = this.converter.primitiveSize(geometry.size, [0.3, 0.3, 0.3]); + return new THREE.Mesh(new THREE.BoxGeometry(x, y, z), material); + } + } + } + + private createInlineMesh(vertices: number[], faces: number[] | undefined, materialId: string | undefined, token: number): THREE.Object3D { + const material = this.getMaterial(materialId); + const points: THREE.Vector3[] = []; + for (let index = 0; index + 2 < vertices.length; index += 3) { + points.push(new THREE.Vector3(vertices[index], vertices[index + 1], vertices[index + 2])); + } + let geometry: THREE.BufferGeometry; + if (faces && faces.length >= 3) { + geometry = new THREE.BufferGeometry(); + geometry.setAttribute("position", new THREE.Float32BufferAttribute(vertices, 3)); + geometry.setIndex(faces); + geometry.computeVertexNormals(); + } else if (points.length >= 4) { + geometry = new ConvexGeometry(points); + } else { + geometry = new THREE.BufferGeometry(); + geometry.setAttribute("position", new THREE.Float32BufferAttribute(vertices, 3)); + geometry.computeVertexNormals(); + } + const mesh = new THREE.Mesh(geometry, material); + this.converter.applySourceBasis(mesh); + if (token === this.loadToken) { + this.loadedMeshCount += 1; + } + return mesh; + } + + private async loadMesh(geometry: MeshGeometry, materialId: string | undefined, token: number): Promise { + try { + const format = geometry.format ?? inferMeshFormat(geometry.url); + const material = this.getMaterial(geometry.materialOverride ?? materialId); + const cacheKey = `${format ?? "unknown"}:${geometry.url}:${geometry.materialOverride ?? materialId ?? "default"}`; + let pending = this.meshCache.get(cacheKey); + if (!pending) { + pending = this.loadMeshSource(geometry, format, material); + this.meshCache.set(cacheKey, pending); + } + const source = await pending; + const loaded = source.clone(true); + this.prepareLoadedMesh(loaded); + if (token === this.loadToken) { + this.loadedMeshCount += 1; + } + return loaded; + } catch (error) { + if (token === this.loadToken) { + this.fallbackCount += 1; + } + const fallback = new THREE.Mesh( + new THREE.BoxGeometry(0.6, 0.6, 0.6), + this.getMaterial("fallback"), + ); + fallback.name = `mesh_fallback:${geometry.url}`; + fallback.userData.error = (error as Error).message; + return fallback; + } + } + + private async loadMeshSource( + geometry: MeshGeometry, + format: MeshGeometry["format"] | undefined, + material: THREE.Material, + ): Promise { + let loaded: THREE.Object3D; + if (format === "gltf" || format === "glb") { + const gltf = await new GLTFLoader().loadAsync(geometry.url); + loaded = gltf.scene; + } else if (format === "stl") { + const stl = await new STLLoader().loadAsync(geometry.url); + loaded = new THREE.Mesh(stl, material); + } else if (format === "obj") { + loaded = await new OBJLoader().loadAsync(geometry.url); + } else { + throw new Error(`unsupported mesh format: ${format ?? "unknown"}`); + } + loaded.traverse((child) => { + if ((child as THREE.Mesh).isMesh) { + const mesh = child as THREE.Mesh; + if (format === "obj" || format === "stl" || !mesh.material || Array.isArray(mesh.material)) { + mesh.material = material; + } + } + }); + this.converter.applySourceBasis(loaded); + return loaded; + } + + private prepareLoadedMesh(loaded: THREE.Object3D): void { + loaded.traverse((child) => { + if ((child as THREE.Mesh).isMesh) { + const mesh = child as THREE.Mesh; + mesh.castShadow = true; + mesh.receiveShadow = true; + } + }); + } + + private applyBodyState(target: THREE.Object3D, bodyName: string, bodyState: BodyState): void { + const isRobotBody = this.robotBodyNames.has(bodyName); + if (bodyState.pos) { + const sourcePos = this.converter.position(bodyState.pos); + target.position.copy(sourcePos); + if (isRobotBody) { + target.position.add(this.converter.position(this.robotOffsetPose)); + } else { + const visualOffset = this.bodyVisualOffsets.get(bodyName); + if (visualOffset) { + target.position.add(this.converter.position(visualOffset)); + } + } + } else if (isRobotBody) { + const baseSource = this.bodySourceOffsets.get(bodyName); + if (baseSource) { + target.position.copy(this.converter.position([ + baseSource[0] + this.robotOffsetPose[0], + baseSource[1] + this.robotOffsetPose[1], + baseSource[2] + this.robotOffsetPose[2], + ])); + } + } + if (bodyState.quat) { + target.quaternion.copy(this.converter.quaternion(bodyState.quat)); + } + } + + private applyRobotPoseOffset(): void { + if (this.robotObjectIds.size === 0) { + return; + } + const offsetSource = this.robotOffsetPose; + for (const objectId of this.robotObjectIds) { + const bound = this.objectsById.get(objectId); + if (!bound || !bound.manifest.body) { + continue; + } + const baseSource = this.bodySourceOffsets.get(bound.manifest.body); + if (!baseSource) { + continue; + } + const bodyStateSource = [ + baseSource[0] + offsetSource[0], + baseSource[1] + offsetSource[1], + baseSource[2] + offsetSource[2], + ] as [number, number, number]; + bound.root.position.copy(this.converter.position(bodyStateSource)); + } + } + + private updateStatus(message: string): void { + this.statusElement.textContent = message; + } +} + +function inferMeshFormat(url: string): MeshGeometry["format"] | undefined { + const lower = url.toLowerCase().split("?")[0]; + if (lower.endsWith(".gltf")) return "gltf"; + if (lower.endsWith(".glb")) return "glb"; + if (lower.endsWith(".obj")) return "obj"; + if (lower.endsWith(".stl")) return "stl"; + return undefined; +} diff --git a/src/state/StateClient.ts b/src/state/StateClient.ts new file mode 100644 index 0000000..8226d07 --- /dev/null +++ b/src/state/StateClient.ts @@ -0,0 +1,143 @@ +import type { PreviewFrame, PreviewStateSource, ReplayStateFile } from "../types"; + +type StateListener = (frame: PreviewFrame) => void; +type StatusListener = (message: string) => void; + +export class StateClient { + private source?: PreviewStateSource; + private frames: PreviewFrame[] = []; + private listener?: StateListener; + private statusListener?: StatusListener; + private replayTimer: number | undefined; + private pollTimer: number | undefined; + private socket?: WebSocket; + private replayIndex = 0; + private polling = false; + + onFrame(listener: StateListener): void { + this.listener = listener; + } + + onStatus(listener: StatusListener): void { + this.statusListener = listener; + } + + async connect(source?: PreviewStateSource): Promise { + this.disconnect(); + this.source = source; + if (!source || source.mode === "none") { + this.status("state: none"); + return; + } + if (source.mode === "replay") { + await this.startReplay(source); + return; + } + if (source.mode === "poll") { + this.startPolling(source); + return; + } + if (source.mode === "websocket") { + this.startWebSocket(source); + return; + } + } + + disconnect(): void { + if (this.replayTimer !== undefined) { + window.clearInterval(this.replayTimer); + this.replayTimer = undefined; + } + if (this.pollTimer !== undefined) { + window.clearInterval(this.pollTimer); + this.pollTimer = undefined; + } + this.polling = false; + if (this.socket) { + this.socket.close(); + this.socket = undefined; + } + } + + private async startReplay(source: PreviewStateSource): Promise { + if (!source.url) { + this.status("state: replay missing url"); + return; + } + const response = await fetch(source.url, { cache: "no-store" }); + if (!response.ok) { + throw new Error(`failed to load replay state ${source.url}: ${response.status}`); + } + const data = (await response.json()) as ReplayStateFile; + this.frames = data.frames ?? []; + this.replayIndex = 0; + const fps = source.fps ?? 12; + const interval = Math.max(16, Math.round(1000 / fps)); + this.status(`state: replay ${this.frames.length} frames @ ${fps} fps`); + const tick = () => { + if (this.frames.length === 0) { + return; + } + const frame = this.frames[this.replayIndex]; + this.listener?.(frame); + this.replayIndex += 1; + if (this.replayIndex >= this.frames.length) { + this.replayIndex = source.loop === false ? this.frames.length - 1 : 0; + } + }; + tick(); + this.replayTimer = window.setInterval(tick, interval); + } + + private startPolling(source: PreviewStateSource): void { + if (!source.url) { + this.status("state: poll missing url"); + return; + } + const interval = source.pollIntervalMs ?? 80; + const tick = async () => { + if (this.polling) { + return; + } + this.polling = true; + try { + const response = await fetch(source.url!, { cache: "no-store" }); + if (!response.ok) { + this.status(`state: poll ${response.status}`); + return; + } + const frame = (await response.json()) as PreviewFrame; + this.listener?.(frame); + this.status(`state: poll connected`); + } catch (error) { + this.status(`state: poll error ${(error as Error).message}`); + } finally { + this.polling = false; + } + }; + void tick(); + this.pollTimer = window.setInterval(tick, interval); + } + + private startWebSocket(source: PreviewStateSource): void { + if (!source.url) { + this.status("state: websocket missing url"); + return; + } + this.socket = new WebSocket(source.url); + this.socket.onopen = () => this.status("state: websocket connected"); + this.socket.onclose = () => this.status("state: websocket closed"); + this.socket.onerror = () => this.status("state: websocket error"); + this.socket.onmessage = (event) => { + try { + this.listener?.(JSON.parse(event.data) as PreviewFrame); + } catch (error) { + this.status(`state: websocket parse error ${(error as Error).message}`); + } + }; + } + + private status(message: string): void { + this.statusListener?.(message); + } +} diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..03839c9 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,1086 @@ +:root { + color: #e5edf7; + background: #0f172a; + font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + font-synthesis: none; + text-rendering: optimizeLegibility; +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + min-width: 320px; + min-height: 100vh; + overflow: hidden; +} + +button, +input, +select { + font: inherit; +} + +.shell { + display: grid; + grid-template-columns: 340px minmax(0, 1fr) 320px; + width: 100vw; + height: 100vh; + background: #0f172a; +} + +.sidebar, +.inspector { + display: flex; + flex-direction: column; + gap: 14px; + min-width: 0; + padding: 22px; + background: #111827; + border-right: 1px solid rgba(148, 163, 184, 0.18); + overflow: auto; +} + +.inspector { + background: #10151f; + border-right: 0; + border-left: 1px solid rgba(148, 163, 184, 0.18); +} + +.eyebrow { + color: #38bdf8; + font-size: 12px; + font-weight: 800; + letter-spacing: 0; + text-transform: uppercase; +} + +.app-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 12px; +} + +.app-header > div { + min-width: 0; +} + +.language-control { + min-width: 108px; + margin: 0; +} + +.language-control span { + display: block; + margin-bottom: 6px; + color: #a9b8ca; + font-size: 12px; +} + +.language-control select { + width: 100%; + height: 32px; + padding: 0 8px; + font-size: 12px; +} + +h1 { + margin: 5px 0 0; + font-size: 25px; + line-height: 1.12; + letter-spacing: 0; +} + +h2 { + margin: 0 0 12px; + font-size: 15px; + letter-spacing: 0; +} + +.panel, +.note { + border: 1px solid rgba(148, 163, 184, 0.18); + border-radius: 8px; + background: rgba(15, 23, 42, 0.66); + padding: 14px; +} + +.compact { + padding: 13px 14px; +} + +.product-summary { + background: rgba(8, 47, 73, 0.46); +} + +.template-grid { + display: grid; + grid-template-columns: 1fr; + gap: 8px; +} + +.template-grid button { + width: 100%; + background: #bae6fd; +} + +.asset-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +} + +.upload-zone { + transition: border-color 0.16s ease, background 0.16s ease; +} + +.upload-zone.drag-over { + border-color: rgba(34, 211, 238, 0.9); + background: rgba(8, 47, 73, 0.58); +} + +.asset-card { + display: grid; + grid-template-columns: 18px minmax(0, 1fr); + align-items: center; + gap: 8px; + height: 42px; + padding: 0 10px; + color: #dbeafe; + background: #1f2937; + border: 1px solid rgba(148, 163, 184, 0.24); + text-align: left; +} + +.asset-card:hover { + color: #06121f; +} + +.asset-card span:last-child { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.asset-swatch { + width: 16px; + height: 16px; + background: var(--asset-color); + border: 1px solid rgba(255, 255, 255, 0.55); + border-radius: 4px; +} + +label { + display: block; + margin-bottom: 8px; + color: #a9b8ca; + font-size: 13px; +} + +.inline { + display: flex; + gap: 8px; +} + +input, +select { + flex: 1; + min-width: 0; + height: 38px; + padding: 0 10px; + color: #f8fafc; + background: #0b1220; + border: 1px solid rgba(148, 163, 184, 0.32); + border-radius: 6px; +} + +select { + appearance: none; +} + +input[type="range"] { + padding: 0; + accent-color: #67e8f9; +} + +input[type="number"] { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; +} + +button { + height: 38px; + border: 0; + border-radius: 6px; + padding: 0 14px; + color: #06121f; + background: #67e8f9; + font-weight: 800; + cursor: pointer; +} + +button:hover { + background: #22d3ee; +} + +button:disabled { + color: #94a3b8; + background: #1f2937; + cursor: not-allowed; +} + +.button-row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + margin-top: 10px; +} + +.button-row.single { + grid-template-columns: 1fr; +} + +.builder-panel label + select, +.builder-panel label + .inline { + margin-bottom: 10px; +} + +.prop-list { + display: grid; + gap: 6px; + min-height: 32px; + margin-top: 10px; +} + +.layout-tools { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + margin-top: 10px; +} + +.layout-tools button { + height: 32px; + padding: 0 8px; + background: #e0f2fe; + font-size: 12px; +} + +.prop-row { + display: grid; + gap: 8px; + min-height: 76px; + padding: 8px; + background: rgba(30, 41, 59, 0.72); + border: 1px solid rgba(148, 163, 184, 0.16); + border-radius: 6px; + font-size: 12px; +} + +.prop-row.selected { + border-color: rgba(250, 204, 21, 0.72); + background: rgba(63, 52, 20, 0.42); +} + +.prop-row-title { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 8px; +} + +.prop-row-title > span { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.prop-row-actions { + display: inline-grid; + grid-template-columns: auto auto; + gap: 6px; +} + +.prop-row button { + height: 24px; + padding: 0 8px; + background: #c7d2fe; + font-size: 12px; +} + +.prop-position { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 6px; +} + +.prop-position label { + display: grid; + grid-template-columns: 16px minmax(0, 1fr); + align-items: center; + gap: 5px; + margin: 0; + font-size: 11px; +} + +.prop-position input { + width: 100%; + height: 28px; + padding: 0 6px; + font-size: 12px; +} + +.prop-empty { + min-height: 30px; + padding: 7px; + color: #94a3b8; + background: rgba(15, 23, 42, 0.55); + border: 1px dashed rgba(148, 163, 184, 0.24); + border-radius: 6px; + font-size: 12px; +} + +.button-row button { + background: #dbeafe; +} + +.advanced-panel { + padding: 0; +} + +.advanced-panel summary { + display: block; + padding: 14px; + color: #dbeafe; + font-size: 15px; + font-weight: 800; + cursor: pointer; +} + +.advanced-panel[open] { + padding: 0 14px 14px; +} + +.advanced-panel[open] summary { + margin: 0 -14px 12px; + border-bottom: 1px solid rgba(148, 163, 184, 0.18); +} + +.control-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +} + +.control-grid button { + background: #bfdbfe; +} + +#control-status, +#input-status, +#actuator-status, +#builder-status, +#workspace-status { + margin: 10px 0 0; + min-height: 18px; + color: #a7f3d0; + font-size: 13px; + line-height: 1.4; +} + +.joint-form { + display: grid; + grid-template-columns: minmax(0, 1fr); + gap: 8px; +} + +.joint-form input, +.joint-form select { + width: 100%; +} + +#joint-status { + margin: 10px 0 0; + min-height: 18px; + color: #a7f3d0; + font-size: 13px; + line-height: 1.4; +} + +dl { + display: grid; + grid-template-columns: minmax(104px, 0.9fr) minmax(0, 1.1fr); + gap: 8px 12px; + margin: 0; + font-size: 13px; +} + +dt { + color: #94a3b8; +} + +dd { + margin: 0; + min-width: 0; + overflow-wrap: anywhere; + color: #f8fafc; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + text-align: right; +} + +#status, +#state-status, +.note p { + margin: 0; + color: #b6c3d2; + font-size: 13px; + line-height: 1.45; +} + +#state-status { + margin-top: 8px; + color: #86efac; +} + +.viewport { + position: relative; + min-width: 0; + min-height: 0; + background: #0b1020; +} + +#preview { + width: 100%; + height: 100%; +} + +.preview-canvas { + display: block; + width: 100%; + height: 100%; + touch-action: none; +} + +.preview-canvas.draggable-hover { + cursor: grab; +} + +.preview-canvas.dragging { + cursor: grabbing; +} + +.overlay { + position: absolute; + left: 18px; + top: 78px; + display: inline-flex; + align-items: center; + gap: 10px; + padding: 8px 10px; + color: #dbeafe; + background: rgba(15, 23, 42, 0.72); + border: 1px solid rgba(148, 163, 184, 0.26); + border-radius: 8px; + font-size: 13px; + backdrop-filter: blur(8px); +} + +.drag-hint { + color: #7dd3fc; + font-size: 12px; + white-space: nowrap; +} + +.hover-target { + margin-left: 4px; + padding: 2px 6px; + color: #f1f5f9; + border-radius: 6px; + border: 1px solid rgba(148, 163, 184, 0.36); + background: rgba(15, 23, 42, 0.5); + font-size: 11px; + white-space: nowrap; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; +} + +.viewport-topbar { + position: absolute; + left: 18px; + right: 18px; + top: 18px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + min-height: 44px; + padding: 8px 10px; + color: #e5edf7; + background: rgba(15, 23, 42, 0.78); + border: 1px solid rgba(148, 163, 184, 0.26); + border-radius: 8px; + backdrop-filter: blur(8px); +} + +.viewport-topbar > div:first-child { + display: grid; + gap: 2px; + min-width: 0; +} + +.viewport-topbar strong, +.viewport-topbar span { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.viewport-topbar strong { + font-size: 13px; +} + +.viewport-topbar span { + color: #a9b8ca; + font-size: 12px; +} + +.sim-source { + display: inline-flex; + align-items: center; + width: fit-content; + margin-top: 2px; + padding: 1px 8px; + border-radius: 999px; + color: #7dd3fc; + background: rgba(56, 189, 248, 0.16); + border: 1px solid rgba(56, 189, 248, 0.45); + font-size: 11px; +} + +.viewport-actions { + display: inline-flex; + gap: 8px; + flex: 0 0 auto; +} + +.viewport-actions button { + height: 30px; + padding: 0 10px; + background: #dbeafe; + font-size: 12px; +} + +.viewport-controls { + position: absolute; + left: 18px; + bottom: 18px; + display: inline-grid; + grid-template-columns: auto repeat(4, auto); + align-items: center; + gap: 8px; + max-width: calc(100% - 36px); + padding: 8px; + color: #dbeafe; + background: rgba(15, 23, 42, 0.78); + border: 1px solid rgba(148, 163, 184, 0.26); + border-radius: 8px; + backdrop-filter: blur(8px); +} + +.viewport-controls span { + min-width: 58px; + color: #a7f3d0; + font-size: 12px; + font-weight: 800; + text-align: center; +} + +.viewport-controls button { + height: 30px; + padding: 0 10px; + background: #dbeafe; + font-size: 12px; +} + +.health-list, +.scene-outline, +#property-inspector { + display: grid; + gap: 8px; +} + +.project-panel dd { + font-size: 12px; +} + +.acceptance-panel { + background: rgba(6, 78, 59, 0.24); + border-color: rgba(45, 212, 191, 0.24); +} + +.acceptance-verdict { + display: grid; + gap: 6px; + min-height: 58px; + padding: 10px; + background: rgba(2, 6, 23, 0.46); + border: 1px solid rgba(148, 163, 184, 0.18); + border-radius: 6px; +} + +.acceptance-verdict strong { + color: #e5edf7; + font-size: 17px; + line-height: 1.2; +} + +.acceptance-verdict strong.pass { + color: #86efac; +} + +.acceptance-verdict strong.warn { + color: #fde68a; +} + +.acceptance-verdict strong.fail { + color: #fda4af; +} + +.acceptance-verdict span { + color: #94a3b8; + font-size: 12px; + line-height: 1.35; +} + +.acceptance-checks { + display: grid; + gap: 8px; + margin-top: 10px; +} + +.acceptance-case-title { + margin: 12px 0 8px; + color: #cbd5e1; + font-size: 12px; + font-weight: 800; +} + +.acceptance-cases { + display: grid; + gap: 8px; +} + +.acceptance-check { + display: grid; + grid-template-columns: 10px minmax(0, 1fr); + gap: 8px; + min-height: 46px; + padding: 8px; + background: rgba(15, 23, 42, 0.54); + border: 1px solid rgba(148, 163, 184, 0.16); + border-radius: 6px; +} + +.acceptance-check > span { + width: 9px; + height: 9px; + margin-top: 4px; + border-radius: 999px; +} + +.acceptance-check.pass > span { + background: #22c55e; + box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); +} + +.acceptance-check.warn > span { + background: #f59e0b; + box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14); +} + +.acceptance-check.fail > span { + background: #f43f5e; + box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14); +} + +.acceptance-check strong, +.acceptance-check small { + display: block; + min-width: 0; + overflow-wrap: anywhere; +} + +.acceptance-check strong { + color: #dbeafe; + font-size: 12px; +} + +.acceptance-check small { + margin-top: 3px; + color: #94a3b8; + font-size: 11px; + line-height: 1.35; +} + +.acceptance-case { + display: grid; + gap: 6px; + min-height: 58px; + padding: 9px; + background: rgba(15, 23, 42, 0.42); + border: 1px solid rgba(148, 163, 184, 0.16); + border-left-width: 3px; + border-radius: 6px; +} + +.acceptance-case.pass { + border-left-color: #22c55e; +} + +.acceptance-case.warn { + border-left-color: #f59e0b; +} + +.acceptance-case.fail { + border-left-color: #f43f5e; +} + +.acceptance-case strong, +.acceptance-case small, +.acceptance-case p { + min-width: 0; + overflow-wrap: anywhere; +} + +.acceptance-case strong { + color: #e5edf7; + font-size: 12px; +} + +.acceptance-case small { + display: block; + margin-top: 3px; + color: #94a3b8; + font-size: 11px; + line-height: 1.35; +} + +.acceptance-case p { + margin: 0; + color: #cbd5e1; + font-size: 11px; + line-height: 1.35; +} + +#acceptance-status { + margin: 10px 0 0; + min-height: 18px; + color: #a7f3d0; + font-size: 13px; + line-height: 1.4; +} + +.saved-project-panel input { + width: 100%; +} + +.saved-project-list { + display: grid; + gap: 8px; + margin-top: 10px; +} + +.saved-project-row { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 8px; + min-height: 50px; + padding: 8px; + background: rgba(30, 41, 59, 0.55); + border: 1px solid rgba(148, 163, 184, 0.16); + border-radius: 6px; +} + +.saved-project-row strong, +.saved-project-row small { + display: block; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.saved-project-row small { + margin-top: 4px; + color: #94a3b8; + font-size: 11px; +} + +.saved-project-actions { + display: inline-grid; + grid-template-columns: auto auto; + gap: 6px; +} + +.saved-project-actions button { + height: 26px; + padding: 0 8px; + background: #dbeafe; + font-size: 12px; +} + +.health-item { + display: grid; + grid-template-columns: 10px minmax(0, 1fr); + align-items: center; + gap: 8px; + min-height: 30px; + color: #dbeafe; + font-size: 13px; +} + +.health-item span { + width: 9px; + height: 9px; + border-radius: 999px; +} + +.health-item.ok span { + background: #22c55e; + box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16); +} + +.health-item.warn span { + background: #f59e0b; + box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16); +} + +.activity-list { + display: grid; + gap: 7px; +} + +.activity-item { + display: grid; + grid-template-columns: 68px minmax(0, 1fr); + align-items: start; + gap: 8px; + min-height: 32px; + padding: 8px; + color: #dbeafe; + background: rgba(30, 41, 59, 0.55); + border: 1px solid rgba(148, 163, 184, 0.16); + border-left-width: 3px; + border-radius: 6px; + font-size: 12px; + line-height: 1.35; +} + +.activity-item.info { + border-left-color: #38bdf8; +} + +.activity-item.ok { + border-left-color: #22c55e; +} + +.activity-item.warn { + border-left-color: #f59e0b; +} + +.activity-item time { + color: #94a3b8; + font-variant-numeric: tabular-nums; +} + +.activity-item span { + min-width: 0; + overflow-wrap: anywhere; +} + +.outline-static, +.outline-row { + display: grid; + grid-template-columns: minmax(62px, 0.7fr) minmax(0, 1.3fr); + align-items: center; + gap: 8px; + min-height: 34px; + padding: 7px 8px; + color: #dbeafe; + background: rgba(30, 41, 59, 0.55); + border: 1px solid rgba(148, 163, 184, 0.16); + border-radius: 6px; + font-size: 12px; +} + +.outline-static span, +.outline-row span, +.outline-row small, +.inspector-heading span, +.inspector-heading small { + color: #94a3b8; +} + +.outline-static strong, +.outline-row strong { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.outline-row { + grid-template-columns: 24px minmax(0, 1fr); + height: auto; + padding: 7px 8px; + text-align: left; +} + +.outline-row small { + grid-column: 2; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.outline-row.selected { + border-color: rgba(250, 204, 21, 0.72); + background: rgba(63, 52, 20, 0.58); +} + +.outline-divider { + height: 1px; + background: rgba(148, 163, 184, 0.18); +} + +.inspector-heading { + display: grid; + gap: 5px; + padding: 10px; + background: rgba(8, 47, 73, 0.34); + border: 1px solid rgba(125, 211, 252, 0.2); + border-radius: 6px; +} + +.inspector-heading strong, +.inspector-heading small { + min-width: 0; + overflow-wrap: anywhere; +} + +.inspector-position { + display: grid; + grid-template-columns: 1fr; + gap: 8px; +} + +.inspector-position label { + display: grid; + grid-template-columns: 24px minmax(0, 1fr); + align-items: center; + gap: 8px; + margin: 0; +} + +.workflow-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +} + +.workflow-grid button, +.wide-action { + height: 34px; + padding: 0 10px; + background: #dbeafe; + font-size: 12px; +} + +.wide-action { + width: 100%; + margin-top: 8px; +} + +#workflow-report-text { + display: block; + width: 100%; + min-height: 132px; + margin-top: 8px; + padding: 10px; + resize: vertical; + color: #dbeafe; + background: #0b1220; + border: 1px solid rgba(148, 163, 184, 0.28); + border-radius: 6px; + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 12px; + line-height: 1.45; +} + +#workflow-status { + margin: 10px 0 0; + min-height: 18px; + color: #a7f3d0; + font-size: 13px; + line-height: 1.4; +} + +#project-status { + margin: 10px 0 0; + min-height: 18px; + color: #a7f3d0; + font-size: 13px; + line-height: 1.4; +} + +.live-dot { + width: 9px; + height: 9px; + border-radius: 999px; + background: #22c55e; + box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); +} + +@media (max-width: 820px) { + body { + overflow: auto; + } + + .shell { + grid-template-columns: 1fr; + grid-template-rows: auto minmax(520px, 1fr) auto; + min-height: 100vh; + height: auto; + } + + .sidebar, + .inspector { + max-height: none; + } + + .inspector { + border-left: 0; + border-top: 1px solid rgba(148, 163, 184, 0.18); + } + + .viewport-topbar { + align-items: stretch; + flex-direction: column; + } + + .overlay { + top: 116px; + } + + .viewport-controls { + grid-template-columns: auto auto auto; + right: 18px; + } +} diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..9cb2e7a --- /dev/null +++ b/src/types.ts @@ -0,0 +1,195 @@ +export type AxisUp = "Y" | "Z"; +export type Handedness = "right" | "left"; + +export interface CoordinateSystem { + up: AxisUp; + handedness?: Handedness; +} + +export type Vec3 = [number, number, number]; +export type Quat = [number, number, number, number]; + +export interface Pose { + position?: Vec3; + quaternion?: Quat; + euler?: Vec3; + scale?: Vec3; +} + +export interface PreviewMaterial { + id: string; + color?: string; + opacity?: number; + roughness?: number; + metalness?: number; + wireframe?: boolean; + textureUrl?: string; + textureKind?: "checker"; + textureColors?: [string, string]; + textureRepeat?: [number, number]; +} + +export type PrimitiveKind = "box" | "sphere" | "capsule" | "cylinder" | "plane" | "axes"; +export type MeshFormat = "gltf" | "glb" | "obj" | "stl"; + +export interface PrimitiveGeometry { + kind: "primitive"; + primitive: PrimitiveKind; + size?: Vec3; + radius?: number; + length?: number; + segments?: number; +} + +export interface MeshGeometry { + kind: "mesh"; + url: string; + format?: MeshFormat; + materialOverride?: string; +} + +export interface ConvexMeshGeometry { + kind: "convexMesh"; + vertices: number[]; + faces?: number[]; +} + +export type PreviewGeometry = PrimitiveGeometry | MeshGeometry | ConvexMeshGeometry; + +export interface PreviewObject { + id: string; + name?: string; + body?: string; + parent?: string; + geometry: PreviewGeometry; + pose?: Pose; + material?: string; + visible?: boolean; + castShadow?: boolean; + receiveShadow?: boolean; +} + +export interface PreviewLight { + type: "ambient" | "directional" | "hemisphere"; + color?: string; + intensity?: number; + position?: Vec3; +} + +export interface PreviewCamera { + position?: Vec3; + target?: Vec3; + fov?: number; + near?: number; + far?: number; +} + +export interface PreviewStateSource { + mode: "replay" | "poll" | "websocket" | "none"; + url?: string; + controlUrl?: string; + fps?: number; + loop?: boolean; + pollIntervalMs?: number; +} + +export interface JointControlSpec { + name: string; + index?: number; + range?: [number, number]; + value?: number; +} + +export interface ActuatorControlSpec { + name: string; + index?: number; + range?: [number, number]; + targetName?: string; + value?: number; +} + +export interface KeyboardControlSpec { + source?: string; + command?: { + forward?: string[]; + backward?: string[]; + strafeLeft?: string[]; + strafeRight?: string[]; + yawLeft?: string[]; + yawRight?: string[]; + }; + camera?: { + rotate?: string; + pan?: string; + zoom?: string; + focusMarker?: boolean; + }; +} + +export interface PreviewControls { + joints?: JointControlSpec[]; + actuators?: ActuatorControlSpec[]; + keyboard?: KeyboardControlSpec; +} + +export interface SceneCompositeInfo { + type?: string; + sources?: string[]; + storeObjects?: number; + visualObjects?: number; + note?: string; +} + +export interface SceneManifest { + version: string; + name: string; + description?: string; + units?: "m" | "cm" | "mm"; + coordinateSystem?: CoordinateSystem; + materials?: PreviewMaterial[]; + objects: PreviewObject[]; + lights?: PreviewLight[]; + camera?: PreviewCamera; + state?: PreviewStateSource; + controls?: PreviewControls; + composite?: SceneCompositeInfo; +} + +export interface BodyState { + pos?: Vec3; + quat?: Quat; + qpos?: number[]; + joints?: Record; +} + +export interface PreviewFrame { + step?: number; + time?: number; + server_time?: number; + paused?: boolean; + running?: boolean; + link_names?: string[]; + joint_names?: string[]; + joints?: Record; + actuators?: Record; + command?: [number, number, number]; + bodies?: Record; +} + +export interface ReplayStateFile { + frames: PreviewFrame[]; +} + +export interface RendererStats { + manifestName: string; + objectCount: number; + bodyBoundObjectCount: number; + loadedMeshCount: number; + fallbackCount: number; + frameCount: number; + lastStep?: number; + lastBodyCount: number; + paused?: boolean; + running?: boolean; + nonBackgroundPixelSamples?: number; +} diff --git a/src/utils/coordinates.ts b/src/utils/coordinates.ts new file mode 100644 index 0000000..ba586d7 --- /dev/null +++ b/src/utils/coordinates.ts @@ -0,0 +1,87 @@ +import * as THREE from "three"; +import type { CoordinateSystem, Pose, Quat, Vec3 } from "../types"; + +const Z_UP_TO_Y_UP = new THREE.Matrix4().set( + 1, 0, 0, 0, + 0, 0, 1, 0, + 0, -1, 0, 0, + 0, 0, 0, 1, +); +const Y_UP_IDENTITY = new THREE.Matrix4(); +const TMP_SOURCE_Q = new THREE.Quaternion(); +const TMP_SOURCE_M = new THREE.Matrix4(); +const TMP_TARGET_M = new THREE.Matrix4(); + +export class CoordinateConverter { + private readonly matrix: THREE.Matrix4; + private readonly inverse: THREE.Matrix4; + readonly sourceUp: "Y" | "Z"; + + constructor(coordinateSystem?: CoordinateSystem) { + this.sourceUp = coordinateSystem?.up ?? "Y"; + this.matrix = this.sourceUp === "Z" ? Z_UP_TO_Y_UP.clone() : Y_UP_IDENTITY.clone(); + this.inverse = this.matrix.clone().invert(); + } + + position(input: Vec3 | undefined, fallback: Vec3 = [0, 0, 0]): THREE.Vector3 { + const [x, y, z] = input ?? fallback; + return new THREE.Vector3(x, y, z).applyMatrix4(this.matrix); + } + + sourcePosition(input: Vec3 | undefined, fallback: Vec3 = [0, 0, 0]): THREE.Vector3 { + const [x, y, z] = input ?? fallback; + return new THREE.Vector3(x, y, z).applyMatrix4(this.inverse); + } + + scale(input: Vec3 | undefined, fallback: Vec3 = [1, 1, 1]): THREE.Vector3 { + const [x, y, z] = input ?? fallback; + if (this.sourceUp === "Z") { + return new THREE.Vector3(x, z, y); + } + return new THREE.Vector3(x, y, z); + } + + quaternion(input?: Quat): THREE.Quaternion { + if (!input) { + return new THREE.Quaternion(); + } + TMP_SOURCE_Q.set(input[0], input[1], input[2], input[3]).normalize(); + TMP_SOURCE_M.makeRotationFromQuaternion(TMP_SOURCE_Q); + TMP_TARGET_M.multiplyMatrices(this.matrix, TMP_SOURCE_M).multiply(this.inverse); + return new THREE.Quaternion().setFromRotationMatrix(TMP_TARGET_M).normalize(); + } + + applyPose(target: THREE.Object3D, pose?: Pose): void { + if (!pose) { + return; + } + target.position.copy(this.position(pose.position)); + target.scale.copy(this.scale(pose.scale)); + if (pose.quaternion) { + target.quaternion.copy(this.quaternion(pose.quaternion)); + } else if (pose.euler) { + const [rx, ry, rz] = pose.euler; + const source = new THREE.Quaternion().setFromEuler(new THREE.Euler(rx, ry, rz, "XYZ")); + target.quaternion.copy(this.quaternion([source.x, source.y, source.z, source.w])); + } + } + + worldToSourcePosition(world: Vec3 | undefined, fallback: Vec3 = [0, 0, 0]): Vec3 { + const converted = this.sourcePosition(world, fallback); + return [converted.x, converted.y, converted.z]; + } + + primitiveSize(input: Vec3 | undefined, fallback: Vec3): Vec3 { + const [x, y, z] = input ?? fallback; + if (this.sourceUp === "Z") { + return [x, z, y]; + } + return [x, y, z]; + } + + applySourceBasis(target: THREE.Object3D): void { + if (this.sourceUp === "Z") { + target.applyMatrix4(this.matrix); + } + } +} diff --git a/tools/export_mjcf_manifest.py b/tools/export_mjcf_manifest.py new file mode 100644 index 0000000..a16f696 --- /dev/null +++ b/tools/export_mjcf_manifest.py @@ -0,0 +1,666 @@ +#!/usr/bin/env python3 +"""Export a small Three.js preview manifest from an MJCF-like XML scene. + +This is intentionally conservative: it maps visible geoms and mesh references +into the browser manifest without pretending to cover every simulator feature. +Unsupported data is preserved as names/ids where possible and visualized through +fallbacks on the frontend. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import math +import posixpath +import sys +import xml.etree.ElementTree as ET +from pathlib import Path +from typing import Any +from urllib.parse import quote, urlparse + + +INTERNAL_SOURCE_DIR = "__motrix_source_dir" +INTERNAL_MESH_DIR = "__motrix_mesh_dir" +INTERNAL_ASSET_DIR = "__motrix_asset_dir" +INTERNAL_TEXTURE_DIR = "__motrix_texture_dir" +INTERNAL_ANGLE_MODE = "__motrix_angle_mode" + + +def floats(raw: str | None, default: list[float]) -> list[float]: + if not raw: + return list(default) + try: + return [float(part) for part in raw.replace(",", " ").split()] + except ValueError: + return list(default) + + +def ints(raw: str | None, default: list[int]) -> list[int]: + if not raw: + return list(default) + try: + return [int(float(part)) for part in raw.replace(",", " ").split()] + except ValueError: + return list(default) + + +def rgba_to_hex(raw: str | None, fallback: str) -> tuple[str, float]: + values = floats(raw, []) + if len(values) < 3: + return fallback, 1.0 + rgb = [max(0, min(255, int(round(v * 255)))) for v in values[:3]] + alpha = values[3] if len(values) > 3 else 1.0 + return "#{:02x}{:02x}{:02x}".format(*rgb), max(0.0, min(1.0, alpha)) + + +def rgb_to_hex(raw: str | None, fallback: str) -> str: + color, _ = rgba_to_hex(raw, fallback) + return color + + +def float_attr(raw: str | None, fallback: float) -> float: + if raw is None: + return fallback + try: + return float(raw) + except ValueError: + return fallback + + +def infer_mesh_format(path: str) -> str | None: + suffix = Path(path).suffix.lower() + return { + ".gltf": "gltf", + ".glb": "glb", + ".obj": "obj", + ".stl": "stl", + }.get(suffix) + + +def normalize_quat_xyzw(quat: list[float]) -> list[float]: + length = math.sqrt(sum(v * v for v in quat)) + if length <= 1e-12: + return [0.0, 0.0, 0.0, 1.0] + return [v / length for v in quat] + + +def normalize_vec(vec: list[float]) -> list[float]: + length = math.sqrt(sum(v * v for v in vec)) + if length <= 1e-12: + return [0.0, 0.0, 0.0] + return [v / length for v in vec] + + +def dot(a: list[float], b: list[float]) -> float: + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + + +def cross(a: list[float], b: list[float]) -> list[float]: + return [ + a[1] * b[2] - a[2] * b[1], + a[2] * b[0] - a[0] * b[2], + a[0] * b[1] - a[1] * b[0], + ] + + +def angle_to_radians(value: float, attrs: dict[str, str]) -> float: + if attrs.get(INTERNAL_ANGLE_MODE, "degree") == "radian": + return value + return math.radians(value) + + +def mjcf_quat(raw: str | None) -> list[float]: + values = floats(raw, []) + if len(values) < 4: + return [0.0, 0.0, 0.0, 1.0] + # MJCF XML stores quaternions as w x y z. The browser manifest uses x y z w. + w, x, y, z = values[:4] + return normalize_quat_xyzw([x, y, z, w]) + + +def quat_mul(a: list[float], b: list[float]) -> list[float]: + ax, ay, az, aw = a + bx, by, bz, bw = b + return normalize_quat_xyzw([ + aw * bx + ax * bw + ay * bz - az * by, + aw * by - ax * bz + ay * bw + az * bx, + aw * bz + ax * by - ay * bx + az * bw, + aw * bw - ax * bx - ay * by - az * bz, + ]) + + +def quat_from_euler_xyz(raw: str | None) -> list[float]: + return quat_from_euler_xyz_with_attrs(raw, {}) + + +def quat_from_euler_xyz_with_attrs(raw: str | None, attrs: dict[str, str]) -> list[float]: + rx, ry, rz = [angle_to_radians(value, attrs) for value in floats(raw, [0, 0, 0])[:3]] + cx, sx = math.cos(rx / 2), math.sin(rx / 2) + cy, sy = math.cos(ry / 2), math.sin(ry / 2) + cz, sz = math.cos(rz / 2), math.sin(rz / 2) + return normalize_quat_xyzw([ + sx * cy * cz + cx * sy * sz, + cx * sy * cz - sx * cy * sz, + cx * cy * sz + sx * sy * cz, + cx * cy * cz - sx * sy * sz, + ]) + + +def quat_from_axis_angle(raw: str | None, attrs: dict[str, str]) -> list[float]: + values = floats(raw, []) + if len(values) < 4: + return [0.0, 0.0, 0.0, 1.0] + axis = normalize_vec(values[:3]) + angle = angle_to_radians(values[3], attrs) + half = angle / 2 + sin_half = math.sin(half) + return normalize_quat_xyzw([axis[0] * sin_half, axis[1] * sin_half, axis[2] * sin_half, math.cos(half)]) + + +def quat_from_unit_vectors(source: list[float], target: list[float]) -> list[float]: + source_n = normalize_vec(source) + target_n = normalize_vec(target) + d = dot(source_n, target_n) + if d < -0.999999: + axis = cross([1.0, 0.0, 0.0], source_n) + if dot(axis, axis) < 1e-10: + axis = cross([0.0, 1.0, 0.0], source_n) + axis = normalize_vec(axis) + return [axis[0], axis[1], axis[2], 0.0] + axis = cross(source_n, target_n) + return normalize_quat_xyzw([axis[0], axis[1], axis[2], 1.0 + d]) + + +def quat_from_matrix_columns(x_axis: list[float], y_axis: list[float], z_axis: list[float]) -> list[float]: + m00, m01, m02 = x_axis[0], y_axis[0], z_axis[0] + m10, m11, m12 = x_axis[1], y_axis[1], z_axis[1] + m20, m21, m22 = x_axis[2], y_axis[2], z_axis[2] + trace = m00 + m11 + m22 + if trace > 0: + s = math.sqrt(trace + 1.0) * 2 + return normalize_quat_xyzw([ + (m21 - m12) / s, + (m02 - m20) / s, + (m10 - m01) / s, + 0.25 * s, + ]) + if m00 > m11 and m00 > m22: + s = math.sqrt(1.0 + m00 - m11 - m22) * 2 + return normalize_quat_xyzw([ + 0.25 * s, + (m01 + m10) / s, + (m02 + m20) / s, + (m21 - m12) / s, + ]) + if m11 > m22: + s = math.sqrt(1.0 + m11 - m00 - m22) * 2 + return normalize_quat_xyzw([ + (m01 + m10) / s, + 0.25 * s, + (m12 + m21) / s, + (m02 - m20) / s, + ]) + s = math.sqrt(1.0 + m22 - m00 - m11) * 2 + return normalize_quat_xyzw([ + (m02 + m20) / s, + (m12 + m21) / s, + 0.25 * s, + (m10 - m01) / s, + ]) + + +def quat_from_xyaxes(raw: str | None) -> list[float]: + values = floats(raw, []) + if len(values) < 6: + return [0.0, 0.0, 0.0, 1.0] + x_axis = normalize_vec(values[:3]) + y_raw = normalize_vec(values[3:6]) + z_axis = normalize_vec(cross(x_axis, y_raw)) + y_axis = normalize_vec(cross(z_axis, x_axis)) + return quat_from_matrix_columns(x_axis, y_axis, z_axis) + + +def quat_from_zaxis(raw: str | None) -> list[float]: + values = floats(raw, []) + if len(values) < 3: + return [0.0, 0.0, 0.0, 1.0] + return quat_from_unit_vectors([0.0, 0.0, 1.0], values[:3]) + + +def orientation_quat(attrs: dict[str, str]) -> list[float]: + if attrs.get("quat"): + return mjcf_quat(attrs.get("quat")) + if attrs.get("euler"): + return quat_from_euler_xyz_with_attrs(attrs.get("euler"), attrs) + if attrs.get("axisangle"): + return quat_from_axis_angle(attrs.get("axisangle"), attrs) + if attrs.get("xyaxes"): + return quat_from_xyaxes(attrs.get("xyaxes")) + if attrs.get("zaxis"): + return quat_from_zaxis(attrs.get("zaxis")) + return [0.0, 0.0, 0.0, 1.0] + + +def rotate_vec(quat: list[float], vec: list[float]) -> list[float]: + x, y, z = vec + qx, qy, qz, qw = quat + # q * v * q^-1, expanded to avoid a dependency in the exporter. + tx = 2 * (qy * z - qz * y) + ty = 2 * (qz * x - qx * z) + tz = 2 * (qx * y - qy * x) + return [ + x + qw * tx + (qy * tz - qz * ty), + y + qw * ty + (qz * tx - qx * tz), + z + qw * tz + (qx * ty - qy * tx), + ] + + +def compose_pose( + parent_position: list[float], + parent_quat: list[float], + local_position: list[float], + local_quat: list[float], +) -> tuple[list[float], list[float]]: + rotated = rotate_vec(parent_quat, local_position) + return ( + [parent_position[0] + rotated[0], parent_position[1] + rotated[1], parent_position[2] + rotated[2]], + quat_mul(parent_quat, local_quat), + ) + + +def annotate_document(root: ET.Element, source_path: Path) -> None: + compiler = root.find("compiler") + mesh_dir = compiler.get("meshdir") if compiler is not None else None + asset_dir = compiler.get("assetdir") if compiler is not None else None + texture_dir = compiler.get("texturedir") if compiler is not None else None + angle_mode = compiler.get("angle", "degree") if compiler is not None else "degree" + source_dir = source_path.parent.resolve().as_posix() + for element in root.iter(): + element.set(INTERNAL_SOURCE_DIR, source_dir) + if mesh_dir: + element.set(INTERNAL_MESH_DIR, mesh_dir) + if asset_dir: + element.set(INTERNAL_ASSET_DIR, asset_dir) + if texture_dir: + element.set(INTERNAL_TEXTURE_DIR, texture_dir) + element.set(INTERNAL_ANGLE_MODE, angle_mode) + + +def load_xml_with_includes(scene_path: Path) -> ET.Element: + def parse(path: Path, stack: tuple[Path, ...]) -> ET.Element: + resolved = path.resolve() + if resolved in stack: + cycle = " -> ".join(p.as_posix() for p in (*stack, resolved)) + raise ValueError(f"cyclic MJCF include detected: {cycle}") + root = ET.parse(resolved).getroot() + annotate_document(root, resolved) + expand_includes(root, resolved.parent, (*stack, resolved)) + return root + + def expand_includes(element: ET.Element, base_dir: Path, stack: tuple[Path, ...]) -> None: + expanded: list[ET.Element] = [] + for child in list(element): + if child.tag == "include": + include_file = child.get("file") + if not include_file: + continue + included_root = parse((base_dir / include_file).resolve(), stack) + expanded.extend(list(included_root)) + continue + child_source = child.get(INTERNAL_SOURCE_DIR) + child_base = Path(child_source) if child_source else base_dir + expand_includes(child, child_base, stack) + expanded.append(child) + element[:] = expanded + + return parse(scene_path, ()) + + +def public_attrs(element: ET.Element) -> dict[str, str]: + return { + key: value + for key, value in element.attrib.items() + if not key.startswith("__motrix_") + } + + +def default_geom_attrs(root: ET.Element) -> dict[str, dict[str, str]]: + defaults: dict[str, dict[str, str]] = {} + + def walk(default: ET.Element, inherited_geom: dict[str, str]) -> None: + current_geom = dict(inherited_geom) + geom = default.find("geom") + if geom is not None: + current_geom.update(public_attrs(geom)) + class_name = default.get("class") + if class_name and current_geom: + defaults[class_name] = dict(current_geom) + for child in default.findall("default"): + walk(child, current_geom) + + for default in root.findall("default"): + walk(default, {}) + return defaults + + +def apply_default_attrs(element: ET.Element, defaults: dict[str, dict[str, str]]) -> dict[str, str]: + attrs: dict[str, str] = {} + class_name = element.get("class") + if class_name: + attrs.update(defaults.get(class_name, {})) + attrs.update(public_attrs(element)) + attrs[INTERNAL_ANGLE_MODE] = element.get(INTERNAL_ANGLE_MODE, "degree") + return attrs + + +def is_collision_geom(attrs: dict[str, str]) -> bool: + class_name = (attrs.get("class") or "").lower() + if "collision" in class_name: + return True + return attrs.get("group") == "3" + + +def asset_url_for(asset_path: Path, scene_dir: Path, asset_base: str) -> str: + resolved = asset_path.resolve() + try: + rel = resolved.relative_to(scene_dir.resolve()).as_posix() + except ValueError: + digest = hashlib.sha1(resolved.as_posix().encode("utf-8")).hexdigest()[:10] + rel = posixpath.join("_external", f"{digest}_{resolved.name}") + encoded = "/".join(quote(part) for part in rel.split("/")) + return posixpath.join(asset_base.rstrip("/"), encoded) + + +def asset_mapping_key(url: str) -> str: + parsed = urlparse(url) + return parsed.path if parsed.scheme else url + + +def fromto_pose(raw: str | None) -> tuple[list[float], list[float], float] | None: + values = floats(raw, []) + if len(values) < 6: + return None + start = values[:3] + end = values[3:6] + delta = [end[0] - start[0], end[1] - start[1], end[2] - start[2]] + length = math.sqrt(dot(delta, delta)) + if length <= 1e-12: + return None + midpoint = [(start[0] + end[0]) / 2, (start[1] + end[1]) / 2, (start[2] + end[2]) / 2] + quat = quat_from_unit_vectors([0.0, 0.0, 1.0], delta) + return midpoint, quat, length + + +def resolve_asset_file(element: ET.Element, file_name: str, scene_path: Path, kind: str) -> Path: + source_dir = Path(element.get(INTERNAL_SOURCE_DIR, scene_path.parent.as_posix())) + if Path(file_name).is_absolute(): + return Path(file_name) + if kind == "texture": + subdir = element.get(INTERNAL_TEXTURE_DIR) or element.get(INTERNAL_ASSET_DIR) + else: + subdir = element.get(INTERNAL_MESH_DIR) or element.get(INTERNAL_ASSET_DIR) + if subdir: + return source_dir / subdir / file_name + return source_dir / file_name + + +def geom_to_geometry(attrs: dict[str, str], meshes: dict[str, dict[str, Any]]) -> dict[str, Any]: + geom_type = attrs.get("type") + size = floats(attrs.get("size"), []) + mesh_name = attrs.get("mesh") + if mesh_name and mesh_name in meshes: + mesh = meshes[mesh_name] + if mesh.get("url"): + url = mesh["url"] + geometry: dict[str, Any] = {"kind": "mesh", "url": url} + fmt = infer_mesh_format(url) + if fmt: + geometry["format"] = fmt + else: + geometry = {"kind": "convexMesh", "vertices": mesh.get("vertices", [])} + if mesh.get("faces"): + geometry["faces"] = mesh["faces"] + return geometry + + fromto = fromto_pose(attrs.get("fromto")) + fromto_length = fromto[2] if fromto else None + if not geom_type and fromto_length is not None: + geom_type = "capsule" + + if geom_type == "sphere": + return {"kind": "primitive", "primitive": "sphere", "radius": size[0] if size else 0.25} + if geom_type == "capsule": + return { + "kind": "primitive", + "primitive": "capsule", + "radius": size[0] if size else 0.1, + "length": fromto_length if fromto_length is not None else 2 * (size[1] if len(size) > 1 else 0.5), + } + if geom_type == "cylinder": + return { + "kind": "primitive", + "primitive": "cylinder", + "radius": size[0] if size else 0.1, + "length": fromto_length if fromto_length is not None else 2 * (size[1] if len(size) > 1 else 0.5), + } + if geom_type == "plane": + sx = size[0] if size else 4 + sy = size[1] if len(size) > 1 else sx + return {"kind": "primitive", "primitive": "plane", "size": [2 * sx, 0, 2 * sy]} + + # MJCF box size is half extent. + if geom_type == "box" or size: + if len(size) >= 3: + return {"kind": "primitive", "primitive": "box", "size": [2 * size[0], 2 * size[1], 2 * size[2]]} + if len(size) == 1: + return {"kind": "primitive", "primitive": "sphere", "radius": size[0]} + + return {"kind": "primitive", "primitive": "box", "size": [0.3, 0.3, 0.3]} + + +def body_name(body: ET.Element, path: str, index: int) -> str: + return body.get("name") or f"{path}/body_{index}".strip("/") + + +def collect_manifest(scene_path: Path, asset_base: str) -> dict[str, Any]: + scene_path = scene_path.resolve() + root = load_xml_with_includes(scene_path) + defaults = default_geom_attrs(root) + + material_by_id: dict[str, dict[str, Any]] = { + "default": {"id": "default", "color": "#93c5fd", "roughness": 0.65}, + "fallback": {"id": "fallback", "color": "#fb7185", "wireframe": True}, + } + meshes: dict[str, dict[str, Any]] = {} + textures: dict[str, dict[str, Any]] = {} + asset_files: dict[str, str] = {} + + for asset in root.findall("asset"): + for texture in asset.findall("texture"): + name = texture.get("name") + if not name or texture.get("type") == "skybox": + continue + file_name = texture.get("file") + if file_name: + file_path = resolve_asset_file(texture, file_name, scene_path, "texture") + url = asset_url_for(file_path, scene_path.parent, asset_base) + textures[name] = {"url": url} + asset_files[asset_mapping_key(url)] = file_path.resolve().as_posix() + elif texture.get("builtin") == "checker": + textures[name] = { + "kind": "checker", + "colors": [ + rgb_to_hex(texture.get("rgb1"), "#718096"), + rgb_to_hex(texture.get("rgb2"), "#e5e7eb"), + ], + } + for material in asset.findall("material"): + mid = material.get("name") + if not mid: + continue + texture_name = material.get("texture") + if not texture_name: + for layer in material.findall("layer"): + if layer.get("role", "rgb") == "rgb" and layer.get("texture"): + texture_name = layer.get("texture") + break + color, opacity = rgba_to_hex(material.get("rgba"), "#ffffff" if texture_name else "#93c5fd") + spec: dict[str, Any] = { + "id": mid, + "color": color, + "opacity": opacity, + "roughness": float_attr(material.get("roughness"), 0.7), + "metalness": float_attr(material.get("metallic") or material.get("metalness"), 0.0), + } + if texture_name and texture_name in textures: + texture_spec = textures[texture_name] + if texture_spec.get("url"): + spec["textureUrl"] = texture_spec["url"] + elif texture_spec.get("kind") == "checker": + spec["textureKind"] = "checker" + spec["textureColors"] = texture_spec["colors"] + repeat = floats(material.get("texrepeat"), [1, 1]) + spec["textureRepeat"] = [repeat[0], repeat[1] if len(repeat) > 1 else repeat[0]] + material_by_id[mid] = spec + for mesh in asset.findall("mesh"): + file_name = mesh.get("file") + name = mesh.get("name") or (Path(file_name).stem if file_name else None) + if not name: + continue + scale = floats(mesh.get("scale"), [1, 1, 1]) + scale = [scale[0], scale[1] if len(scale) > 1 else scale[0], scale[2] if len(scale) > 2 else scale[0]] + if file_name: + file_path = resolve_asset_file(mesh, file_name, scene_path, "mesh") + url = asset_url_for(file_path, scene_path.parent, asset_base) + meshes[name] = {"url": url, "scale": scale} + asset_files[asset_mapping_key(url)] = file_path.resolve().as_posix() + + # OBJ files can reference sidecar MTL/texture files. The previewer + # supplies its own material, but serving sidecars keeps this bridge + # useful for assets that embed auxiliary references. + if file_path.suffix.lower() == ".obj": + maybe_mtl = file_path.with_suffix(".mtl") + if maybe_mtl.exists(): + mtl_url = asset_url_for(maybe_mtl, scene_path.parent, asset_base) + asset_files[asset_mapping_key(mtl_url)] = maybe_mtl.resolve().as_posix() + elif mesh.get("vertex"): + meshes[name] = { + "vertices": floats(mesh.get("vertex"), []), + "faces": ints(mesh.get("face"), []), + "scale": scale, + } + + objects: list[dict[str, Any]] = [] + body_counter = 0 + geom_counter = 0 + + def walk_body(parent: ET.Element, path: str, parent_position: list[float], parent_quat: list[float]) -> None: + nonlocal body_counter, geom_counter + for geom in parent.findall("geom"): + attrs = apply_default_attrs(geom, defaults) + if is_collision_geom(attrs): + continue + geom_counter += 1 + gid = attrs.get("name") or f"geom_{geom_counter}" + material = attrs.get("material") or "default" + if attrs.get("rgba") and material == "default": + material = f"{gid}_rgba" + color, opacity = rgba_to_hex(attrs.get("rgba"), "#93c5fd") + material_by_id[material] = {"id": material, "color": color, "opacity": opacity, "roughness": 0.7} + local_position = floats(attrs.get("pos"), [0, 0, 0]) + local_quat = orientation_quat(attrs) + fromto = fromto_pose(attrs.get("fromto")) + if fromto: + local_position, local_quat, _ = fromto + if path: + geom_position, geom_quat = local_position, local_quat + else: + geom_position, geom_quat = compose_pose( + parent_position, + parent_quat, + local_position, + local_quat, + ) + + pose: dict[str, Any] = { + "position": geom_position, + "quaternion": geom_quat, + } + mesh_name = attrs.get("mesh") + if mesh_name and mesh_name in meshes: + mesh_scale = meshes[mesh_name].get("scale") + if mesh_scale and mesh_scale != [1, 1, 1]: + pose["scale"] = mesh_scale + + obj: dict[str, Any] = { + "id": gid, + "name": gid, + "geometry": geom_to_geometry(attrs, meshes), + "material": material, + "pose": pose, + "castShadow": True, + "receiveShadow": True, + } + if path: + obj["body"] = path + objects.append(obj) + + for child in parent.findall("body"): + body_counter += 1 + name = body_name(child, path, body_counter) + child_position, child_quat = compose_pose( + parent_position, + parent_quat, + floats(child.get("pos"), [0, 0, 0]), + orientation_quat(child.attrib), + ) + walk_body(child, name, child_position, child_quat) + + for worldbody in root.findall("worldbody"): + walk_body(worldbody, "", [0, 0, 0], [0, 0, 0, 1]) + + if not objects: + objects.append({ + "id": "empty_scene_marker", + "geometry": {"kind": "primitive", "primitive": "axes", "size": [1, 1, 1]}, + "pose": {"position": [0, 0, 0]}, + }) + + return { + "version": "0.1", + "name": scene_path.name, + "description": f"Generated from {scene_path.as_posix()}", + "units": "m", + "coordinateSystem": {"up": "Z", "handedness": "right"}, + "materials": list(material_by_id.values()), + "objects": objects, + "lights": [ + {"type": "hemisphere", "color": "#dbeafe", "intensity": 0.65}, + {"type": "directional", "color": "#ffffff", "intensity": 2.2, "position": [4, -5, 7]}, + ], + "camera": {"position": [5, -7, 4], "target": [0, 0, 1], "fov": 48}, + "state": {"mode": "poll", "url": "/state", "controlUrl": "/control", "pollIntervalMs": 50}, + "_assetFiles": asset_files, + } + + +def main() -> int: + parser = argparse.ArgumentParser() + parser.add_argument("scene", type=Path) + parser.add_argument("--asset-base", default="/assets") + parser.add_argument("--output", type=Path) + args = parser.parse_args() + + manifest = collect_manifest(args.scene, args.asset_base) + payload = json.dumps(manifest, ensure_ascii=False, indent=2) + if args.output: + args.output.write_text(payload + "\n", encoding="utf-8") + else: + sys.stdout.write(payload + "\n") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..785122d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true + }, + "include": ["src"], + "references": [] +} +