URScript is the programming language used to control Universal Robots arms such as the UR5E. A script is a list of commands that the robot controller runs line by line. The functions below are grouped by what they do.
Motion Commands
How the tool is moved from one waypoint to the next:
movejgoes to a safe waypoint along a curved path in joint spacemovelgoes in a straight line path to or from an objectmovepmoves at a constant speed, useful for a process path such as dispensing
Pose Utilities
Helpers for building and inverting poses:
pose_transapplies an offset to a starting pose, so the new pose is built from a previous pose rather than a new hardcoded posepose_invinverts a pose transform
Kinematics
These two functions convert between joint space and Cartesian space, the core of forward and inverse kinematics:
get_forward_kintakes joint values and returns the resulting TCP pose , the directionget_inverse_kintakes a desired TCP pose and returns joint values , the direction
State Reads
Functions that read back the live robot state:
get_actual_tcp_posereturns the robot's current TCP pose, usually in the pose formatget_actual_joint_positionsreturns the current 6 joint angles, the direct robot state in joint space