Task-oriented prediction and communication co-design for haptic communications