diff --git a/app/src/lib/components/Visualization.svelte b/app/src/lib/components/Visualization.svelte index a390c74..a1e838c 100644 --- a/app/src/lib/components/Visualization.svelte +++ b/app/src/lib/components/Visualization.svelte @@ -1,10 +1,8 @@ @@ -103,14 +112,12 @@ - +
{/if} diff --git a/app/src/routes/+layout.ts b/app/src/routes/+layout.ts index c3d9286..4734f10 100644 --- a/app/src/routes/+layout.ts +++ b/app/src/routes/+layout.ts @@ -1,7 +1,4 @@ -import { jointNames, model } from '$lib/stores'; -import { loadModelAsync } from '$lib/utilities/model-utilities'; - -export const prerender = true; +export const prerender = false; export const ssr = false; const registerFetchIntercept = async () => { @@ -14,20 +11,8 @@ const registerFetchIntercept = async () => { }; }; -const loadModelFiles = async () => { - const modelRes = await loadModelAsync('/spot_micro.urdf.xacro'); - if (modelRes.isOk()) { - const [urdf, JOINT_NAME] = modelRes.inner; - jointNames.set(JOINT_NAME); - model.set(urdf); - } else { - console.error(modelRes.inner, { exception: modelRes.exception }); - } -}; - -export const load = async ({ fetch }) => { +export const load = async () => { await registerFetchIntercept(); - await loadModelFiles(); const result = await fetch('/api/features'); const features = await result.json(); return {