Repository navigation
fix(models): match the DH UR5 to the manufacturer's table, and say where the UR inertia comes from - #962
Merged
Conversation
…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>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
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
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pythat differ from that table. They look like transcription slips, so this PR changes them:d1This changes numerical results.
fkinemoves by 0.3 mm in z, andrne/gravloadchange slightly. The docstring also said the class models a Puma 560, and its see-also pointed to aUR4. Both are fixed.UR10: the zero is a rounding. The page gives inertia tensors only for the UR10e, not the UR10, and
DH/UR10.pyuses those UR10e values with the UR10 masses. The table is printed to 4 decimal places, so the last link'sIxxof 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", givesixx: 0.00040forwrist_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
inertia(q)are zero, and the UR10'sdet(inertia(q))is about 2e-6 atqzandqr.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 unchangedmainon my machine: four need an installedroboticstoolbox.__version__, and two needrobot_descriptionsto 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