| | |
| | | <view class="tip">场景构建中</view> |
| | | <view> |
| | | <!-- 请操作搬运车扫描地图覆盖的区域 --> |
| | | {{mapServerPhase=== 1 ?"场景构建服务:未启动":mapServerPhase===2 ?"场景构建服务:启动中":mapServerPhase===3 ?"场景构建中":mapServerPhase}} |
| | | {{mapCreatePhase}} |
| | | </view> |
| | | |
| | | <view class="text-button-group"> |
| | |
| | | <view class="tip"> “{{sceneName}}”{{opType == "extend"?"场景扩展结束"+"":"场景构建结束"}}</view> |
| | | <!-- <view> 已成功构建“{{sceneName}}”</view> --> |
| | | <view class="loading-view"> |
| | | 构图状态:{{mapServerPhase===5?"保存成功":mapServerPhase===4?"保存中":mapServerPhase===6?"保存失败":mapServerPhase}} |
| | | {{mapCreatePhase}} |
| | | <view v-if="mapServerPhase === 4" class="auto-circle"></view> |
| | | </view> |
| | | <view class="text-button-group"> |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | |
| | | mapCreatePhase() { |
| | | if (this.mapServerPhase == 1) { |
| | | return "场景构建服务:未启动" |
| | | } else if (this.mapServerPhase == 2) { |
| | | return "场景构建服务:启动中" |
| | | } else if (this.mapServerPhase == 3) { |
| | | return "场景构建中" |
| | | } else if (this.mapServerPhase == 4) { |
| | | return "场景构图保存中" |
| | | } else if (this.mapServerPhase == 5) { |
| | | return "场景构图保存成功" |
| | | } else if (this.mapServerPhase == 6) { |
| | | return "场景构图保存失败" |
| | | } else |
| | | return this.mapServerPhase |
| | | } |
| | | }, |
| | | watch: { |
| | | |
| | |
| | | |
| | | const res = await getMapServerPhase(this.ip) |
| | | this.mapServerPhase = res || 1 |
| | | if (this.mapServerPhase === 3) { |
| | | return |
| | | } |
| | | if (this.mapServerPhase === 5 || this.mapServerPhase === 6) { |
| | | this.saveMapIsOk = true |
| | | return |
| | | if(this.opSceneType === "finish") |
| | | { |
| | | if (this.mapServerPhase === 5 || this.mapServerPhase === 6) { |
| | | this.saveMapIsOk = true |
| | | return |
| | | } |
| | | } |
| | | setTimeout(this.checkMapServerPhase, 1000); |
| | | } catch (ex) { |
| | |
| | | }) |
| | | this.saveMapIsOk = false |
| | | await stopMap(this.ip, this.sceneName) |
| | | this.mapServerPhase = 4 |
| | | this.checkMapServerPhase(); |
| | | //this.mapServerPhase = 4 |
| | | //this.checkMapServerPhase(); |
| | | // if (this.opType == "extend") { |
| | | // this.opSceneType = "" |
| | | // const eventChannel = this.getOpenerEventChannel(); |
| | |
| | | filedata: mapData |
| | | } |
| | | }) |
| | | |
| | | listCtrData.push({ |
| | | method: "point_trajectory", |
| | | param: data.base_map.trajectoryPoints || |
| | | [] //[ [[2,2],[6,2],[10,2],[14,2],[18,2],[2,6],[2,10],[2,14],[2,18],] |
| | | }) |
| | | |
| | | } |
| | | |
| | |
| | | method: "point_cloud", |
| | | param: data.point_cloud |
| | | }) |
| | | |
| | | |
| | | if (data.robot_pose) { |
| | | listCtrData.push({ |
| | | method: "agv_laser", |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | // console.log("ctxDataStr",listCtrData.length) |
| | | this.ctxDataStr = JSON.stringify(listCtrData) |