Beispiel #1
0
        public bool AgvPushMission(string actionName, object mission)
        {
            // Singalr 发送订单
            //   await signalrService.Send(AgvSendActionEnum.SendMissonInOrder.EnumToString(), mission);
            SendSignalrEvent?.Invoke(actionName, mission);

            return(true);
        }
Beispiel #2
0
        public AgvMissionManagerClient(IControlDevice _carryDevice)
        {
            missionContext = new MissionContext(_carryDevice);
            missionContext.SendAgvMissionServiceStateMessageEvent += (obj) => ShowLogEvent?.Invoke(obj);
            missionContext.SendSignalrEvent   += (action, obj) => SendSignalrEvent?.Invoke(action, obj);
            missionContext.SendAgvMissonEvent += (s) => SendAgvMissonEvent?.Invoke(s);

            InitMissionState();
        }
Beispiel #3
0
        public void PushTask()
        {
            foreach (var undo in undo_inmissions)
            {
                //if(undo.Process==AgvMissonProcessEnum.AGVPICKEDANDLEAVE)
                SendSignalrEvent?.Invoke(AgvSendActionEnum.SendInMissionFinMessage.EnumToString(), undo);
            }

            foreach (var undo in undo_outmissions)
            {
                //if (undo.Process == AgvMissonProcessEnum.FINISHED)
                SendSignalrEvent?.Invoke(AgvSendActionEnum.SendOutMissionFinMessage.EnumToString(), undo);
            }
        }