Measurement of arm impedance during robot therapy