-
The Problem (3 paragraphs)
- MuJoCo is the fastest-growing robotics simulator
- Converting URDF to MJCF is painful (./compile is buggy, urdf2mjcf ignores off-diagonal inertia, mesh paths break)
- You just want to convert and start training your RL agent
The Solution (show curl + Python code)
curl -X POST .../api/urdf/convert-format?target=mjcf \
-H "X-Api-Key: rk_..." -F "file=@robot.urdf"
import roboinfra
client = roboinfra.Client("rk_...")
result = client.urdf.convert_format("robot.urdf", "mjcf")
with open("robot.xml", "w") as f:
f.write(result.converted_xml)
-
Real Example (use your preview_test_arm.urdf)
- Show the input URDF (6 links, 5 joints)
- Show the output MJCF (with actuators, floor, lighting)
- "This would take 2-3 hours manually. API did it in 200ms."
-
Also Converts to Gazebo SDF
- Same API, just change target=sdf
- Show the SDF output
-
Bonus: Validate + Convert in CI
- GitHub Action YAML (6 lines)
- Validate URDF + convert to MJCF on every push
Free 14-day Pro trial, no credit card
Link: https://roboinfra-dashboard.azurewebsites.net
Top comments (1)
I'm a solo developer building RoboInfra an API platform for
robotics developers.
The problem: everyone working with MuJoCo needs MJCF files, but
most robot definitions are in URDF format. The existing converters
(MuJoCo's ./compile, urdf2mjcf, etc.) all have issues — off-diagonal
inertia ignored, mesh paths broken, base links deleted.
My API handles:
14-day Pro trial (no credit card): [link]
Python SDK: pip install roboinfra-sdk