updating do_task to sample from a rope distribution that rotates and translates