Control Architecture for a Lower Limbs Rehabilitation Robot System