urRTDEClient
Connect to simulated or physical cobot from Universal Robots over RTDE
Since R2024a
Description
The
urRTDEClient
object represents a connection from MATLAB to the Real-Time Data Exchange (RTDE)
server in Universal Robots (UR) controller. You can connect to the UR controller in the
URSim offline simulator from Universal Robots or to the UR controller in a physical cobot,
and then exchange data over the RTDE protocol (version 2). To interact with the cobot to
read robot state data, send joint and Cartesian control commands, and follow a set of
joint-space or task-space waypoints, use this object with the functions listed in Object Functions.
Creation
Description
creates a connection, ur
= urRTDEClient(URControllerIP
)ur
, and connects to the RTDE server in the UR
controller at the specified IP address. The UR controller can run in the URSim
simulator or in the Mini-ITX PC in the Control Box.
sets properties using one or more name-value arguments. For example, to
exchange data at a rate of 500 Hz, set ur
= urRTDEClient(URControllerIP
,Name=Value
)RTDEFrequency
to
500
.
Input Arguments
Properties
Object Functions
readJointConfiguration | Get current joint configuration from the robot |
readJointVelocity | Get current joint velocities from the robot |
readCartesianPose | Get current end-effector pose from the robot |
readEndEffectorVelocity | Get current end-effector velocities from the robot |
recordRobotState | Log the key robot state parameters during motion of robot |
sendJointConfiguration | Command robot to move to desired joint configuration |
sendJointConfigurationAndWait | Command robot to move to joint configuration and wait for the motion to complete |
sendCartesianPoseAndWait | Command robot to move to desired Cartesian pose and wait for the motion to complete |
readMotionStatus | Get current motion status of the robot |
manageGripperAttachment | Attach or detach gripper connected to Universal Robots cobot |
actuateGripper | Control attached gripper with grip or release action |
sendServoJCommands | Send Servoj commands |
sendSpeedJCommands | Send speedj commands |
executeURScriptCommand | Send URScript command to control cobot over RTDE interface |
followCartesianWaypoints | Command robot to move along the desired Cartesian waypoints |
followJointWaypoints | Command robot to move along the desired joint space waypoints |
Examples
Version History
Introduced in R2024a