Open
Description
Currently the velocities are estimated using a Savitsky-Golay filter, which tries to fit (in the least-squares sense) a 2nd-order polynomial to the last N joint position measurements, and then uses the derivative of the polynomial in the center of the sliding window as velocity estimate. This method is actually equivalent to a 1st-order low-pass filter. We may get better results by using a 2nd-order Butterworth filter, but this remains to be verified on the robot.