Fix bug in frame saving. Fixes #1802

PiperOrigin-RevId: 651696068
Change-Id: Ie1e2e1de4e83c42f2b5ebcc3afd0540b9afe7bbd
This commit is contained in:
Alessio Quaglino
2024-07-12 01:55:35 -07:00
committed by Copybara-Service
parent 3d1d1d0718
commit 2f46dec669
5 changed files with 175 additions and 42 deletions
+31
View File
@@ -0,0 +1,31 @@
<mujoco model="load save load test model with 2 frames">
<worldbody>
<frame name="frame1" pos=".1 .2 .3">
<geom name="geom1" type="sphere" size=".1"/>
<body name="root1">
<geom type="sphere" size=".1"/>
</body>
<frame name="frame2" pos=".01 .02 .03">
<geom name="geom2" type="sphere" size=".1"/>
<body name="root2">
<geom type="sphere" size=".1"/>
<body name="root22">
<geom type="sphere" size=".1"/>
</body>
</body>
<geom name="geom3" type="sphere" size=".1"/>
<body name="root3">
<geom type="sphere" size=".1"/>
<body name="root5">
<geom type="sphere" size=".1"/>
</body>
</body>
</frame> <!-- end frame1 -->
</frame><!-- end frame2 -->
</worldbody>
</mujoco>