Skip to content

Commit 1e31b49

Browse files
committed
Update haptics example
1 parent 395c6df commit 1e31b49

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

examples/assets/haptics.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,23 @@
1414
<geom name='ground' type='plane' size='2 2 2' material='groundplane'
1515
friction='0.4'/>
1616
<light directional='true' diffuse='.7 .7 .7' pos='1 .1 2' dir='0 -.1 -2' specular='.3 .3 .3' castshadow='true'/>
17-
<body pos="0.4 0 0.4" >
18-
<geom type="box" size=".05 .05 .05" rgba="1 0 0 1" />
17+
<body pos="0.4 0. 0.37">
18+
<geom type="box" size="0.1 0.1 0.005" rgba="1 0 0 1"/>
19+
<geom pos="0 -0.075 0.01" type="box" size="0.1 0.025 0.005" rgba="0.5 0 0 1"/>
20+
<geom pos="0 0 0.01" type="box" size="0.025 0.05 0.005" rgba="0.5 0 0 1"/>
21+
</body>
22+
<body pos="0.45 0 0.4" >
23+
<geom type="box" size=".025 .025 .025" rgba="1 0 0 1" />
24+
<joint type="slide" axis="0 1 0" range="-0.075 0.075" />
25+
<joint type="slide" axis="1 0 0" range="-0.125 0.025" />
26+
</body>
27+
<body pos="0.4 0.4 0.355">
28+
<geom type="box" size="0.1 0.1 0.005" rgba="1 1 0 1"/>
29+
</body>
30+
<body pos="0.4 0.4 0.4">
31+
<geom type="sphere" size="0.04" rgba="1 1 0 1" />
32+
<joint type="slide" axis="0 1 0" range="-0.1 0.1" />
33+
<joint type="slide" axis="1 0 0" range="-0.1 0.1" />
1934
</body>
2035
</worldbody>
2136
</mujoco>

0 commit comments

Comments
 (0)