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.Attributes
UR5e
Arguments
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
The UR5e does not have a camera, so this method always raises an exception.
cleanup
moveToDeltaPose
Arguments
PoseRelative 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
Arguments
OrientationTarget 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.
name (str), optional
Unused
moveByVelocity
Arguments
stop
Arguments
immediate (bool), optional
If True, stops immediately by killing script.
If False, performs controlled stop. Defaults to False.
grasp
release
shutdown
getEndEffectorPose
getPosition
getOrientation
Returns
OrientationCurrent end effector orientation
name (str, optional): Unused
getJointAngles
Returns
List of current joint angles in radians
getJointVelocities
Returns
List of current joint velocities in radians/second
setJointAngles
Arguments
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.