Tutorials for programming UR robots using URScript files.
If you do not have a UR robot, you can use its simulation by downloading a virtual machine containing the simulation of the robot and the controller. For an e-Series robot, you can download the version 5.12.6 LTS of Polyscope from the following link:
The URScript programming manual is available from the following link
URScript is a python-based scripting launguage.
The base frame in Polyscope is located according to the following picture
- From Main Panel select:
Program -> Advanced -> Script - Add the script to the
Robot Programand select the file containing the instructions
A pose is declared using p before the [] (otherwise it is considered as a list). Example:
pose = p[pos_x, pos_y, pos_z, rotVec_x, rotVec_y, rotVec_z]
Note that the rotation is described using the Rotation Vector notation. If you want to set a desired Roll-Pitch-Yaw angle, please use the converting function:
r = p[pos_x, pos_y, pos_z, rotVec_x, rotVec_y, rotVec_z]


