Skip to content

Commit abb13b6

Browse files
author
Peter
committed
fix hopper model
1 parent 4370052 commit abb13b6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/hopper.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<mujoco model="hopper">
2-
<compiler angle="degree" coordinate="global" inertiafromgeom="true"/>
2+
<compiler angle="degree" inertiafromgeom="true"/>
33
<default>
44
<joint armature="1" damping="1" limited="true"/>
5-
<geom conaffinity="1" condim="1" contype="1" margin="0.001" friction="0.8 .1 .1" material="geom" rgba="0.8 0.6 .4 1" solimp=".8 .8 .01" solref=".02 1"/>
5+
<geom conaffinity="1" condim="1" contype="1" margin="0.001" friction="0.8 .1 .1" rgba="0.8 0.6 .4 1" solimp=".8 .8 .01" solref=".02 1"/>
66
<motor ctrllimited="true" ctrlrange="-.4 .4"/>
77
</default>
88
<option integrator="RK4" timestep="0.002"/>
99
<worldbody>
10-
<!-- CHANGE: body pos="" deleted for all bodies (you can also set pos="0 0 0", it works)
11-
Interpretation of body pos="" depends on coordinate="global" above.
12-
Bullet doesn't support global coordinates in bodies, little motivation to fix this, as long as it works without pos="" as well.
13-
After this change, Hopper still loads and works in MuJoCo simulator.
14-
-->
1510
<body name="torso">
1611
<joint armature="0" axis="1 0 0" damping="0" limited="false" name="ignore1" pos="0 0 0" stiffness="0" type="slide"/>
1712
<joint armature="0" axis="0 0 1" damping="0" limited="false" name="ignore2" pos="0 0 0" ref="1.25" stiffness="0" type="slide"/>

0 commit comments

Comments
 (0)