A new smart prosthetic socket and transfemoral residual limb simulator