| | |
| | | motion.setReleaseLift(target.getReleaseLift()); |
| | | } |
| | | |
| | | List<NavigateNode> nodeList = navigateUtils.calc(motion.getOrigin(), motion.getTarget(), NavigationMapType.NONE_LOCK.id, Utils.getShuttlePoints(Integer.parseInt(target.getShuttleDevice().getDeviceNo()), Utils.getLev(motion.getTarget()))); |
| | | if (nodeList == null) { |
| | | throw new CoolException(motion.getOrigin() + " dash " + motion.getTarget() + " can't find navigate path!"); |
| | | if (motion.getOrigin() != null && motion.getTarget() != null) { |
| | | List<NavigateNode> nodeList = navigateUtils.calc(motion.getOrigin(), motion.getTarget(), NavigationMapType.NONE_LOCK.id, Utils.getShuttlePoints(Integer.parseInt(target.getShuttleDevice().getDeviceNo()), Utils.getLev(motion.getTarget()))); |
| | | if (nodeList == null) { |
| | | throw new CoolException(motion.getOrigin() + " dash " + motion.getTarget() + " can't find navigate path!"); |
| | | } |
| | | motion.setMovePath(JSON.toJSONString(nodeList)); |
| | | } |
| | | motion.setMovePath(JSON.toJSONString(nodeList)); |
| | | |
| | | })); |
| | | |