Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Kinect;
- namespace KinectFirst
- {
- class Program
- {
- static void Main(string[] args)
- {
- //create kinect sensor
- KinectSensor sensor = KinectSensor.KinectSensors[0];
- if (sensor != null)
- {
- System.Console.WriteLine("yes!");
- if (sensor.IsRunning)
- {
- System.Console.WriteLine("running now !");
- }
- else {
- System.Console.WriteLine("not running now !");
- }
- sensor.Start();
- sensor.ElevationAngle = -13;
- sensor.Stop();
- }
- else {
- System.Console.WriteLine("no!");
- }
- System.Console.ReadKey(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement