Advertisement
Guest User

Untitled

a guest
Jun 27th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Microsoft.Kinect;
  6.  
  7. namespace KinectFirst
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. //create kinect sensor
  14. KinectSensor sensor = KinectSensor.KinectSensors[0];
  15.  
  16. if (sensor != null)
  17. {
  18. System.Console.WriteLine("yes!");
  19. if (sensor.IsRunning)
  20. {
  21. System.Console.WriteLine("running now !");
  22. }
  23. else {
  24. System.Console.WriteLine("not running now !");
  25. }
  26. sensor.Start();
  27. sensor.ElevationAngle = -13;
  28. sensor.Stop();
  29. }
  30. else {
  31. System.Console.WriteLine("no!");
  32. }
  33.  
  34.  
  35. System.Console.ReadKey(true);
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement