-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyMJCF: Don't replace
'/' -> '\'
in attributes that may contain fil…
…esystem path information. PiperOrigin-RevId: 631419245 Change-Id: I317bae0b5b6d6041baaf1ca663cd5628012831a0
- Loading branch information
1 parent
f3e1114
commit ad0824f
Showing
3 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<mujoco model="Textured cube and mesh"> | ||
<compiler meshdir="meshes" texturedir="textures"/> | ||
<asset> | ||
<mesh name="cube" file="cube.stl"/> | ||
<mesh name="another_cube" file="more_meshes/cube.stl"/> | ||
<mesh name="unused_asset_should_not_cause_problems" file="cube.stl"/> | ||
<mesh name="cube_msh" file="cube.msh"/> | ||
<texture name="texture" file="deepmind.png"/> | ||
<material name="mat_texture" texture="texture"/> | ||
<hfield name="hill" file="../textures/deepmind.png" size="0.5 0.5 0.5 0.1"/> | ||
</asset> | ||
<worldbody> | ||
<light diffuse=".5 .5 .5" pos="0 0 3" dir="0 0 -1"/> | ||
<geom name="left/cube" type="mesh" mesh="cube" material="mat_texture"/> | ||
<geom name="right/cube" type="mesh" mesh="another_cube" material="mat_texture" pos="2.5 0. 0."/> | ||
<geom type="mesh" mesh="cube_msh" material="mat_texture" pos="4. 0. 0."/> | ||
<geom type="hfield" hfield="hill" pos="1.2 0. 0" rgba="0. 0.9 0. 1" size="40 40 0.1"/> | ||
</worldbody> | ||
</mujoco> |