Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7785887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:19:41+00:00 2026-06-01T20:19:41+00:00

I was hoping someone could help point me in the right direction. I’m looking

  • 0

I was hoping someone could help point me in the right direction.

I’m looking for a way to use the Microsoft Kinect to turn off a lamp. The lamp is connected to a Home Easy remote socket switch which is paired with a Telldus Tellstick.
I am using C# to write the application, now I have a vague idea in my head what I would like to do, and after using the Kinect SDK I have a better understanding of how to use the Kinect.

What I would like to know is what would be the most logical way to create this application? I was thinking something along the lines of:
Initialize Kinect > When Kinect ready then scan for skeleton > when skeleton detected, mark boolean value as ‘true’ > when value true, turn light on.

I know that is very vague, but I am new to developing with the kinect and overall my I’m still learning C#. Any help, no matter how small would be greatly appreciated!

Regards,
John.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:19:41+00:00Added an answer on June 1, 2026 at 8:19 pm

    You can’t set a simple boolean for this because the SDK’s event driven approach will return 6 skeletal structures even if they are all empty. Using a bit of LINQ and a null check will get you what you are looking for though.

    Steps:

    1. Initialize Kinect (I would use the included KinectSensorChooser for this app WPFViewers) enable and register for the skeletal stream.
    2. In the skeletal event check to make sure you didn’t get a null skeleton collection (it happens)
    3. Use LINQ to get the first skeleton that has it’s tracking property set to tracked. You can also just use a for loop, I just find LINQ to be useful for these types of iteration.
    4. If your skeleton after the LINQ query is not null do something.

    If you are wanting to get this up quick and with some flair you can utilize the sample that is included when you download the SDK Kinect Explorer. There is a skeletal viewer along with KinectSensorChooser that will allow you to have a fully functioning app with very little code.
    read more about the Skeletal Viewer included with this sample here


    I stumbled a little bit with wether to provide code for this or not. I thought it better to answer this with the logic needed to perform the action rather than the actual code… since you asked 🙂 however, if you want code for this you can either get it from Channel 9’s Quickstarts or my book chapter four


    Edit (Extending KinectExplorer):

    In order to extend KinectExplorer to respond when a skeleton is detected just find the function KinectAllFramesReady in KinectSkeletonViewer.xaml.cs. Inside of this function there is a bool check for haveSkeletonData, this if statement will get called when there is a skeleton present in the viewable frame of the Kinect.
    so:

       private void KinectAllFramesReady(object sender, AllFramesReadyEventArgs e)
       {
        //Checking for Skeleton
        if (haveSkeletonData)
        {
         //Do Stuff Here
        }
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m hoping someone could point me in the direction of a library to help
I'm having an issue and I'm hoping someone could point me in the right
I was hoping someone could help me with the following script: jQuery(document).ready(function($) { $(.infoBoxBtn
I was hoping someone could help me with submitting the answers to an HTML
I was hoping someone could help me with a little issue I'm having trouble
Im starting to understand how Magento Event Observers work and hoping someone could help
Im using the .NET framework 1.1 and Im hoping someone could help me implement
I've come across 2 confusing problems in SML and was hoping someone could help
first time post here. I was hoping someone could help me make custom SPARQL
I'm having the most peculiar problem, and I was hoping I someone could point

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.