Bundle store shelf preview assets
1
.gitignore
vendored
@ -8,3 +8,4 @@ __pycache__/
|
||||
/tmp.json
|
||||
test-results/
|
||||
!test-results/.gitkeep
|
||||
asset-bundles/
|
||||
|
||||
BIN
public/generated/assets/C_Mesh_Bottle_600_A.stl
Normal file
5559
public/generated/assets/V_Bottle_350.obj
Normal file
BIN
public/generated/assets/V_Bottle_350.png
Normal file
|
After Width: | Height: | Size: 333 KiB |
6516
public/generated/assets/V_Bottle_360.obj
Normal file
BIN
public/generated/assets/V_Bottle_360.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
11461
public/generated/assets/V_Bottle_400.obj
Normal file
BIN
public/generated/assets/V_Bottle_400.png
Normal file
|
After Width: | Height: | Size: 271 KiB |
11635
public/generated/assets/V_Bottle_600.obj
Normal file
BIN
public/generated/assets/V_Bottle_600.png
Normal file
|
After Width: | Height: | Size: 290 KiB |
15895
public/generated/assets/V_Cans_N250.obj
Normal file
BIN
public/generated/assets/V_Cans_N250.png
Normal file
|
After Width: | Height: | Size: 290 KiB |
BIN
public/generated/assets/V_Cans_N250_orm.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
15894
public/generated/assets/V_Cans_N330.obj
Normal file
BIN
public/generated/assets/V_Cans_N330.png
Normal file
|
After Width: | Height: | Size: 437 KiB |
BIN
public/generated/assets/V_Cans_N330_orm.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
15900
public/generated/assets/V_Cans_N355.obj
Normal file
BIN
public/generated/assets/V_Cans_N355.png
Normal file
|
After Width: | Height: | Size: 376 KiB |
BIN
public/generated/assets/V_Cans_N355_orm.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
15899
public/generated/assets/V_Cans_N500.obj
Normal file
BIN
public/generated/assets/V_Cans_N500.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
public/generated/assets/V_Cans_N500_orm.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
15675
public/generated/assets/V_Cans_S250.obj
Normal file
BIN
public/generated/assets/V_Cans_S250.png
Normal file
|
After Width: | Height: | Size: 338 KiB |
BIN
public/generated/assets/V_Cans_S250_orm.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
15656
public/generated/assets/V_Cans_S330.obj
Normal file
BIN
public/generated/assets/V_Cans_S330.png
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
public/generated/assets/V_Cans_S330_orm.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
15655
public/generated/assets/V_Cans_S355.obj
Normal file
BIN
public/generated/assets/V_Cans_S355.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
public/generated/assets/V_Cans_S355_orm.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
30236
public/generated/assets/V_Shelf_Frame.obj
Normal file
2180
public/generated/assets/V_Shelf_Plat.obj
Normal file
1850
public/generated/assets/V_Tetra_250_F.obj
Normal file
BIN
public/generated/assets/V_Tetra_250_F.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
1854
public/generated/assets/V_Tetra_250_T.obj
Normal file
BIN
public/generated/assets/V_Tetra_250_T.png
Normal file
|
After Width: | Height: | Size: 115 KiB |
3678
public/generated/assets/V_Tetra_300.obj
Normal file
BIN
public/generated/assets/V_Tetra_300.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
3783
public/generated/assets/V_Tetra_500.obj
Normal file
BIN
public/generated/assets/V_Tetra_500.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
public/generated/assets/metal_painted_white_basecolor.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
public/generated/assets/metal_painted_white_normal.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
public/generated/assets/metal_painted_white_orm.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
15022
public/generated/store-shelves-full.web.manifest.json
Normal file
2901
public/generated/store-shelves-lite.web.manifest.json
Normal file
18
src/main.ts
@ -384,8 +384,8 @@ const SCENE_PRESETS: ScenePreset[] = [
|
||||
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: "store-lite", label: "Store shelves lite", labelKey: "preset.scene.storeLite", manifestUrl: "/generated/store-shelves-lite.web.manifest.json", storeProductLimit: 90 },
|
||||
{ id: "store-full", label: "Store shelves full", labelKey: "preset.scene.storeFull", manifestUrl: "/generated/store-shelves-full.web.manifest.json" },
|
||||
{ id: "franka-cube", label: "Franka + cube physics", labelKey: "preset.scene.frankaCube", manifestUrl: "http://127.0.0.1:18088/manifest", physical: true },
|
||||
];
|
||||
|
||||
@ -2760,12 +2760,13 @@ function runAcceptanceReview(): void {
|
||||
}
|
||||
|
||||
function backendLabel(): string {
|
||||
if (controlUrl) {
|
||||
return new URL(controlUrl).origin;
|
||||
}
|
||||
const sceneManifest = selectedScenePreset().manifestUrl;
|
||||
if (sceneManifest) {
|
||||
return new URL(sceneManifest).origin;
|
||||
const url = controlUrl ?? selectedScenePreset().manifestUrl;
|
||||
if (url) {
|
||||
try {
|
||||
return new URL(url, window.location.href).origin;
|
||||
} catch {
|
||||
return t("backend.frontendOnly");
|
||||
}
|
||||
}
|
||||
return t("backend.frontendOnly");
|
||||
}
|
||||
@ -4855,6 +4856,7 @@ setupUploadDropZone("#scene-upload-zone", (files) => {
|
||||
});
|
||||
document.querySelector<HTMLSelectElement>("#builder-scene")!.addEventListener("change", () => {
|
||||
const sceneId = document.querySelector<HTMLSelectElement>("#builder-scene")!.value;
|
||||
applyContextualRobotLabels(sceneId);
|
||||
builderRobotPose = defaultRobotPoseForScene(sceneId);
|
||||
builderPhysicsEnabled = defaultPhysicsEnabledForScene(sceneId);
|
||||
seedBuilderPropsForSelectedScene();
|
||||
|
||||