Skip to main content
Run any Skill in Manus
with one click

align-urdf-mjcf

Stars132
Forks67
UpdatedJuly 20, 2026 at 06:14

Align a MuJoCo MJCF robot model with a URDF source while preserving kinematics, geometry, masses, centers of mass, and inertia tensors. Runs a staged pipeline: normalize the raw ONShape URDF (fix mesh filenames, canonicalize/rename joints, remove the synthetic root) with normalize_onshape_urdf.py, visually inspect it against world axes with view_urdf.py, apply the user-specified heading rotation with apply_urdf_heading.py (base mesh AND inertia rotate together), regenerate the arm MJCF with urdf_to_arm_mjcf.py, then re-sync every gripper config's per-arm mount with sync_gripper_mounts.py. Use when comparing or synchronizing .urdf and .xml robot descriptions, aligning URDF link frames or mesh headings with world axes, changing a robot root or base orientation without moving downstream links unintentionally, fixing mesh paths or joint names, matching home-pose link frames and link lengths, converting URDF inertias to MuJoCo principal inertias, keeping an arm model at a specified DOF count without embedding grip

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
3 files
SKILL.md
readonly