Refactor Machine and TriggerConnector components: enhance event handling for machine points and streamline vehicle status sample initialization

This commit is contained in:
2025-05-02 10:50:52 +05:30
parent 29efeab387
commit 571da0a78a
3 changed files with 76 additions and 15 deletions

View File

@@ -2,6 +2,29 @@ import React from 'react'
import MachineInstances from './instances/machineInstances'
function Machine() {
const machineSample: MachineEventSchema = {
modelUuid: "machine-1234-5678-9012",
modelName: "CNC Milling Machine",
position: [10, 0, 5],
rotation: [0, 0, 0],
state: "idle",
type: "machine",
point: {
uuid: "machine-point-9876-5432-1098",
position: [10, 0.5, 5.2],
rotation: [0, 0, 0],
action: {
actionUuid: "machine-action-2468-1357-8024",
actionName: "Metal Processing",
actionType: "process",
processTime: 10,
swapMaterial: "steel",
triggers: []
}
}
};
return (
<>