| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | |
| | | */ |
| | | @ApiModelProperty(value= "提升机坐标") |
| | | @TableField("point") |
| | | private NyShuttleProtocol.NyShuttlePointClass point; |
| | | private String point; |
| | | |
| | | /** |
| | | * 模式 |
| | |
| | | |
| | | public BasLift() {} |
| | | |
| | | public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, NyShuttleProtocol.NyShuttlePointClass point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) { |
| | | public BasLift(Integer liftNo, Integer status, Integer wrkNo, Date updateTime, Long updateBy, String memo, Boolean pakMk, String point, Boolean model, Boolean busy, Boolean frontOverrun, Boolean backOverrun, Boolean leftOverrun, Boolean rightOverrun, Boolean overHeight, Boolean overWeight, Boolean hasTray, Boolean hasCar, Boolean deviceError, Integer taskAddress, Integer distAddress, Integer completeTaskNo, Integer lev) { |
| | | this.liftNo = liftNo; |
| | | this.status = status; |
| | | this.wrkNo = wrkNo; |
| | |
| | | return null; |
| | | } |
| | | |
| | | public NyShuttleProtocol.NyShuttlePointClass getPoint$() { |
| | | if (Cools.isEmpty(this.point)){ |
| | | return null; |
| | | } |
| | | return JSON.parseObject(this.point, NyShuttleProtocol.NyShuttlePointClass.class); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | if (liftWrkMast != null) { |
| | | return false;//当前提升机存在未完成任务,等待下一次轮询 |
| | | } |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint().getX(), basLift.getPoint().getY()); |
| | | liftNode.setZ(basLift.getPoint().getZ()); |
| | | |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint$().getX(), basLift.getPoint$().getY()); |
| | | liftNode.setZ(basLift.getPoint$().getZ()); |
| | | |
| | | //获取小车到输送站点行走命令 |
| | | NyShuttleOperaResult result = NyShuttleOperaUtils.getStartToTargetCommands(shuttleThread.getSlave().getId(), wrkMast.getWrkNo(), shuttleProtocol.getCurrentLocNo(), recentDevp.getLocNo()); |
| | |
| | | if (basLift.getPoint() == null) { |
| | | return false;//没有设置提升机点位坐标 |
| | | } |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint().getX(), basLift.getPoint().getY()); |
| | | liftNode.setZ(basLift.getPoint().getZ()); |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint$().getX(), basLift.getPoint$().getY()); |
| | | liftNode.setZ(basLift.getPoint$().getZ()); |
| | | |
| | | List<NyShuttleHttpCommand> commands = new ArrayList<>(); |
| | | //获取小车出提升机行走命令 |
| | |
| | | if (basLift.getPoint() == null) { |
| | | return false;//没有设置提升机点位坐标 |
| | | } |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint().getX(), basLift.getPoint().getY()); |
| | | liftNode.setZ(basLift.getPoint().getZ()); |
| | | NavigateNode liftNode = new NavigateNode(basLift.getPoint$().getX(), basLift.getPoint$().getY()); |
| | | liftNode.setZ(basLift.getPoint$().getZ()); |
| | | |
| | | //获取小车从输送站到目标库位命令 |
| | | NyShuttleOperaResult result = NyShuttleOperaUtils.getStartToTargetCommands(shuttleThread.getSlave().getId(), wrkMast.getWrkNo(), targetBasDevp.getLocNo(), wrkMast.getLocNo()); |
| | |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="pak_mk" property="pakMk" /> |
| | | |
| | | <result column="point" property="point" /> |
| | | <result column="model" property="model" /> |
| | | <result column="busy" property="busy" /> |