using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Reflection.Metadata;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_Core;
|
using WIDESEAWCS_DTO.AGV.HIKROBOT;
|
using WIDESEAWCS_Model.Models;
|
|
namespace WIDESEAWCS_Tasks
|
{
|
public partial class TaskJob
|
{
|
#region 处理海康AGV任务
|
public void HIKROBOTTask(List<Dt_Task> tasks)
|
{
|
foreach (var item in tasks)
|
{
|
SendHIKROBOTTask(item);
|
}
|
}
|
#endregion
|
|
#region 下发海康AGV任务
|
public void SendHIKROBOTTask(Dt_Task task)
|
{
|
WebResponseContent content = new WebResponseContent();
|
HIKROBOTTaskSubmit hIKROBOTTaskSubmit = new HIKROBOTTaskSubmit();
|
try
|
{
|
hIKROBOTTaskSubmit.taskType = "";
|
hIKROBOTTaskSubmit.targetRoute = new List<TargetRouteDto> { new TargetRouteDto() };
|
hIKROBOTTaskSubmit.initPriority = task.Grade;
|
}
|
catch (Exception ex)
|
{
|
content.Error(ex.Message);
|
}
|
finally
|
{
|
|
}
|
}
|
#endregion
|
}
|
}
|