Skip to content

microcosm/KinectV2-OSC

Repository files navigation

KinectV2OSC

Broadcasts KinectV2 skeletal data over OSC. That's it.

A Kinect V2 sensor

Handy if you want to quickly get skeleton data off of Windows and onto Mac, or into some other Windows app.

Just run the app

If you just want to run the app without digging into the code, you can simply follow these instructions:

  • Note that you need Windows 8.1, a USB3 port, and a new V2 Kinect sensor
  • Download and install the Kinect for Windows SDK 2.0
  • Download the release executable and run it. You should see a screen like this:

Screenshot of KinectV2OSC in action

  • By default, the executable broadcasts to port 12345 on IP address 127.0.0.1
  • To broadcast elsewhere, create a file named ip.txt in the same folder as the executable. Give the file a comma-separated list of IP asddresses to broadcast to, i.e.
127.0.0.1,192.168.1.100,192.168.1.112
  • Re-launch the executable

Compile from source

If you want to be able to change the port number, or edit the code, you will need to compile from source. Follow these instructions:

  • Note that you need Windows 8.1, a USB3 port, and a new V2 Kinect sensor
  • Download and install the Kinect for Windows SDK 2.0
  • Install Visual Studio (I am using Visual Studio Express 2013 for Windows Desktop - scroll down to find the download link)
  • MAKE SURE you are using Visual Studio Express for Windows Desktop - you have to scroll down to find that link!!
  • Clone this repo, and open KinectV2OSC.sln in Visual Studio. Hit the green 'Start' button. You should see a screen like this:

Screenshot of KinectV2OSC in action

  • To send to another destination, change the IP and port number here, and then re-launch:

How to configure IP and port number

You can enter a single IP Address or multiple, separated by commas.

What OSC messages get sent?

OSC messages are sent every frame. For each detected body, you will get a set of joints:

Address: /bodies/{bodyId}/joints/{jointId}
Values: - float:  positionX
        - float:  positionY
        - float:  positionZ
        - string: trackingState (Tracked, NotTracked or Inferred)

...and a pair of hands:

Address: /bodies/{bodyId}/hands/{handId} (Left or Right)
Values: - string: handState (Open, Closed, NotTracked, Unknown)
        - string: handConfidence (High, Low)

Project dependencies

  • Rug OSC to format and send messages

About

Broadcasts values from the Microsoft Kinect SDK over OSC

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages