UR5e
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.
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.
cleanup
moveToDeltaPose
Move the robot end effector by a relative pose offset from its current pose.
Relative 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.
Target 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.
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.
getPosition
Get the current end effector position.
getOrientation
Get the current end effector 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
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
Was this page helpful?