Skip to content

fix(models): match the DH UR5 to the manufacturer's table, and say where the UR inertia comes from - #962

Merged
petercorke merged 3 commits into
petercorke:mainfrom
ddivyanshsharmaa:fix/ur-model-data
Nov 28, 2026
Merged

petercorke merged 3 commits into
petercorke:mainfrom
ddivyanshsharmaa:fix/ur-model-data

Conversation

@ddivyanshsharmaa

Copy link
Copy Markdown
Contributor

Summary

For #637 I went back to the manufacturer's page that both classes cite (Parameters for calculations of kinematics and dynamics).

UR5: real inertia data does not exist publicly. Universal Robots publishes mass and centre of mass for the UR5, but no inertia tensor. The tensors in ROS-Industrial's ur_description (config/ur5/physical_parameters.yaml) are marked "generated using cylinder approximation", and Kufieta's 2014 NTNU thesis also builds them from cylinders. So I took the issue's second route and documented the model as having no link inertia, rather than adding estimated values.

While comparing, I found three values in DH/UR5.py that differ from that table. They look like transcription slips, so this PR changes them:

was table
d1 0.089459 0.089159
link 6 mass 0.1897 0.1879
link 5 centre of mass, y -0.0018 0.0018 (link 4 is -0.0018)

This changes numerical results. fkine moves by 0.3 mm in z, and rne/gravload change slightly. The docstring also said the class models a Puma 560, and its see-also pointed to a UR4. Both are fixed.

UR10: the zero is a rounding. The page gives inertia tensors only for the UR10e, not the UR10, and DH/UR10.py uses those UR10e values with the UR10 masses. The table is printed to 4 decimal places, so the last link's Ixx of 0.0000 only means it is below 0.00005. I rewrote the note to say this. ROS-Industrial's UR10 file, whose values it says are "extracted from URSim", gives ixx: 0.00040 for wrist_3. I have not changed the data. If you would rather use the URSim tensors for the UR10, I can do that in a follow-up.

Related issue

Closes #637

What I ran

  • I checked every changed value and every claim in the new notes against the model: the UR5's last row and column of inertia(q) are zero, and the UR10's det(inertia(q)) is about 2e-6 at qz and qr.
  • pytest tests/test_symbolic_ik.py tests/test_DHRobot.py tests/test_models.py tests/test_hasdynamics.py tests/test_dynamics_defaults.py -m "not slow": 156 passed, 6 failed. The 6 fail identically on unchanged main on my machine: four need an installed roboticstoolbox.__version__, and two need robot_descriptions to clone assets. I ran on Windows with the pure-Python fallback, because I could not build the extension here.

AI disclosure

Claude Code (Claude Opus 5.5) helped find the sources and make this change. I read the diff and checked the values against the manufacturer's page myself.

🤖 Generated with Claude Code

…ere the UR inertia comes from

UR5: d1 was 0.089459, link 6 mass 0.1897 and the link 5 centre of mass
y -0.0018; the manufacturer's table, which the class cites, gives
0.089159, 0.1879 and +0.0018.  The docstring now says the model has no
link inertia, because none is published for the UR5, and it no longer
calls the robot a Puma 560.

UR10: the inertia tensors are the ones published for the UR10e, and the
"Ixx = 0" of the last link is a value rounded to 4 decimal places; the
note now says so.

Refs petercorke#637

Co-Authored-By: Claude Code (Claude Opus 5.5) <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 7a17807 into petercorke:main Nov 28, 2026
22 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DH model inertia data incomplete: UR5 (missing entirely), UR10 (last-link Ixx=0)

2 participants