schangxiang@126.com
2025-04-17 d34ea2a9fc2334d2bf7383cb64562f301ffbda84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using iWareCommon.Utils;
using iWareModel.Entity.AGV;
using System;
 
namespace iWareCC.Common.Helper
{
    public class AgvRequestHelper
    {
        /// <summary>
        /// AGV的主机host
        /// </summary>
        private static string agvHost = ConfigHelper.GetConfigString("AgvHost");
        /// <summary>
        /// AGV-查询车辆列表(可查指定名称)
        /// </summary>
        private static string agvUrl_RobotsStatus = ConfigHelper.GetConfigString("RobotsStatus");
 
        /// <summary>
        /// 查询车辆列表
        /// </summary>
        /// <param name="agvTaskParam"></param>
        /// <returns></returns>
        public static AGVRetModel GetVehicles()
        {
            var agvResults = new HTTPService(agvHost).getContent<AGVRetModel>(agvUrl_RobotsStatus, Guid.NewGuid(), 30);
            return agvResults;
        }
      
    }
}