Esempio n. 1
0
        public bool CheckRobotWorkinginReady()
        {
            bool hasRobotWorking = false;

            foreach (RobotUnity robot in RobotUnitylist)
            {
                if (robot == this) // kiem tra robot bằng chính nó bỏ qua
                {
                    continue;
                }
                if (trafficManagementService.GetTypeZone(robot.properties.pose.Position, 0, 200) == TypeZone.READY)
                {
                    if (robot.robotTag == RobotStatus.WORKING)
                    {
                        hasRobotWorking = true;
                        break;
                    }
                }
            }
            return(hasRobotWorking);
        }