Skip to content

Add URDF importer skill for Claude Code - #5337

Closed
rdsa-nv wants to merge 4 commits into
isaac-sim:developfrom
rdsa-nv:rdsa-nv/urdf-importer-skill
Closed

rdsa-nv wants to merge 4 commits into
isaac-sim:developfrom
rdsa-nv:rdsa-nv/urdf-importer-skill

Conversation

@rdsa-nv

@rdsa-nv rdsa-nv commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a comprehensive Claude Code skill at .claude/skills/urdf-importer.md covering the full URDF-to-USD import pipeline
  • Documents both usage patterns (UrdfConverter direct and UrdfFileCfg in asset configs), all configuration options with types/defaults, per-joint regex gains, merge_fixed_joints internals, lazy conversion caching, and common pitfalls
  • Verified against the codebase: all config defaults, import paths, and pipeline steps match the source

Test plan

  • Clean install of Isaac Lab (./isaaclab.sh -u && ./isaaclab.sh -i) succeeded on fresh clone
  • Newton backend training verified (Cartpole, 1024 envs, 50 iters — reward ~290, episode length ~295)
  • Newton visualizer rendering confirmed on DISPLAY :99
  • merge_fixed_joints tested: chain of 3 fixed joints, no-fixed-joints passthrough, rotated child inertial merge with parallel axis theorem
  • UrdfConverterCfg defaults validated against source
  • Per-joint dict config (regex patterns) verified
  • All import paths in the skill confirmed working

🤖 Generated with Claude Code

Add an installation section to AGENTS.md with agent-specific guidance:
verification expectations, common automation mistakes table, and the
OMNI_KIT_ACCEPT_EULA environment variable warning.

AGENTS.md references quick_installation.rst for canonical install steps
instead of duplicating them. quick_installation.rst now uses
./isaaclab.sh -u instead of manual uv venv creation, aligning with
the recommended approach.
The conda documentation site returns 403 to automated crawlers,
causing the link checker to fail on any PR that touches doc files.
Other crawler-blocking sites are already excluded.
The ovphysx package uses LicenseRef-NVIDIA-Omniverse, which is not in
the default allowlist. Added as an exception alongside other NVIDIA
proprietary packages.
@github-actions github-actions Bot added documentation Improvements or additions to documentation infrastructure labels Apr 20, 2026
@rdsa-nv
rdsa-nv force-pushed the rdsa-nv/urdf-importer-skill branch from b56f282 to 9c42acc Compare April 20, 2026 22:40
Comprehensive skill covering the full URDF-to-USD pipeline, configuration
reference, per-joint regex gains, merge_fixed_joints internals, lazy
conversion caching, common pitfalls, and testing guidance.
@rdsa-nv
rdsa-nv force-pushed the rdsa-nv/urdf-importer-skill branch from 9c42acc to 36487bd Compare April 20, 2026 22:41
@greptile-apps

greptile-apps Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a Claude Code skill (.claude/skills/urdf-importer.md) documenting the full URDF-to-USD import pipeline, alongside supporting changes: a new quick_installation.rst page, agentic guidance in AGENTS.md, an ovphysx license exception, and a link-checker exclusion for docs.conda.io.

The skill content is broadly accurate and well-structured, but root_link_name is incorrectly placed in the "Deprecated options" section — it is an active, non-deprecated field in UrdfConverterCfg and should be moved to the configuration reference table instead.

Confidence Score: 4/5

Safe to merge after correcting the root_link_name deprecation error in the skill file.

One P1 documentation error (root_link_name incorrectly listed as deprecated) would actively mislead users into avoiding a valid configuration option; all other changes are benign documentation/infra additions.

.claude/skills/urdf-importer.md — the Deprecated options section and configuration reference table both need corrections for root_link_name.

Important Files Changed

Filename Overview
.claude/skills/urdf-importer.md New Claude Code skill documenting the URDF-to-USD pipeline; contains one factual error (root_link_name incorrectly listed as deprecated) and minor unit/omission issues.
.github/workflows/check-links.yml Minor addition of --exclude 'docs\.conda\.io' to the lychee link-checker args; no logic changes.
.github/workflows/license-exceptions.json Adds ovphysx with its NVIDIA Omniverse license to the license-check exceptions list; straightforward data-only change.
AGENTS.md Adds agentic installation guide (Newton backend setup, common automation mistakes, Isaac Sim optional install) and URDF importer context to the AI agent guidelines file.
docs/source/setup/quick_installation.rst New quick-installation RST page covering Newton-only and PhysX install paths, preset examples, and cross-references; content aligns with AGENTS.md guidance.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[URDF file] --> B{merge_fixed_joints?}
    B -- True --> C[XML pre-processing\nmerge child links into parents\nparallel axis theorem for inertia]
    B -- False --> D[Skip pre-processing]
    C --> E[urdf-usd-converter]
    D --> E
    E --> F[Intermediate .usd]
    F --> G[remove_custom_scopes\nadd_rigid_body_schemas\nadd_joint_schemas]
    G --> H{collision_from_visuals?}
    H -- True --> I[collision_from_visuals\nadd collision meshes]
    H -- False --> J[Skip]
    I --> K[joint_drives / fix_base / link_density]
    J --> K
    K --> L[asset transformer]
    L --> M[Final .usda]
    M --> N{Cached?}
    N -- MD5 match + file exists --> O[Return cached path]
    N -- Changed or force --> M
Loading

Reviews (1): Last reviewed commit: "Add URDF importer skill for Claude Code" | Re-trigger Greptile

Comment on lines +246 to +249
## Deprecated options (importer 3.0)

These options are no longer functional and will emit warnings:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 root_link_name is not deprecated

The skill lists root_link_name under "Deprecated options (importer 3.0)" with the note "root link determined by PhysX", but the source code in urdf_converter_cfg.py shows it as an active field with no deprecation notice:

root_link_name: str | None = None
"""The name of the root link. Defaults to None.
If None, the root link will be set by PhysX.
"""

Users reading this skill will incorrectly believe root_link_name is broken/ignored and won't use it when they need it. It should either be removed from the deprecated list or added to the configuration reference table above.

Suggested change
## Deprecated options (importer 3.0)
These options are no longer functional and will emit warnings:
- `convert_mimic_joints_to_normal_joints` — mimic joints handled natively
- `replace_cylinders_with_capsules` — no longer supported
- `NaturalFrequencyGainsCfg` — use `PDGainsCfg` instead

Comment on lines +127 to +130

**Unit conversion note**: For revolute joints, user-facing values (Nm/rad) are
automatically converted to USD convention (Nm/deg) by multiplying by `pi/180`.
Prismatic joint values are stored directly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unit mismatch for prismatic joints vs source docstring

The skill documents prismatic stiffness as N/m and damping as N/(m/s), but the source docstring in urdf_converter_cfg.py reads "N/rad" and "N/(rad/s)" for the second case. While N/m / N/(m/s) may be more physically intuitive for a joint measured in meters, users cross-referencing the skill against the Python docstring will see a discrepancy. Aligning the language (or adding a clarifying note) reduces confusion.

Suggested change
**Unit conversion note**: For revolute joints, user-facing values (Nm/rad) are
automatically converted to USD convention (Nm/deg) by multiplying by `pi/180`.
Prismatic joint values are stored directly.
| `stiffness` | `float \| dict[str,float] \| None` | `None` | Stiffness in Nm/rad (revolute) or N/rad (prismatic). `None` preserves importer values. Dict maps joint regex→value |
| `damping` | `float \| dict[str,float] \| None` | `None` | Damping in Nm/(rad/s) or N/(rad/s). `None` preserves importer values. Dict maps joint regex→value |

Comment on lines +90 to +100
),
},
)
```

## Configuration reference

### `UrdfConverterCfg` (extends `AssetConverterBaseCfg`)

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 root_link_name missing from configuration reference table

The field root_link_name: str | None = None exists in UrdfConverterCfg but is absent from the configuration reference table. Since it's listed (incorrectly) as deprecated later in the skill, users have no way to discover it here.

Suggested change
),
},
)
```
## Configuration reference
### `UrdfConverterCfg` (extends `AssetConverterBaseCfg`)
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `root_link_name` | `str \| None` | `None` | Name of the root link. `None` → PhysX selects the root automatically |
| `make_instanceable` | `bool` | `True` | Make USD instanceable (saves memory with multiple copies) |

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Isaac Lab Review Bot

Summary

This PR adds a comprehensive Claude Code skill documenting the URDF-to-USD import pipeline, updates AGENTS.md with agentic installation guidance, modifies quick_installation.rst to use the CLI-based ./isaaclab.sh -u workflow, and adds CI infrastructure fixes (link checker exclusion for docs.conda.io, license exception for ovphysx). The skill is well-researched and mostly accurate against the current codebase.

Architecture Impact

No cross-module impact — these are documentation and CI infrastructure changes only. No code changes to the URDF converter or other runtime components.

Implementation Verdict

Minor fixes needed — Clean implementation overall, but the URDF importer skill has one missing configuration parameter and one minor documentation issue that should be addressed.

Test Coverage

Not required — This PR contains only documentation and CI workflow changes. No new features, bug fixes, or behavioral changes that would require testing.

CI Status

All checks passing ✅

Findings

🔵 Improvement: .claude/skills/urdf-importer.md — Missing merge_mesh configuration parameter

The skill's configuration reference table documents most UrdfConverterCfg parameters but omits merge_mesh: bool = False ("Merge meshes where possible to optimize the model"). For completeness, add this to the table.

🔵 Improvement: .claude/skills/urdf-importer.md:127 — Unit conversion note could clarify direction

The note says "values (Nm/rad) are automatically converted to USD convention (Nm/deg) by multiplying by pi/180" — this is technically correct but could confuse readers. Multiplying by pi/180 converts degrees to radians, but here we're converting the denominator from radians to degrees (so the numerical value gets smaller). Consider rephrasing to: "For revolute joints, the converter divides user-facing stiffness/damping values by 180/pi to convert from Nm/rad to USD's Nm/deg convention." Alternatively, keep as-is since the code does literally value * pi / 180.

🔵 Improvement: docs/source/setup/quick_installation.rst — Environment name change

The PR changes the venv directory from .venv to env_isaaclab. This aligns with the CLI default (./isaaclab.sh -u creates env_isaaclab by default), but the existing docs used .venv. Verify this is the intended direction — the change looks correct given the CLI implementation.

Overall: solid documentation work. The skill accurately reflects the current URDF importer implementation including the merge_fixed_joints pre-processing, lazy caching, joint drive regex patterns, and deprecated options. The AGENTS.md additions provide valuable guidance for agentic workflows.

@garylvov

garylvov commented Apr 21, 2026 •

Copy link
Copy Markdown
Collaborator

I'm excited to try this out thank you! In particular, I'd love for an agent to be able to resolve the collision issues in #4285 and #1687 by using the USD API and running automated collision tests.

I think we should have these as more generic https://agentskills.io/ skills, so that they could be used by other tools than just Claude, like in
https://github.com/NVlabs/RoboLab/tree/main/skills

@rdsa-nv

rdsa-nv commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

I'm excited to try this out thank you! In particular, I'd love for an agent to be able to resolve the collision issues in #4285 and #1687 by using the USD API and running automated collision tests.

I think we should have these as more generic https://agentskills.io/ skills, so that they could be used by other tools than just Claude, like in https://github.com/NVlabs/RoboLab/tree/main/skills

Thanks for the feedback @garylvov sharing those links to collision issues!

@AntoineRichard

AntoineRichard commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @rdsa-nv — thanks for putting this one up! 🙏

We're doing a cleanup pass over the Isaac Lab PR backlog, which had grown past 400 open pull requests, and we're closing out the ones that have gone quiet so the queue is reviewable again.

Why this PR is being closed: Here is exactly what we found on this PR when we reviewed the backlog:

Opened 2026-04-20 (about 4 months ago)
Last commit on the branch 2026-04-20
Last activity from the author about 4 months ago
Target branch develop
Review status Never reviewed by a maintainer — nobody on the team got to it. Sorry about that.
Merge status Unknown
Size 4 commit(s), 5 file(s) changed, +305 / -3

It was picked up by the sweep because it has been open for about 4 months. It was then put in the "close" bucket because the author has been silent for about 4 months — which is the signal we used to tell apart pull requests that are still being worked on from ones that have genuinely been set aside.

We deliberately did not close pull requests that were approved and ready to land, or that were small and clearly still fixing a live bug — there were 27 of those, and we are merging them rather than closing them.

No judgement on the change itself — this is purely backlog hygiene.

If this is still wanted, please reopen it or re-submit against develop. 💚


🤖 This comment was drafted with AI assistance as part of a maintainer-led sweep of the Isaac Lab pull request backlog. A maintainer is behind this cleanup — but if this closure looks wrong, it may well be, so please push back and we'll take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants