Example #1
0
        public SkeletonAngleHandler(String naoIP)
        {
            view_left = new AngleView(this, 'l');
            view_left.Text = "LEFT";

            view_right = new AngleView(this, 'r');
            view_right.Text = "RIGHT";

            view_left.Show();
            view_right.Show();

            naoHandler = new NaoHandler(this, naoIP);

            angleCalculator = new SkeletonAngleCalculator(this);
            angleCalculatorThread = new Thread(angleCalculator.DoWork);

            // Start the worker thread.
            angleCalculatorThread.Start();
            Console.WriteLine("Winkelberechnung gestartet!");

            // Loop until worker thread activates.
            //while (!angleCalculatorThread.IsAlive);
            // Put the main thread to sleep for 1 millisecond to
            // allow the worker thread to do some work:
            //Thread.Sleep(1);
        }
Example #2
0
        public SkeletonAngleHandler(String naoIP)
        {
            view_left      = new AngleView(this, 'l');
            view_left.Text = "LEFT";


            view_right      = new AngleView(this, 'r');
            view_right.Text = "RIGHT";


            view_left.Show();
            view_right.Show();


            naoHandler = new NaoHandler(this, naoIP);

            angleCalculator       = new SkeletonAngleCalculator(this);
            angleCalculatorThread = new Thread(angleCalculator.DoWork);

            // Start the worker thread.
            angleCalculatorThread.Start();
            Console.WriteLine("Winkelberechnung gestartet!");

            // Loop until worker thread activates.
            //while (!angleCalculatorThread.IsAlive);
            // Put the main thread to sleep for 1 millisecond to
            // allow the worker thread to do some work:
            //Thread.Sleep(1);
        }