Great Work

More
10 years 1 month ago #20 by Abhishek
Sory i was not able to upload my screenshot anyway the error is at BTC.Start() ,it is showing a nullreferenceexception error.

Please Log in to join the conversation.

More
10 years 1 month ago #21 by Nick Hadjiminas
Hello Abhishek

The problem is that you try to get the nui (nui = BTC.GetKinectNui(;)before it is initialized (BTC.Start();):
Replace:
nui = BTC.GetKinectNui();
BTC.LoadPoses("C:\\Users/asrinivas/Desktop/Skeletal_Tracking/poses.pbtc");
BTC.LoadGestures("C:\\Users/asrinivas/Desktop/Skeletal_Tracking/gestures.gbtc");

try
{
//nui.Initialize(RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseColor);
BTC.Start();
}
catch (InvalidOperationException)
{
System.Windows.MessageBox.Show("Runtime initialization failed. Please make sure Kinect device is plugged in.");
return;
}
With :
try
{
//nui.Initialize(RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseColor);
BTC.Start();
}
catch (InvalidOperationException)
{
System.Windows.MessageBox.Show("Runtime initialization failed. Please make sure Kinect device is plugged in.");
return;
}
nui = BTC.GetKinectNui();
BTC.LoadPoses("C:\\Users/asrinivas/Desktop/Skeletal_Tracking/poses.pbtc");
BTC.LoadGestures("C:\\Users/asrinivas/Desktop/Skeletal_Tracking/gestures.gbtc");

Try to run as early as you can in your code the BTC.Start(); because it is initializing the kinect nui

Please let me know if it will fix the problem

Nick

Please Log in to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #22 by Yellow
Hello Nick!

I try to use your code into the sample project of Kinect SDK(the name of sample is "SkeletonViewer")

I already see the Abhishek's problem and try your answer, but it cannot work.

The attachments is my "window_Load" code, could you give me some suggestion if you have free time? :side:


and sorry for I did't see the "Play" command in the Programming Guide. :S

Thanks!
Attachments:
Last edit: 10 years 1 month ago by Yellow.

Please Log in to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #23 by Nick Hadjiminas
Hello

I found a bug in the dll which cause the recognition not working when the BTCRuntime was start with an existing instance of kinect nui. I fix it so plz download the new version. Furthermore, I create an example of use of the dll with SkeletalViewer. I hope it will help you. bethecontroller.com/BTCdownloads/Skeleta...-BetheController.rar

Let me know if you have any other problems

Nick
Last edit: 10 years 1 month ago by Nick Hadjiminas.
The following user(s) said Thank You: Yellow

Please Log in to join the conversation.

More
10 years 1 month ago #24 by Yellow
Hello Nick!

It can work now! Thank you very much!

Please Log in to join the conversation.

More
10 years 1 month ago #25 by Abhishek
Hello Nick,
I made the above changes you had mentioned and now the code is not showing any error but i have a new problem now ,when 2 poses are saved in the poselist and then when i try to load the poselist for next time only one pose is loaded and not 2 poses, due to this i am not able to detect a gesture in my code.Your suggestions would be helpful regarding this problem.I have also attached my code.
Thanks in advance,
Abhishek
Attachments:

Please Log in to join the conversation.

Time to create page: 0.162 seconds