AGV 调度失败

This commit is contained in:
qianhao.xu
2024-04-23 16:52:04 +08:00
parent e7c9496676
commit 50226106f5
2 changed files with 11 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ namespace ZR.Service.Business
return Context.Queryable<AgvLocation>().Where(predicate.ToExpression()).ToList();
}
/// <summary>
/// 7 生成agv任务
/// 7 生成agv任务,并执行
/// </summary>
/// <param name="taskid"></param>
/// <returns></returns>
@@ -137,10 +137,10 @@ namespace ZR.Service.Business
// 设置文本颜色为红色
Console.ForegroundColor = ConsoleColor.Red;
string url = "http://192.168.60.1:443/rcms/services/rest/hikRpcService/genAgvSchedulingTask";
string url = "http://192.168.60.1:8182/rcms/services/rest/hikRpcService/genAgvSchedulingTask";
Console.WriteLine("=======》打印请求URL" + url);
string start_point = "";
string end_point = "";
@@ -156,7 +156,9 @@ namespace ZR.Service.Business
}
AGVtask_third task = new AGVtask_third();
task.reqCode = taskid;
task.reqCode = SnowFlakeSingle.Instance.NextId().ToString();
// "taskTyp":"F01",
task.taskTyp = "F01";
task.positionCodePath = new List<AGV_location_third>
{
new AGV_location_third()
@@ -227,10 +229,10 @@ namespace ZR.Service.Business
{
task_id = agvTask.BackTaskId;
}
string url = "http://192.168.60.1:443/rcms/services/rest/hikRpcService/cancelTask";
string url = "http://192.168.60.1:8182/rcms/services/rest/hikRpcService/cancelTask";
AGVtask_cancel_third req = new AGVtask_cancel_third();
req.reqCode = taskId;
req.reqCode = SnowFlakeSingle.Instance.NextId().ToString();
req.forceCancel = "1";
req.taskCode = task_id;
string postData= JsonSerializer.Serialize(req);