Trajectory planning of ur5 manipulator in ros

Hello, I wrote a send_cartesian_pose function by referring to test_move.py in Universal_Robots_ROS_Driver. This function uses pose_based_cartesian_traj_controller. Now I have a problem, I give the end Cartesian attitude point of the robotic arm (-0.59497, 0.40534, 0.07247, 3.43, 3.269, -0.184), (-0.59497, 0.40534, 0.07247, 3.580, 2.442, -1.089), among which only Rx,Ry and Rz have changed. Ideally, only the wrist 3 of the UR5 robot arm rotates, but the actual situation is that all 6 axes of the robot arm rotate. Could you please tell me how to make only wrist 3 rotate, thank you