Motion Interactive Medical Exercise Robot (M.I.M.E.R) code