pose=getCartesianPose(ur)
waits for the next published joint state from the Universal Robots cobot connected through
ROS interface, and returns current end-effector pose. If no message is received in 5
seconds, the function displays an error.
pose=getCartesianPose(ur,timeout)
allows you to specify a timeout for obtaining the current end-effector pose from the
Universal Robots cobot connected through ROS interface. If no message is received within the
specified time, the function displays an error.
Current end effector pose, returned as a 1-by-6 vector consisting of the three
orientation and position values (represented as [theta(z) theta(y) theta(x) x y z]) in
radians and meters respectively.
Data Types: double
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.