Skip to content

Commit 56dda2b

Browse files
authored
[Add Model] Make a flex with textured bunny
- Make a flex with textured bunny from disscution(#2442)
1 parent e16354a commit 56dda2b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

model/flex/bunny_with_uv.xml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!-- Copyright 2024 DeepMind Technologies Limited
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
14+
-->
15+
16+
<mujoco model="Trilinear">
17+
<include file="scene.xml"/>
18+
19+
<option solver="CG" tolerance="1e-6" timestep=".001" integrator="implicitfast"/>
20+
21+
<size memory="100M"/>
22+
23+
<visual>
24+
<map stiffness="100"/>
25+
</visual>
26+
27+
28+
<asset>
29+
<texture name="texsponge" type="2d" file="sponge.png"/>
30+
<material name="matsponge" texture="texsponge" specular="0.3"/>
31+
</asset>
32+
33+
<worldbody>
34+
<body>
35+
<joint name="press" type="slide" axis="0 0 1" damping="500"/>
36+
<geom type="box" size=".02 .2 .2" pos="0 0 .5"/>
37+
</body>
38+
<flexcomp type="mesh" file="bunny_with_uv.obj" pos="0 0 .1" dim="2" euler="90 0 0"
39+
radius=".001" material="matsponge" mass=".05" name="softbody" dof="trilinear">
40+
<elasticity young="1e3" poisson="0.1" damping="0.001"/>
41+
<contact selfcollide="none" internal="false"/>
42+
</flexcomp>
43+
</worldbody>
44+
45+
<actuator>
46+
<position name="press" joint="press" gear="-1 0 0 0 0 0" ctrlrange="-1 1" kp="1000"/>
47+
</actuator>
48+
</mujoco>

0 commit comments

Comments
 (0)