computing current cartesian speed for the arm