I want to know what are the difficulties we face on simultaneously sending the UR Script on secondary interface (port 30002) and servoJ commands through ur_rtde python library ? I am running these on two different threads . None of them are running . I am using 5.25.1 polyscope version and also the RG2 gripper with the 1.10.1 version UR caps .
You can’t send servoj commands through RTDE, only set register values. You need a program (URP or URScript) running on the robot to read those values out of the registers and call servoj() with them. From the limited information in your question, I suggest you send your script via the secondary interface first, then once it is running, start sending the values in via RTDE. I’m not sure how the gripper fits into your question.