Skip to content

Commit 136daff

Browse files
FD-Shubhamnevalsar
andauthored
Update wiki/simulation/mujoco-robot-modeling.md
Co-authored-by: Nevin Valsaraj <5763537+nevalsar@users.noreply.github.com>
1 parent 5b1ed85 commit 136daff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wiki/simulation/mujoco-robot-modeling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ import mujoco
254254

255255
# Load from URDF and save as MJCF
256256
model = mujoco.MjModel.from_xml_path('my_robot.urdf')
257-
mujoco.mj_saveModel(model, 'my_robot.xml')
257+
mujoco.mj_saveLastXML('my_robot.xml', model)
258258
```
259259

260260
> The URDF-to-MJCF conversion may produce suboptimal contact and collision parameters. Always review the converted MJCF manually — especially the `<contact>`, `<option>`, and `<actuator>` sections.

0 commit comments

Comments
 (0)