Skip to content

Commit a771b56

Browse files
erez-tomcopybara-github
authored andcommitted
Re-organize common assets.
PiperOrigin-RevId: 606036222 Change-Id: I2ba439e8b22a4b6436cb619685c2aecbe750d65e
1 parent 4aedf43 commit a771b56

File tree

17 files changed

+37
-60
lines changed

17 files changed

+37
-60
lines changed

mjpc/tasks/allegro/cube.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

mjpc/tasks/allegro/task.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<framequat name="cube_goal_orientation" objtype="body" objname="goal"/>
6161
</sensor>
6262

63-
<include file="cube.xml"/>
63+
<include file="../common_assets/reorientation_cube.xml"/>
6464
<!-- modified from: https://github.com/google-deepmind/mujoco_menagerie/tree/main/wonik_allegro -->
6565
<include file="right_hand_modified.xml"/>
6666

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<mujoco>
2+
<asset>
3+
<texture name="cube" type="cube"
4+
fileup="../common_assets/reorientation_cube_textures/fileup.png"
5+
fileback="../common_assets/reorientation_cube_textures/fileback.png"
6+
filedown="../common_assets/reorientation_cube_textures/filedown.png"
7+
filefront="../common_assets/reorientation_cube_textures/filefront.png"
8+
fileleft="../common_assets/reorientation_cube_textures/fileleft.png"
9+
fileright="../common_assets/reorientation_cube_textures/fileright.png"/>
10+
<material name="cube" texture="cube"/>
11+
<texture name="graycube" type="cube"
12+
fileup="../common_assets/reorientation_cube_textures/grayup.png"
13+
fileback="../common_assets/reorientation_cube_textures/grayback.png"
14+
filedown="../common_assets/reorientation_cube_textures/graydown.png"
15+
filefront="../common_assets/reorientation_cube_textures/grayfront.png"
16+
fileleft="../common_assets/reorientation_cube_textures/grayleft.png"
17+
fileright="../common_assets/reorientation_cube_textures/grayright.png"/>
18+
<material name="graycube" texture="graycube"/>
19+
</asset>
20+
<worldbody>
21+
<light pos="0 0 1"/>
22+
<body name="cube" pos="0.2 0.0 0.075" quat="1 0 0 0">
23+
<freejoint/>
24+
<geom name="cube" type="box" size=".03 .03 .03" mass=".122" material="cube"/>
25+
</body>
26+
</worldbody>
27+
28+
<sensor>
29+
<framepos name="trace0" objtype="body" objname="cube"/>
30+
<framepos name="cube_position" objtype="body" objname="cube"/>
31+
<framequat name="cube_orientation" objtype="body" objname="cube"/>
32+
<framelinvel name="cube_linear_velocity" objtype="body" objname="cube"/>
33+
<frameangvel name="cube_angular_velocity" objtype="body" objname="cube"/>
34+
</sensor>
35+
</mujoco>

0 commit comments

Comments
 (0)