| | |
| | | import com.zy.asrs.wcs.core.entity.BasShuttle; |
| | | import com.zy.asrs.wcs.core.map.entity.MapWsShuttleVo; |
| | | import com.zy.asrs.wcs.core.map.entity.MapWsVo; |
| | | import com.zy.asrs.wcs.core.model.NavigateNode; |
| | | import com.zy.asrs.wcs.core.model.enums.DeviceCtgType; |
| | | import com.zy.asrs.wcs.core.service.BasShuttleService; |
| | | import com.zy.asrs.wcs.core.utils.Utils; |
| | | import com.zy.asrs.wcs.rcs.cache.SlaveConnection; |
| | | import com.zy.asrs.wcs.rcs.entity.Device; |
| | | import com.zy.asrs.wcs.rcs.model.enums.SlaveType; |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.function.Consumer; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * Created by vincent on 4/11/2024 |
| | |
| | | } |
| | | |
| | | shuttleVo.setCurLocNo(protocol.getCurrentLocNo()); |
| | | |
| | | List<NavigateNode> moveAdvancePath = thread.getMoveAdvancePath(); |
| | | if (!Cools.isEmpty(moveAdvancePath)) { |
| | | shuttleVo.setTravelPath(moveAdvancePath.stream() |
| | | .map(path -> Utils.getLocNo(path.getX(), path.getY(), path.getZ())) |
| | | .collect(Collectors.toList())); |
| | | } |
| | | } |
| | | |
| | | return shuttleVos; |