File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ add_custom_target(
116116 ${CMAKE_CURRENT_BINARY_DIR} /quadrotor/quadrotor.xml
117117 <${CMAKE_CURRENT_SOURCE_DIR} /quadrotor/quadrotor.xml.patch
118118
119+ ## Cube reorientation
120+ # patch cube from common assets
121+ COMMAND patch -o ${CMAKE_CURRENT_BINARY_DIR} /common_assets/cube_modified_shadow_reorient.xml
122+ ${CMAKE_CURRENT_BINARY_DIR} /common_assets/reorientation_cube.xml
123+ <${CMAKE_CURRENT_SOURCE_DIR} /shadow_reorient/cube.xml.patch
124+
119125 ## Cube solve task
120126 # copy cube model from MuJoCo
121127 COMMAND ${CMAKE_COMMAND} -E copy
Original file line number Diff line number Diff line change 1+ mjpc/tasks/cube.xml.patch--- common_assets/reorientation_cube.xml 2024-02-11 18:42:07
2+ +++ hand/cube.xml 2024-02-12 14:52:27
3+ @@ -19,9 +19,9 @@
4+ </asset>
5+ <worldbody>
6+ <light pos="0 0 1"/>
7+ - <body name="cube" pos="0.2 0.0 0.075" quat="1 0 0 0">
8+ + <body name="cube" pos="0.325 0.0 0.075" quat="0.707 0.707 0 0">
9+ <freejoint/>
10+ - <geom name="cube" type="box" size=".03 .03 .03" mass=".122" material="cube"/>
11+ + <geom name="cube" type="box" size=".022 .022 .022" mass=".126" material="cube"/>
12+ </body>
13+ </worldbody>
14+
Original file line number Diff line number Diff line change 4747 <framepos name =" trace0" objtype =" body" objname =" cube" />
4848 </sensor >
4949
50- <include file =" ../common_assets/reorientation_cube.xml" />
50+ <!-- from: common_assets -->
51+ <include file =" ../common_assets/cube_modified_shadow_reorient.xml" />
5152 <!-- from: https://github.com/google-deepmind/mujoco_menagerie/tree/main/shadow_hand -->
5253 <include file =" right_hand.xml" />
5354
You can’t perform that action at this time.
0 commit comments