예제 #1
0
 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);
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }