Hi! I'm using Kinect with OSCeleton and it is sending the data thru UDP. I can 
receive it in python, but i can't decode it. 

I have this:
--------------------------------------------------
import socket

UDP_IP = "127.0.0.1"
UDP_PORT = 7110

sock = socket.socket(socket.AF_INET,  # Internet
                     socket.SOCK_DGRAM)  # UDP
sock.bind((UDP_IP, UDP_PORT))

while True:
    data, addr = sock.recvfrom(1024)  # buffer size is 1024 bytes
    print(data)
--------------------------------------------------


And I'm  receiving something like this:
--------------------------------------------------

b'/osceleton2/joint\x00\x00\x00,siiffffd\x00\x00\x00head\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05C\xec\xad&C\xa0\x81vDG\x84N?\x80\x00\x00Bu\x7f\xedh5f\x9b'
--------------------------------------------------


It supouse to be this:
--------------------------------------------------
Address pattern: "/osceleton2/joint"
Type tag: "siiffffd"
s: Joint name, check out the full list of joints below
i: The ID of the sensor
i: The ID of the user
f: X coordinate of joint in real world coordinates (centimetres)
f: Y coordinate of joint in real world coordinates (centimetres)
f: Z coordinate of joint in real world coordinates (centimetres)
f: confidence value in interval [0.0, 1.0]
d: time stamp in milliseconds since Unix epoch

example:

/osceleton2/joint head 0 1 109.07692 54.557518 666.81543 1. 0.
--------------------------------------------------

Can somebody help me? I worked with OSCeleton in Max/MSP and was fantastic, but 
here i have this problem. 


Thanks in advice!


OSCeleton: https://github.com/Zillode/OSCeleton-KinectSDK2
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to