Policy Stitching: Learning Transferable Robot Policies