public void Handle() { foreach (var mission in missonNodes) { missionContext.DoWork(() => missionContext.AgvPushMission(AgvSendActionEnum.SendLastWaitEndSignal.EnumToString(), mission.Id), () => { mission.Process = AgvMissonProcessEnum.AGVATPLACE; missionContext.SendAgvMisson(mission); }, "通知小车等待结束失败", AgvMissionServiceErrorCodeEnum.AGVOUTPREPLACEWAIT); } }
public void Handle() { agv_outmission.Process = AgvMissonProcessEnum.AGVSTART; missionContext.SendAgvMisson(agv_outmission); missionContext.DoWork(() => missionContext.AgvPushMission(AgvSendActionEnum.SendMissonOutOrder.EnumToString(), agv_outmission), () => { agv_outmission.Process = AgvMissonProcessEnum.CANCEL; missionContext.SendAgvMisson(agv_outmission); }, "小车搬运出库任务失败", AgvMissionServiceErrorCodeEnum.AGVOUT); }
public void Handle() { agv_inmissions_atpreplace.Process = AgvMissonProcessEnum.AGVATPLACE; //TODO:添加出料道传感器信号 missionContext.SendAgvMisson(agv_inmissions_atpreplace); missionContext.DoWork(() => missionContext.AgvPushMission(AgvSendActionEnum.SendLastWaitEndSignal.EnumToString(), agv_inmissions_atpreplace.Id), () => { //TODO:添加小车等待信号取消失败操作 }, "通知小车等待结束失败", AgvMissionServiceErrorCodeEnum.AGVINPREPLACEWAIT); }
public void Handle() { agv_outmissions_atprepick.Process = AgvMissonProcessEnum.AGVATPICK; agv_outmissions_atprepick.CarryProcess = CarryMissonProcessEnum.CLOSE; //TODO:添加出料道传感器信号 missionContext.SendAgvMisson(agv_outmissions_atprepick); missionContext.DoWork(() => missionContext.AgvPushMission(AgvSendActionEnum.SendFirstWaitEndSignal.EnumToString(), agv_outmissions_atprepick.Id), () => { //TODO:添加小车等待信号取消失败操作 }, "通知小车等待结束失败", AgvMissionServiceErrorCodeEnum.AGVOUTPREPICKWAIT); }