private void _kinect_Started(object sender, KinectEventArgs e) { Running = true; OnKinectStarted(); Thread.Sleep(100); ShowCalibrationMessage("Please initialise user"); }
private static void c_KinectEventTriggered(object sender, KinectEventArgs e) { if (e.KinectEvent == KinectEvent.UserControlLost) { Console.WriteLine("Event Triggered"); kinect.KinnectDisconnect(); //vehicle.SecuritySpeed(); } }
// 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_Stopped(object sender, KinectEventArgs e) { CleanUpAfterKinectStopped(); }
private void _kinect_CameraDataUpdated(object sender, KinectEventArgs e) { SetCameraView(); }
public void SendMessage(string message) { KinectEventArgs dsea = new KinectEventArgs(message); kinectEvent?.Invoke(this, dsea); }