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.
defaults to “192.168.1.102”.
IP address of the robot. Defaults to “192.168.1.102”.
defaults to None.
End effector class to use. Defaults to None.
defaults to 0.1.
Default velocity scaling (0-1). Defaults to 0.1.
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.
Image Never returns as exception is raised
cleanup
moveToDeltaPose
Move the robot end effector by a relative pose offset from its current pose.
Pose Relative pose offset to move by, containing position and orientation deltas blocking (bool), optional
defaults to False.
Wait for movement to complete. Defaults to False.
moving_time (float), optional
defaults to 0.3.
Time to complete the movement. Defaults to 0.3.
accel_time (float), optional
defaults to 0.15.
Time to accelerate/decelerate. Defaults to 0.15.
moveToPose
Move the robot end effector to a specified pose.
orientation (Orientation) blocking (bool), optional
defaults to True.
Wait for movement to complete. Defaults to True.
moving_time (float), optional
defaults to 0.3.
Time to complete the movement. Defaults to 0.3.
accel_time (float), optional
defaults to 0.15.
Time to accelerate/decelerate. Defaults to 0.15.
moveByVelocity
Move the robot end effector with specified velocities.
linear_velocity (Velocity) angular_velocity (Velocity)
stop
Stop any movement of the robot.
immediate (bool), optional
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.
Pose Current end effector position and orientation
getPosition
Get the current end effector position.
Position Current end effector position
name (str, optional): Unused
getOrientation
Get the current end effector orientation.
Orientation Current 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.
List of target joint angles in radians
blocking (bool), optional
defaults to True.
Wait for movement to complete. Defaults to True.
moving_time (float | None), optional
defaults to None.
Time to complete the movement. Defaults to None.
accel_time (float | None), optional
defaults to None.
Time to accelerate/decelerate. Defaults to None.
moveToHome