|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Visual Studios / C Language / WindRiver
Well I had made a program for the Kinect in Microsoft Visual Studios Express, but now what would be the best way to have the code work on the cRIO? IDK what to do and im open to any suggestions that would make it work.
Thanks, Davis |
|
#2
|
|||||
|
|||||
|
Re: Visual Studios / C Language / WindRiver
All three of the cRio languages have access to the Kinect skeletal data in the form of raw skeletal data n(20 3d positions) and KinectSticks (using angles from the Kinect skeletal data). There is no direct team access to the Kinect API from the cRio.
There is, however, a C# helper program which streams the Kinect data to the cRio over UDP. It is modifiable by teams, and launched by the dashboard. |
|
#3
|
|||
|
|||
|
Re: Visual Studios / C Language / WindRiver
Actually I just had an idea, though not sure how to make it happen.
If I am using the Kinect on the DS and I am running the Visual Studios C# code on the computer, can I set it up to send data (like a typical variable that is holding the y value of my left hand as a Float) an just use the normal WindRiver Development to recieve it and act based upon the value? |
|
#4
|
|||||
|
|||||
|
Re: Visual Studios / C Language / WindRiver
When the software in the kit comes out (sorry, I can't send it to you now, it's still in beta test), you will see exactly what I am talking about, and it will do it for you.
The Kinect software currently in beta test grabs data from the Kinect (specifically the angles of various arm joints) and bundles them as a pair of virtual joysticks, which are sent to the robot. You can modify the C# code to handle the mapping differently, and use the existing fields to send your own data. It also sends the raw skeletal data (20 3d points) to the robot. The robot software (language-independent) has access to this data in a very easy way. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|