import type { PalletParams } from './PalletizingTypes' export const emptyConfig: PalletParams = { name: 'simulation', date: '2024-03-08 15:31', basic: { mode: 0, pallet: 0, conveyer: 0, box: 0, suction: 0, lift: 1, userLeft: 1, userRight: 2, tool1: 1, tool2: 2, interlayer: 0, userInterlayer: 3 }, signal: { suctionOn1: 7, suctionOn2: 8, vacuumBreakEnable: 1, suctionOff1: 18, suctionOff2: 19, vacuumDetectEnable: 1, vacuumDetect: 22, vacuumTrigger: 23, conveyerIncoming1: 1, conveyerIncoming2: 4, conveyerIncoming21: 17, conveyerIncoming22: 18, leftPalletReady: [2, 3], rightPalletReady: [5, 6], palletConfirmEnable: 0, leftPalletConfirm: 9, rightPalletConfirm: 10, multiSensor: 1, multiSensor2: 0, wrappingOn: 19, wrappingEnable: 0 }, box: { left: { length: 0, width: 0, height: 0, weight: 0 }, right: { length: 0, width: 0, height: 0, weight: 0 }, tool: { length: 628, width: 350, weight: 4, height: 70 } }, pallet: { size: { type: 0, length: 1020, width: 1020, height: 140 }, transition: { left: [[-325.3584, -325.9106, 1304.1223, -180, 0, 90]], right: [[-325.3584, 100.4178, 1304.1223, 180, 0, 90]] } }, conveyer: { position: [ [-1010.5197, 340.000366, 984.4921, 180, 0, 180], [-1010.5197, -720.000366, 984.4921, 180, 0, -180] ] }, template: { typeA: { sort: 1, mode: 0, align: 0, dbTimes: 0, style: [] }, typeB: { sort: 1, mode: 0, align: 1, dbTimes: 1, style: [] }, typeC: { sort: 1, mode: 0, align: 0, dbTimes: 0, style: [] }, typeD: { sort: 1, mode: 0, align: 1, dbTimes: 1, style: [] } }, layer: { left: { count: 1, order: [0], partition: 2, partitionHeight: 5, partitionPose: [ [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180] ], partitionCount: 5 }, right: { count: 1, order: [0], partition: 2, partitionHeight: 5, partitionPose: [ [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180] ], partitionCount: 5 } }, motion: { withBox: { speed: 100, acceleration: 100 }, withoutBox: { speed: 100, acceleration: 100 } }, debug: { advanced: { suctionDelay: 1500, placeDelay: 1500, pickSaveHeight: 300, rotateCompensation: 90, dropDetection: 0 }, heightCompensation: { left: { start: 1, zHeight: 0 }, right: { start: 1, zHeight: 0 } } }, boxCount: 0, boxCountR: 0, totalHeight: 0, totalHeightR: 0 } // export const defaultConfig: PalletParams = { // name: 'simulation', // date: '2024-03-08 09:55', // basic: { // mode: 0, // pallet: 2, // conveyer: 0, // box: 0, // suction: 1, // lift: 1, // userLeft: 1, // userRight: 2, // tool1: 1, // tool2: 2, // interlayer: 0, // userInterlayer: 3 // }, // signal: { // suctionOn1: 7, // suctionOn2: 8, // vacuumBreakEnable: 1, // suctionOff1: 18, // suctionOff2: 19, // vacuumDetectEnable: 1, // vacuumDetect: 22, // vacuumTrigger: 23, // conveyerIncoming1: 1, // conveyerIncoming2: 4, // leftPalletReady: [2, 3], // rightPalletReady: [5, 6], // palletConfirmEnable: 0, // leftPalletConfirm: 9, // rightPalletConfirm: 10, // multiSensor: 1 // }, // box: { // left: { length: 480, width: 320, height: 200, weight: 0 }, // right: { length: 480, width: 320, height: 200, weight: 0 }, // tool: { length: 628, width: 350, weight: 4, height: 70 } // }, // pallet: { // size: { type: 0, length: 1200, width: 1000, height: 144 }, // transition: { // left: [[-325.3584, -300.4178, 1304.1223, 180, 0, 90]], // right: [[-325.3584, 300.4178, 1304.1223, 180, 0, 90]] // } // }, // conveyer: { // position: [ // [-1010.5197, 340.000366, 984.4921, 180, -0, 180], // [-1010.5197, -520.000366, 984.4921, 180, -0, -180] // ] // }, // template: { // typeA: { // sort: 1, // mode: 0, // align: 0, // dbTimes: 2, // style: [ // { // x: 900, // y: -180, // rotate: 1, // index: 1, // direction: 6, // connection: 0, // offset: [0, -100, 50] // }, // { // x: 900, // y: -510, // rotate: 1, // index: 2, // direction: 6, // connection: 0, // offset: [0, -100, 50] // }, // { // x: 896.527778, // y: -840, // rotate: 1, // index: 3, // direction: 6, // connection: 0, // offset: [0, -100, 150] // }, // { // x: 490, // y: -517.5, // rotate: 0, // index: 4, // direction: 0, // connection: 2, // offset: [-100, -50, 50] // }, // { // x: 160, // y: -517.5, // rotate: 0, // index: 5, // direction: 0, // connection: 2, // offset: [-100, -50, 50] // } // ] // }, // typeB: { // sort: 1, // mode: 1, // align: 1, // dbTimes: 1, // style: [ // { // x: 980, // y: -517.5, // rotate: 0, // index: 1, // direction: 0, // connection: 2, // offset: [-50, -100, 150] // }, // { // x: 650, // y: -266.527778, // rotate: 0, // index: 2, // direction: 0, // connection: 0, // offset: [-50, -100, 150] // }, // { // x: 650, // y: -756.527778, // rotate: 0, // index: 3, // direction: 0, // connection: 0, // offset: [-50, -100, 150] // }, // { // x: 240, // y: -180, // rotate: 1, // index: 4, // direction: 0, // connection: 0, // offset: [0, -100, 150] // }, // { // x: 240, // y: -510, // rotate: 1, // index: 5, // direction: 0, // connection: 0, // offset: [0, -100, 150] // }, // { // x: 240, // y: -840, // rotate: 1, // index: 6, // direction: 0, // connection: 0, // offset: [0, -100, 150] // } // ] // }, // typeC: { // sort: 1, // mode: 0, // align: 0, // dbTimes: 2, // style: [ // { // x: 900, // y: 180, // rotate: 1, // index: 1, // direction: 6, // connection: 0, // offset: [50, -100, 50] // }, // { // x: 900, // y: 510, // rotate: 1, // index: 2, // direction: 6, // connection: 0, // offset: [50, -100, 50] // }, // { // x: 896.527778, // y: 840, // rotate: 1, // index: 3, // direction: 8, // connection: 0, // offset: [50, 100, 150] // }, // { // x: 490, // y: 517.5, // rotate: 0, // index: 4, // direction: 2, // connection: 2, // offset: [-100, 50, 50] // }, // { // x: 160, // y: 517.5, // rotate: 0, // index: 5, // direction: 2, // connection: 2, // offset: [-100, 50, 50] // } // ] // }, // typeD: { // sort: 1, // mode: 1, // align: 1, // dbTimes: 1, // style: [ // { // x: 980, // y: 517.5, // rotate: 0, // index: 1, // direction: 2, // connection: 2, // offset: [-50, 100, 150] // }, // { // x: 650, // y: 266.527778, // rotate: 0, // index: 2, // direction: 2, // connection: 0, // offset: [-50, 100, 150] // }, // { // x: 650, // y: 756.527778, // rotate: 0, // index: 3, // direction: 2, // connection: 0, // offset: [-50, 100, 150] // }, // { // x: 240, // y: 180, // rotate: 1, // index: 4, // direction: 0, // connection: 0, // offset: [-50, -100, 150] // }, // { // x: 240, // y: 510, // rotate: 1, // index: 5, // direction: 0, // connection: 0, // offset: [-50, -100, 150] // }, // { // x: 240, // y: 840, // rotate: 1, // index: 6, // direction: 2, // connection: 0, // offset: [-50, 100, 150] // } // ] // } // }, // layer: { // left: { // count: 10, // order: [0, 1, 0, 1, 0, 1, 0, 1, 0, 1], // partition: 2, // partitionHeight: 5, // partitionPose: [ // [600, -500, 25, -180, 0, -180], // [600, -500, 25, -180, 0, -180], // [600, -500, 25, -180, 0, -180] // ], // partitionCount: 5 // }, // right: { // count: 10, // order: [0, 1, 0, 1, 0, 1, 0, 1, 0, 1], // partition: 2, // partitionHeight: 5, // partitionPose: [ // [600, -500, 25, -180, 0, -180], // [600, -500, 25, -180, 0, -180], // [600, -500, 25, -180, 0, -180] // ], // partitionCount: 5 // } // }, // motion: { // withBox: { speed: 100, acceleration: 100 }, // withoutBox: { speed: 100, acceleration: 100 } // }, // debug: { // advanced: { // suctionDelay: 1500, // placeDelay: 1500, // pickSaveHeight: 300, // rotateCompensation: 90, // dropDetection: 0 // }, // heightCompensation: { left: { start: 1, zHeight: 0 }, right: { start: 1, zHeight: 0 } } // }, // boxCount: 70, // boxCountR: 70, // totalHeight: 2000, // totalHeightR: 2000 // } export const defaultConfig: PalletParams = { name: 'simulation', date: '2024-03-14 17:37', basic: { mode: 0, pallet: 2, conveyer: 0, box: 0, suction: 1, lift: 1, userLeft: 1, userRight: 2, tool1: 1, tool2: 2, interlayer: 0, userInterlayer: 3 }, signal: { suctionOn1: 7, suctionOn2: 8, vacuumBreakEnable: 1, suctionOff1: 18, suctionOff2: 19, vacuumDetectEnable: 1, vacuumDetect: 22, vacuumTrigger: 23, conveyerIncoming1: 1, conveyerIncoming2: 4, conveyerIncoming21: 17, conveyerIncoming22: 18, leftPalletReady: [2, 3], rightPalletReady: [5, 6], palletConfirmEnable: 0, leftPalletConfirm: 9, rightPalletConfirm: 10, multiSensor: 1, multiSensor2: 0, wrappingOn: 19, wrappingEnable: 0 }, box: { left: { length: 500, width: 320, height: 200, weight: 0 }, right: { length: 500, width: 320, height: 200, weight: 0 }, tool: { length: 628, width: 350, weight: 4, height: 70 } }, pallet: { size: { type: 0, length: 1020, width: 1020, height: 140 }, transition: { left: [[-325.3584, -325.9106, 1304.1223, -180, 0, 90]], right: [[-325.3584, 100.4178, 1304.1223, 180, 0, 90]] } }, conveyer: { position: [ [-1010.5197, 340.000366, 984.4921, 180, 0, 180], [-1010.5197, -720.000366, 984.4921, 180, 0, -180] ] }, template: { typeA: { sort: 1, mode: 1, align: 1, dbTimes: 3, style: [ { x: 166.8456375838927, y: -512.5335570469799, rotate: 0, index: 3, direction: 1, connection: 2, offset: [0, 0, 100] } // { // x: 510.4697986577181, // y: -511.86241610738284, // rotate: 0, // index: 2, // direction: 1, // connection: 2, // offset: [0, 0, 50] // }, // { // x: 853.7136465324386, // y: -513.2046979865773, // rotate: 0, // index: 1, // direction: 1, // connection: 2, // offset: [0, 0, 50] // } ] }, typeB: { sort: 1, mode: 1, align: 1, dbTimes: 3, style: [ { x: 517.6006711409397, y: -853.7136465324386, rotate: 1, index: 1, direction: 1, connection: 2, offset: [0, 0, 200] } // { // x: 514.8489932885907, // y: -511.97986577181206, // rotate: 1, // index: 2, // direction: 1, // connection: 2, // offset: [0, 0, 200] // }, // { // x: 514.8489932885907, // y: -171.81208053691273, // rotate: 1, // index: 3, // direction: 2, // connection: 2, // offset: [0, 100, 200] // } ] }, typeC: { sort: 1, mode: 1, align: 1, dbTimes: 3, style: [ { x: 166.8456375838927, y: 512.5335570469799, rotate: 0, index: 3, direction: 1, connection: 2, offset: [0, 0, 100] }, { x: 510.4697986577181, y: 511.86241610738284, rotate: 0, index: 2, direction: 1, connection: 2, offset: [0, 0, 50] }, { x: 853.7136465324386, y: 513.2046979865773, rotate: 0, index: 1, direction: 1, connection: 2, offset: [0, 0, 50] } ] }, typeD: { sort: 1, mode: 1, align: 1, dbTimes: 3, style: [ { x: 517.6006711409397, y: 853.7136465324386, rotate: 1, index: 1, direction: 1, connection: 2, offset: [0, 0, 200] }, { x: 514.8489932885907, y: 511.97986577181206, rotate: 1, index: 2, direction: 1, connection: 2, offset: [0, 0, 200] }, { x: 514.8489932885907, y: 171.81208053691273, rotate: 1, index: 3, direction: 0, connection: 2, offset: [0, -100, 200] } ] } }, layer: { left: { count: 10, order: [0], partition: 2, partitionHeight: 5, partitionPose: [ [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180] ], partitionCount: 5 }, right: { count: 10, order: [0, 1, 0, 1, 0, 1, 0, 1, 0, 1], partition: 2, partitionHeight: 5, partitionPose: [ [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180], [600, -500, 25, -180, 0, -180] ], partitionCount: 5 } }, motion: { withBox: { speed: 100, acceleration: 100 }, withoutBox: { speed: 100, acceleration: 100 } }, debug: { advanced: { suctionDelay: 1500, placeDelay: 1500, pickSaveHeight: 300, rotateCompensation: 90, dropDetection: 0 }, heightCompensation: { left: { start: 1, zHeight: 0 }, right: { start: 1, zHeight: 0 } } }, boxCount: 60, boxCountR: 60, totalHeight: 2020, totalHeightR: 2020 } //有升降轴的 export const defaultUserCoordinatesWithLift = [ { alias: '', caliType: 0, enable: true, params: [0, 0, 0, 0, 0, 0], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '左栈板', caliType: 0, enable: true, params: [400.000366, -575.000122, -1054.050558, 0, 0, 90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '右栈板', caliType: 0, enable: true, params: [-400.000366, -575.000122, -1054.050558, 0, 0, 90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '隔板', caliType: 0, enable: true, params: [0, 0, 0, 0, 0, -90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } } ] export const defaultLiftHeight = -768.050558 //无升降轴 export const defaultUserCoordinatesNoLift = [ { alias: '', caliType: 0, enable: true, params: [0, 0, 0, 0, 0, 0], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '左栈板', caliType: 0, enable: true, params: [530.000366, -545.000122, -1054.050558, 0, 0, -90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '右栈板', caliType: 0, enable: true, params: [-530.000366, -545.000122, -1054.050558, 0, 0, -90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '隔板', caliType: 0, enable: true, params: [0, 0, 0, 0, 0, -90], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } } ] export const defaultNoLiftHeight = -1161.050558 export const defaultToolCoordinates = [ { alias: '', caliType: 0, enable: true, params: [0, 0, 0, 0, 0, 0], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '同心工具', caliType: 0, enable: true, params: [0, 0, 65, 0, 0, 0], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } }, { alias: '偏心工具', caliType: 0, enable: true, params: [-240, 0, 65, 0, 0, 0], rawP0: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP1: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP2: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP3: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP4: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] }, rawP5: { joint: [0, 0, 0, 0, 0, 0], coordinate: [0, 0, 0, 0, 0, 0] } } ] export const ConveyorLength = 2500 export const ConveyorWidth = 800 export const ConveyorBoxInterval = 10