RoboDK Forum
how to do a rotation with a single joint by a python program ?可打印版本

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: how to do a rotation with a single joint by a python program ? (/Thread-how-to-do-a-rotation-with-a-single-joint-by-a-python-program)



how to do a rotation with a single joint by a python program ?-Mr.Relmy-03-21-2023

Hello,

I have a problem with a python program, when I want to do a rotation with a UR3e robot the coordinates in x,y,z work, the coordinates in rx,ry,rz work but I only want a rotation on a single joint.

I added a screenshot and the python program in attachments.

谢谢you for reading

Professor Relmy


RE: how to do a rotation with a single joint by a python program ?-Albert-03-22-2023

If you want to rotate a joint you can simply provide new joint values.

For example, if you want to move joint 6 by 180 deg:
Code:
joints = robot.Joints()
joints[5] = joints[5] + 180
robot.MoveJ(joints)