| | |
| | | |
| | | public String findTargetLocation(ArrayList<ArrayList<NavigateNode>> partList) { |
| | | ArrayList<NavigateNode> nodes = partList.get(partList.size() - 1); |
| | | NavigateNode targetNode = nodes.get(nodes.size() - 1); |
| | | NavigateNode targetNode = nodes.get(0); |
| | | String locNo = NavigatePositionConvert.nodeToLocNo(targetNode); |
| | | return locNo; |
| | | } |
| | |
| | | |
| | | //检测库位路径是否可用(用于库位是否可移动检测) |
| | | public boolean checkLocPathIsAvailable(String startLocNo, String endLocNo) { |
| | | List<int[]> shuttlePoints = Utils.getShuttlePoints(0, Utils.getLev(startLocNo)); |
| | | //计算库位到提升机库位,路径是否可用 |
| | | List<NavigateNode> nodeList = this.calc(startLocNo, endLocNo, NavigationMapType.DFX.id, shuttlePoints, null); |
| | | List<NavigateNode> nodeList = this.calc(startLocNo, endLocNo, NavigationMapType.DFX.id, null, null); |
| | | if (nodeList == null) { |
| | | return false; |
| | | } |