using HH.WCS.Mobox3.AnGang.ServiceCore; using HH.WCS.Mobox3.AnGang.Dispatch; using HH.WCS.Mobox3.AnGang.process; using HH.WCS.Mobox3.AnGang.Helper; using Newtonsoft.Json; using System.Collections.Generic; using System.Reflection; using System.Web.Http; using static HH.WCS.Mobox3.AnGang.Dispatch.NDC; using System.Linq; using HH.WCS.Mobox3.AnGang.config; using HH.WCS.Mobox3.AnGang.Services; using static HH.WCS.Mobox3.AnGang.Dtos.Request.AgvRequest; using static HH.WCS.Mobox3.AnGang.Dtos.Response.AgvResponse; using static HH.WCS.Mobox3.AnGang.Controllers.ApiModel; namespace HH.WCS.Mobox3.AnGang.Controllers { /// /// 设备信息上报(hosttoagv上报、杭奥堆垛机、国自agv) /// [RoutePrefix("agv")] public class AgvController : ApiController { ///// ///// NDC HostToAGV 任务状态回报 ///// ///// ///// //[HttpPost] //[Route("AGVCallbackState")] //public ReturnResult AGVCallbackState(AgvTaskState model) //{ // LogHelper.Info("NDC HostToAGV任务状态回报:" + JsonConvert.SerializeObject(model), "HosttoagvTask"); // return AgvService.OperateAgvTaskStatus(model); //} /// /// RCS国自AGV任务状态回报 /// /// /// [HttpPost] [Route("orderStatusReport")] public GzResult orderStatusReport(orderStatusReportParme model) { return GZRobot.orderStatusReport(model); } /// /// AGV 与产线进行安全交互 /// /// /// [HttpPost] [Route("safetyInteraction")] public ReturnResult SafetyInteraction(SafetyInteractionInfo model) { return AgvService.SafetyInteraction(model); } } }