diff --git a/src/roboticstoolbox/models/DH/UR10.py b/src/roboticstoolbox/models/DH/UR10.py index d2406e03a..31d84b847 100644 --- a/src/roboticstoolbox/models/DH/UR10.py +++ b/src/roboticstoolbox/models/DH/UR10.py @@ -30,11 +30,17 @@ class UR10(DHRobot): .. note:: - SI units are used. - - The last link's inertia tensor has :math:`I_{xx} = 0` -- that's not - a bug in this model, it's what the manufacturer's own reference - (below) publishes. It makes the robot's inertia matrix near-singular - (``det(robot.inertia(q)) ~ 2e-6``), so dynamics work that needs a - well-conditioned inertia matrix should account for this. + - The manufacturer's reference (below) gives the mass and centre of + mass of each link of the UR10, but inertia tensors only for the + UR10e. The inertia tensors used here are the UR10e ones. + - That table rounds to 4 decimal places, so the last link's + :math:`I_{xx}`, shown there as 0.0000, is only known to be below + 0.00005. With the zero used here the robot's inertia matrix is + near-singular (``det(robot.inertia(q)) ~ 2e-6``), so dynamics work + that needs a well-conditioned inertia matrix should account for + this. For the UR10 itself, ROS-Industrial's ``ur_description`` + package gives 0.0004 for this term, from values it says are + extracted from URSim. :References: diff --git a/src/roboticstoolbox/models/DH/UR5.py b/src/roboticstoolbox/models/DH/UR5.py index 2f8b93d9e..f1261a1c4 100644 --- a/src/roboticstoolbox/models/DH/UR5.py +++ b/src/roboticstoolbox/models/DH/UR5.py @@ -13,7 +13,7 @@ class UR5(DHRobot): :param symbolic: use symbolic constants :type symbolic: bool - ``UR5()`` is an object which models a Unimation Puma560 robot and + ``UR5()`` is an object which models a Universal Robots UR5 robot and describes its kinematic and dynamic characteristics using standard DH conventions. @@ -30,12 +30,21 @@ class UR5(DHRobot): .. note:: - SI units are used. + - The model has no link inertia: the manufacturer's reference (below) + publishes the mass and centre of mass of each link, but no inertia + tensor for the UR5. Dynamics computed with this model treat each + link as a point mass, and the robot's inertia matrix is singular: + the last link's centre of mass lies on the joint 6 axis, so the + last row and column of ``robot.inertia(q)`` are zero. The inertia + tensors in ROS-Industrial's ``ur_description`` package are + estimates that treat each link as a cylinder, so they are not used + here. :References: - `Parameters for calculations of kinematics and dynamics `_ - :sealso: ``UR4``, :func:`UR10` + :sealso: :func:`UR3`, :func:`UR10` .. codeauthor:: Peter Corke @@ -58,18 +67,18 @@ def __init__(self, symbolic: bool = False) -> None: # robot length values (metres) a = [0, -0.42500, -0.39225, 0, 0, 0] - d = [0.089459, 0, 0, 0.10915, 0.09465, 0.0823] + d = [0.089159, 0, 0, 0.10915, 0.09465, 0.0823] alpha = [pi / 2, zero, zero, pi / 2, -pi / 2, zero] # mass data, no inertia available - mass = [3.7000, 8.3930, 2.33, 1.2190, 1.2190, 0.1897] + mass = [3.7000, 8.3930, 2.33, 1.2190, 1.2190, 0.1879] center_of_mass = [ [0, -0.02561, 0.00193], [0.2125, 0, 0.11336], [0.15, 0, 0.0265], [0, -0.0018, 0.01634], - [0, -0.0018, 0.01634], + [0, 0.0018, 0.01634], [0, 0, -0.001159], ] links = []