Obtaining the joint angles of the UR5 robot arm in the simulation
Posted: 25 May 2025, 06:17
hello,
I recently encountered a problem and I hope you can help me solve it. Thank you very much.
In my simulation environment, I added a UR5 robot arm and remotely controlled it in the simulation via Python using zmqAPI. I aim to move the arm to a target position by rotating its joints to my custom - defined angles. But after inputting a list of six joint angles and using sim.setJointTargetPosition () to set each joint's angle, when I use sim.getJointPosition () to retrieve the angles, the output angles don’t match my input ones. Also, the output varies each time I run it.
I recently encountered a problem and I hope you can help me solve it. Thank you very much.
In my simulation environment, I added a UR5 robot arm and remotely controlled it in the simulation via Python using zmqAPI. I aim to move the arm to a target position by rotating its joints to my custom - defined angles. But after inputting a list of six joint angles and using sim.setJointTargetPosition () to set each joint's angle, when I use sim.getJointPosition () to retrieve the angles, the output angles don’t match my input ones. Also, the output varies each time I run it.