added upsampling for grasping the rope