结论:完成 LinuxCNC kinematics WASM ABI 覆盖,并将 web-rtcp-5axis-sim-plan 的 RTCP frame/boundary adapter 接到 xyzac-trt kinematics SDK;Node、build、browser smoke 验证通过。
20 lines
479 B
JavaScript
20 lines
479 B
JavaScript
import { createSimulationStore } from "./state/store.js";
|
|
import { mountGmoccapyShell } from "./ui/gmoccapy-shell.js";
|
|
|
|
const app = document.querySelector("#app");
|
|
|
|
if (!app) {
|
|
throw new Error("Missing #app mount point");
|
|
}
|
|
|
|
const store = createSimulationStore();
|
|
const shell = mountGmoccapyShell(app, store);
|
|
|
|
window.webRtcp5AxisSimulation = {
|
|
getState: store.getState,
|
|
dispatch: store.dispatch,
|
|
getRegions: shell.getRegions,
|
|
};
|
|
|
|
store.dispatch({ type: "BOOT_READY" });
|