Skip to content

fix(models): fall back to robot_descriptions' new naming, hide wrapped dependency on failure#529

Merged
petercorke merged 3 commits into
mainfrom
fix/robot-descriptions-name-fallback
Jul 3, 2026
Merged

fix(models): fall back to robot_descriptions' new naming, hide wrapped dependency on failure#529
petercorke merged 3 commits into
mainfrom
fix/robot-descriptions-name-fallback

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

  • _load_urdf_from_RD() in URDFRobot.py only tried robot_descriptions.{name}_description. robot_descriptions has been migrating some models to new names (e.g. ur5_description -> ur5_official_description); once CI installed a version where an old name no longer resolves, this surfaced as ValueError: Robot model 'X' not found in robot_descriptions for panda, pr2, yumi, ur10/ur3/ur5, j2n6s200 — invisible locally where an older cached version still worked (with just a FutureWarning)
  • Now tries the current name first, falls back to {name}_official_description
  • Suppresses the FutureWarning, which names "robot_descriptions" directly — an implementation detail users of roboticstoolbox never opted into seeing
  • Rephrased the final failure message to not name the wrapped dependency either

Test plan

  • pytest tests/test_models.py tests/test_BaseRobot.py tests/test_CustomXacro.py tests/test_Robot.py tests/test_IK.py -q — 162 passed, 1 skipped
  • Full suite: 615 passed, 9 skipped
  • ruff check clean

🤖 Generated with Claude Code

petercorke and others added 2 commits July 3, 2026 09:57
…apped dependency on failure

_load_urdf_from_RD() only tried "{name}_description", which robot_descriptions
has been migrating away from for some models (e.g. ur5_description ->
ur5_official_description) — surfaced as CI failures for panda, pr2, yumi,
ur10/ur3/ur5, and j2n6s200 once CI's fresh install picked up a version where
the old names no longer resolve, while a locally-cached older version still
worked (with only a deprecation warning).

Now tries the current name first, falls back to "{name}_official_description",
and suppresses the FutureWarning either way — it names "robot_descriptions"
directly, an implementation detail callers of roboticstoolbox never opted
into knowing about. The final error message on total failure is likewise
rephrased to not name the wrapped dependency.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TEMPORARY, for CI validation only — revert before merging. See
refactor/c-extensions@6dcfc624 for the same change and rationale.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@petercorke petercorke merged commit d8441a3 into main Jul 3, 2026
1 of 13 checks passed
@petercorke petercorke deleted the fix/robot-descriptions-name-fallback branch July 3, 2026 00:20
@github-actions github-actions Bot mentioned this pull request Jul 3, 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.

1 participant