Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do you move the Kinect motor up and down in code dynamically depending upon the user height and distance from the device he is present
Any C# examples out there?
Posted
Updated 7-Mar-12 17:38pm
v2

1 solution

You should probably wrap the entire thing in a try-catch since at least here setting the ElevationAngle to often spits out an Exception.

for example
C#
using System;
using Microsoft.Research.Kinect.Nui;

namespace Kinect.Extensions
{
  public static class CameraExtensions
  {
    public static bool TrySetAngle(this Camera camera, int angle)
    {
      try
      {
        camera.ElevationAngle = angle;
        return true;
      }
      catch (Exception e)
      {
        return false;
      }
    }
  }
}

Hope it will give you an idea

Or this Sample Code From CP Will Guide You

Kinect – Getting Started – Become The Incredible Hulk[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900