Exemplo n.º 1
0
        /// <summary>
        /// 更新AGV当前所在位置
        /// </summary>
        /// <param name="name"></param>
        /// <param name="siteid"></param>
        /// <param name="rate"></param>
        public static void UpdateAgvSite(string name, int siteid, float rate)
        {
            AgvModule agv = _agvModules.Find(c => { return(c._name.Equals(name)); });

            if (agv != null)
            {
                point = LineDateCenter.GetMPointOnLine(siteid, rate);
                if (point != null)
                {
                    agv.Update(new Point(point.X, point.Y));
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 新更新AGV坐标方法方法
        /// </summary>
        /// <param name="name"></param>
        /// <param name="siteid"></param>
        /// <param name="rate"></param>
        /// <param name="dessite"></param>
        public static void UpdateAgvSiteNew(string name, int siteid, int dessite = 0, float rate = -1)
        {
            AgvModule agv = _agvModules.Find(c => { return(c._name.Equals(name)); });

            if (agv != null)
            {
                agvPoint = AgvLineMaster.GetMPointOnLine(name, siteid, dessite, rate);
                if (agvPoint != null)
                {
                    agv.Update(new Point(agvPoint.X, agvPoint.Y));
                }
            }
        }