| | |
| | | for (let crnData of CrnDatas) { |
| | | let crnTask = getArrVal(this.crnTasks, "crnNo", crnData.crnNo); |
| | | if (null == crnTask) { |
| | | // let crnFork = getArrVal(this.objects, "name", wrkMast.crnNo + "-fork"); |
| | | this.crnTasks.push(new CrnTask(crnData)); |
| | | } else { |
| | | if(!crnTask.run) { |
| | |
| | | }); |
| | | } |
| | | this.initModelMove = function () { |
| | | console.log(this.wrkTasks) |
| | | for (var wrkMast of this.wrkTasks) { |
| | | this.crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body"); |
| | | // 取货点定位 |
| | | let sourceLocPosition = getBinPosition(wrkMast.sourceLocNo); |
| | | let points = [new THREE.Vector3(this.crnBody.position.x, this.crnBody.position.y, this.crnBody.position.z), sourceLocPosition]; |
| | | this.curve = new Route(points); |
| | | } |
| | | console.log(this.crnTasks) |
| | | // for (var wrkMast of this.wrkTasks) { |
| | | // this.crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body"); |
| | | // // 取货点定位 |
| | | // let sourceLocPosition = getBinPosition(wrkMast.sourceLocNo); |
| | | // let points = [new THREE.Vector3(this.crnBody.position.x, this.crnBody.position.y, this.crnBody.position.z), sourceLocPosition]; |
| | | // this.curve = new Route(points); |
| | | // } |
| | | |
| | | } |
| | | this.modelMove = function () { |