Exemple #1
0
 private void _kinect_Started(object sender, KinectEventArgs e)
 {
     Running = true;
     OnKinectStarted();
     Thread.Sleep(100);
     ShowCalibrationMessage("Please initialise user");
 }
Exemple #2
0
 private static void c_KinectEventTriggered(object sender, KinectEventArgs e)
 {
     if (e.KinectEvent == KinectEvent.UserControlLost)
     {
         Console.WriteLine("Event Triggered");
         kinect.KinnectDisconnect();
         //vehicle.SecuritySpeed();
     }
 }
Exemple #3
0
    // I have no idea what the actual event handler is supposed to look like.
    // This is just a wild guess based on the little bit of code you posted.
    void KinectEventHandler(object sender, KinectEventArgs handtip)
    {
        CameraSpacePoint handtipPosition = handtip.Position;
        ColorSpacePoint  handtipPoint    = _sensor.CoordinateMapper
                                           .MapCameraPointToColorSpace(handtipPosition);

        if (PreviousPoint != null)
        {
            ColorSpacePoint previousPointValue = (ColorSpacePoint)PreviousPoint;
            line.X1 = previousPointValue.X;
            line.Y1 = previousPointValue.Y;
            line.X2 = handtipPoint.X;
            line.Y2 = handtipPoint.Y;
            canvas.Children.Add(line);
        }
        PreviousPoint = handtipPoint;
    }
 private void Kinect_CameraDataUpdated(object sender, KinectEventArgs e)
 {
     try
     {
         DispatcherHelper.CheckBeginInvokeOnUI(() =>
         {
             if (KinectManager.Instance.Kinect != null)
             {
                 CameraView =
                     KinectManager.Instance.Kinect.GetCameraView(
                         Core.CameraView.ColoredDepth);
             }
         });
     }
     catch (Exception ex)
     {
         Trace.Write(ex.StackTrace);
     }
 }
 void _kinect_KinectStarted(object sender, KinectEventArgs e)
 {
     //Thread.Sleep(400);
     _kinect.SetElevationAngle(1);
 }
 private void Kinect_CameraDataUpdated(object sender, KinectEventArgs e)
 {
     SetCameraView();
 }
 private void Kinect_CameraDataUpdated(object sender, KinectEventArgs e)
 {
     try
     {
         DispatcherHelper.CheckBeginInvokeOnUI(() =>
                                                   {
                                                       if (KinectManager.Instance.Kinect != null)
                                                       {
                                                           CameraView =
                                                               KinectManager.Instance.Kinect.GetCameraView(
                                                                   Core.CameraView.ColoredDepth);
                                                       }
                                                   });
     }
     catch (Exception ex)
     {
         Trace.Write(ex.StackTrace);
     }
 }
Exemple #8
0
 private void _kinect_Stopped(object sender, KinectEventArgs e)
 {
     CleanUpAfterKinectStopped();
 }
Exemple #9
0
 private void _kinect_CameraDataUpdated(object sender, KinectEventArgs e)
 {
     SetCameraView();
 }
Exemple #10
0
 private void _kinect_Stopped(object sender, KinectEventArgs e)
 {
     CleanUpAfterKinectStopped();
 }
Exemple #11
0
 private void _kinect_Started(object sender, KinectEventArgs e)
 {
     Running = true;
     OnKinectStarted();
     Thread.Sleep(100);
     ShowCalibrationMessage("Please initialise user");
 }
Exemple #12
0
        public void SendMessage(string message)
        {
            KinectEventArgs dsea = new KinectEventArgs(message);

            kinectEvent?.Invoke(this, dsea);
        }
Exemple #13
0
 void _kinect_KinectStarted(object sender, KinectEventArgs e)
 {
     //Thread.Sleep(400);
     _kinect.SetElevationAngle(1);
 }