Skip to content

Commit 8d87788

Browse files
authored
Merge pull request #15 from NASA-JSC-Robotics/add-4040-hatch-mj-inputs
Hatch 4040 and grab handle mujoco input macros
2 parents ede3322 + 2bacc20 commit 8d87788

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎hatch_4040/urdf/hatch_4040.xacro‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,21 @@
101101
</xacro:grab_handle>
102102

103103
</xacro:macro>
104+
105+
<xacro:macro name="hatch_4040_mj_processed_inputs">
106+
<xacro:include filename="$(find hatch_accessories)/urdf/grab_handle.xacro"/>
107+
<xacro:grab_handle_mj_processed_inputs/>
108+
<decompose_mesh mesh_name="hatch_4040_frame" threshold="0.01"/>
109+
<decompose_mesh mesh_name="hatch_4040_face" threshold="0.01"/>
110+
</xacro:macro>
111+
112+
<xacro:macro name="hatch_4040_mj_raw_inputs" params="
113+
prefix=''
114+
contact_exclude_body1='world'
115+
">
116+
<contact>
117+
<exclude body1="${contact_exclude_body1}" body2="${prefix}hatch_face"/>
118+
</contact>
119+
</xacro:macro>
120+
104121
</robot>

‎hatch_accessories/urdf/grab_handle.xacro‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@
5454
<link name="${prefix}grab_touch"/>
5555

5656
</xacro:macro>
57+
58+
<xacro:macro name="grab_handle_mj_processed_inputs">
59+
<decompose_mesh mesh_name="imetro_hatch_handle"/>
60+
</xacro:macro>
5761
</robot>

0 commit comments

Comments
 (0)