| | |
| | | var endSite = LocationHelper.GetAgvSite(mst.S_END_LOC); // 如果找不到会返回0,就是假终点 |
| | | |
| | | var code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"tet" }), "p2pdst2", "pgapi"); |
| | | |
| | | |
| | | //var code = -1; |
| | | //if (taskType == TaskName.产品入库) { |
| | | // code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"{mst.S_CODE}" }), "p2pdst", "pgapi"); |
| | | //} |
| | | //else { |
| | | // code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, dst = endSite }), "p2p", "pgapi"); |
| | | //} |
| | | |
| | | if (taskType == TaskName.产品入库) { |
| | | code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, order_name = $"{mst.S_CODE}" }), "p2pdst", "pgapi"); |
| | | } |
| | | else { |
| | | code = GZRobot.CreateOrder(mst.S_CODE, mst.N_PRIORITY, JsonConvert.SerializeObject(new { src = startSite, dst = endSite }), "p2p", "pgapi"); |
| | | } |
| | | LogHelper.Info($"eq_task_code={code}"); |
| | | // car_type 默认为1 |
| | | // src_ort 货架排号 |
| | | // dst_orc 货架层数(后两个信息应该为国自AGV内部维护,以后面更改的结果为准) |