Exemplo n.º 1
0
        /// <summary>
        /// Need a server running first (See KxStandaloneServerExample.cs)
        /// </summary>
        /// <param name="args"></param>
        public static void Run(string[] args)
        {
            var cameras = KxServerFinder.FindServers();

            Console.WriteLine(cameras.Count.ToString());
            foreach (var cam in cameras)
            {
                var depth = cam.LatestDepthImage();
                //Do something
            }
        }
Exemplo n.º 2
0
        public static void Run(string[] args)
        {
            var servers = KxServerFinder.FindServers();

            foreach (var s in servers)
            {
                var name    = s.Endpoint.Address.Uri.DnsSafeHost;
                var success = s.RecordXef(TimeSpan.FromMilliseconds(1000));
                var xef     = s.LastRecording();
                //Store xef file locally
                File.WriteAllBytes($"{name}.xef", xef);
            }
        }