/websock-osc

Contains Javascript WebSocket server and Python client

Primary LanguageJavaScript

websock-osc

Contains Javascript WebSocket server and Python client

npm libraries used for server: npm install node-osc npm install ws

python2 libraries for client: pip install websocket-client (python2 -m pip install websocket-client)

Setup:

  • Clone this repo on both the Server (Windows Machine connected to the Kinect) and the Client (Any system which wants the Kinect data)
  • On the Server, cd into this directory and run
  •       npm install .
    
  • Install Microsoft Kinect SDK and NI Mate on the Server system, and check your connection to the Kinect using Kinect Studio and NI Mate's viewer.
  • The client needs to install the Python2 library listed above.

Usage:

  • Start NI Mate on the Server and change the IP to which the data is sent to 127.0.0.1:3333 in the 'Setup' and 'Kinect for Windows --> Skeleton Tracking' (you might have to click the lock to enable editing).
  • Go to 'log' and check the 'OSC' checkbox to be check if the OSC data is being sent.
  • Open a Command Window and cd into this directory.
  • Launch the server.js file
  • node server.js
    
  • On the client side, launch the pyclient.py file.