Skip to content

Commit

Permalink
Define mass parameters as property
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Aug 6, 2016
1 parent 9fc401b commit c0ac841
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions fanuc_lrmate200id_support/urdf/lrmate200id_macro.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<xacro:include filename="$(find fanuc_resources)/urdf/common_materials.xacro"/>
<xacro:include filename="$(find fanuc_resources)/urdf/common_constants.xacro"/>

<!-- Inertia parameters -->
<property name="base_link_mass" value="6.215" /> <!-- This mass might be incorrect -->
<property name="link_1_mass" value="2.13" />
<property name="link_2_mass" value="7.65" />
<property name="link_3_mass" value="2.91" />
<property name="link_4_mass" value="3.70" />
<property name="link_5_mass" value="1.70" />
<property name="link_6_mass" value="0.137" /> <!-- This mass might be incorrect -->

<xacro:macro name="fanuc_lrmate200id" params="prefix">
<link name="${prefix}base_link">
<visual>
Expand All @@ -20,7 +29,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="9"/>
<mass value="${base_link_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -40,7 +49,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="5"/>
<mass value="${link_1_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -60,7 +69,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="4"/>
<mass value="${link_2_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -80,7 +89,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="3"/>
<mass value="${link_3_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -100,7 +109,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="2"/>
<mass value="${link_4_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -120,7 +129,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="1"/>
<mass value="${link_5_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand All @@ -140,7 +149,7 @@
</collision>
<inertial>
<origin rpy="0 0 0" xyz="0 0 0"/>
<mass value="1"/>
<mass value="${link_6_mass}"/>
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
</inertial>
</link>
Expand Down

0 comments on commit c0ac841

Please sign in to comment.