- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm working with SDK 2016 R2 to get Skeleton points with my R200 camera. Setting up is ok but it's alway return 0 values. I heared that I need change the mode to "interactive" but I can't find any way to set it.
Can you solve this problem?
Thank you.
And if the problem can not be solved, I think I will create a console app with C++ (It works fine) and print the skeleton points data, and the C# app will read and process it. Any way better? Can you tell me?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The command is TRACKING_MODE_INTERACTIVE. A comment linked to below has a script showing how the instruction is used.
Also note in the script that Skeleton mode is Enabled. Enabling Skeleton mode is, according to other Skeleton mode users, the other thing you have to do to get Skeleton Tracking working, as it is apparently disabled by default.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But I can't find SetTrackingMode function in C# library, but in C++ Library, it exist. The sample code in the link is use C++ library.
This is my enable Skeleton code, I think it's ok.
senseManager.EnablePersonTracking();
personModule = senseManager.QueryPersonTracking();
personConfig = personModule.QueryConfiguration();
personConfig.QuerySkeletonJoints().Enable();
personConfig.QuerySkeletonJoints().SetTrackingArea(PXCMPersonTrackingConfiguration.SkeletonJointsConfiguration.SkeletonMode.AREA_FULL_BODY);
But when i get numbers of skeleton, it returns 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This discussion features a user who was trying to get skeleton tracking working in C# and was getting 0 returned. They provide a C# script (in the C# version of the code, PXCM is used instead of PXC, like you did in your own script.)
https://software.intel.com/en-us/forums/realsense/topic/685380 RealSense R200: How resolve call to QueryJoints (C# ) causing exception?
I believe that if the code is fine then skeleton tracking works once it has been Enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I edited Realsense library as this blog tutorial, but nothing changed.
https://mtaulty.com/2016/05/11/windows-10-wpf-realsense-sr300-person-tracking-continued/ https://mtaulty.com/2016/05/11/windows-10-wpf-realsense-sr300-person-tracking-continued/
Numbers of skeleton always return 0.
I tried to contact Mtaulty but failed.
Can you give me any other solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have carefully researched both this forum and the old RealSense forum that was used before this one. In all the cases of people who were trying skeleton and tracking and getting '0' returned, I could find only one person who got it working. They posted a script that seems to be C++ (I know you need C# ).
People found that whilst the C++ Person Tracking sample for the R200 provided with the SDK worked, they could not adapt the code for their own projects and just got '0' returned.
There is unfortunately no further information on this subject to research to try to find a solution. The best chance of a resolution may be if an Intel member picks up the case and researches it, as they have access to internal expertise that I do not. Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found a solution for this problem.
The most important thing you have to do is SetTrackingMode to TRACKING_MODE_INTERACTIVE, but the C # SDK does not have a function to do that.
So I tried to edit the pxcclr.cs library, but there is no function named SetTrackingMode.
I go deeper, I try to edit the cpp2c library, there is a function called SetTrackingMode, set the default value to TRACKING_MODE_INTERACTIVE, build a DLL file, import to project, and I succeeded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Awesome news! People have struggled with the skeleton tracking 'returns 0' problem for a very long time, so it's great that they have a new possibility to try. Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Clovers1254,
I am happy to see your answer, can you share your modified libpxccpp2c.dll file? Or any suggestion to be able to edit this file?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello! Can somebody post fixed libpxccpp2c.dll for x64?
I can't compile mine, it get me errors. (compile for x86 is good, but x64 - error "unresolved external symbol _UnityPluginUnload@0" and "_UnityPluginload@4")
It will be great if someone can help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't seen that error before. I've attached a copy of the x64 DLL of the file from my own installation of the '2016 R2' SDK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, thanks for the answer!
But,i think you missunderstand me(sorry, bad english)
It will be great, if someone post a rebuilded dll of libpxccpp2c.dll(for x64), with clovers1254 solution to problem with SetTrakingMode(edit the libpxccpp2c library, there is a function called SetTrackingMode, set the default value to TRACKING_MODE_INTERACTIVE, build a DLL file)
I can rebuild this DLL from sources by myself for x86, but then i try to do this for x64, VS gives me errors, that i mentioned above(Don't know why).
Maybe somebody here can do this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Going back to the start of this old discussion, I.see what you mean now. You would like someone to edit the cpp2c file and post an updated dll built from the edit. My apologies for the misunderstanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
i'm struggling to get the Skeleton tracking work with the C# SDK and R200 camera.
I've tried the solution mentioned by clovers1254 and haven't found any function with the name SetTrackingMode in the cpp2c library.
Does anyone know where i can find this function or know the solution in detail, to set the default value ?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page