Skip to main content

UR5e

Inherits from: Robot A class to control the Universal Robots UR5e robotic arm. This class provides methods to control the UR5e robot arm using the RTDE interface. It supports basic movement controls, gripper operations, and status queries.
RTDE Control interface object
RTDE Receive interface object
Gripper/end effector object if attached

UR5e

Initialize the UR5e robot arm.
required
defaults to “192.168.1.102”. IP address of the robot. Defaults to “192.168.1.102”.
required
defaults to None. End effector class to use. Defaults to None.
required
defaults to 0.1. Default velocity scaling (0-1). Defaults to 0.1.
required
defaults to 0.1. Default acceleration scaling (0-1). Defaults to 0.1.

getImage

Get an image from the robot’s camera.
The UR5e does not have a camera, so this method always raises an exception.
required
Unused
required
Unused
ImageNever returns as exception is raised

cleanup

moveToDeltaPose

Move the robot end effector by a relative pose offset from its current pose.
required
PoseRelative pose offset to move by, containing position and orientation deltas
defaults to False. Wait for movement to complete. Defaults to False.
defaults to 0.3. Time to complete the movement. Defaults to 0.3.
defaults to 0.15. Time to accelerate/decelerate. Defaults to 0.15.

moveToPose

Move the robot end effector to a specified pose.
required
PositionTarget position coordinates
required
OrientationTarget orientation
defaults to True. Wait for movement to complete. Defaults to True.
defaults to 0.3. Time to complete the movement. Defaults to 0.3.
defaults to 0.15. Time to accelerate/decelerate. Defaults to 0.15.
Unused

moveByVelocity

Move the robot end effector with specified velocities.
required
VelocityLinear velocity components
required
VelocityAngular velocity components
Unused

stop

Stop any movement of the robot.
If True, stops immediately by killing script. If False, performs controlled stop. Defaults to False.

grasp

release

shutdown

getEndEffectorPose

Get the current end effector pose.
PoseCurrent end effector position and orientation

getPosition

Get the current end effector position.
PositionCurrent end effector position name (str, optional): Unused

getOrientation

Get the current end effector orientation.
OrientationCurrent end effector orientation name (str, optional): Unused

getJointAngles

Get current joint angles.
List of current joint angles in radians

getJointVelocities

Get current joint velocities.
List of current joint velocities in radians/second

setJointAngles

Set joint angles directly.
required
List of target joint angles in radians
defaults to True. Wait for movement to complete. Defaults to True.
defaults to None. Time to complete the movement. Defaults to None.
defaults to None. Time to accelerate/decelerate. Defaults to None.

moveToHome