Here is a script i wrote to smooth the value coming from the kinect, in order to send it to inmoov servos.

How you can see,  "hand is" is the value coming from the kinect and it is 5 , then 59 , then 28 , then 44... it would burn our servos..

"servo is" is the smoothed value !!! 

[[OpenNI.PIDSmoothingTest.Alessandruino.py]]