Skip to content

Commit

Permalink
added separate property files for each type of link and joint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kafel1997 committed Oct 26, 2024
1 parent 17baadf commit 1abf57f
Show file tree
Hide file tree
Showing 27 changed files with 161 additions and 100 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- meshes -->
<xacro:property name="hip_vis_stl_name" value="hip_test.stl" />
<xacro:property name="hip_coll_stl_name" value="hip_collision.stl" />

<!-- inertial properties -->

<!-- mass -->
<xacro:property name="hip_mass" value="3.607"/>

<!-- center of mass -->
<xacro:property name="hip_cm_x" value="125.497"/>
<xacro:property name="hip_cm_y" value="20.770"/>
<xacro:property name="hip_cm_z" value="0.248"/>

<!-- tensor of inertia -->
<xacro:property name="hip_ixx" value="4660.408"/>
<xacro:property name="hip_ixy" value="-338.226"/>
<xacro:property name="hip_ixz" value="0.847"/>

<xacro:property name="hip_iyy" value="14607.423"/>
<xacro:property name="hip_iyz" value="49.927"/>

<xacro:property name="hip_izz" value="13707.172"/>

</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- upper limb dimensions -->
<xacro:property name="upper_limb_length" value="0.25" />

</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- upper limb dimensions -->
<xacro:property name="upper_limb_length" value="0.25" />

</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- meshes -->
<xacro:property name="hip_vis_stl_name" value="hip_test.stl" />
<xacro:property name="hip_coll_stl_name" value="hip_collision.stl" />

<!-- inertial properties -->

<!-- mass -->
<xacro:property name="hip_mass" value="3.607"/>

<!-- center of mass -->
<xacro:property name="hip_cm_x" value="125.497"/>
<xacro:property name="hip_cm_y" value="20.770"/>
<xacro:property name="hip_cm_z" value="0.248"/>

<!-- tensor of inertia -->
<xacro:property name="hip_ixx" value="4660.408"/>
<xacro:property name="hip_ixy" value="-338.226"/>
<xacro:property name="hip_ixz" value="0.847"/>

<xacro:property name="hip_iyy" value="14607.423"/>
<xacro:property name="hip_iyz" value="49.927"/>

<xacro:property name="hip_izz" value="13707.172"/>

</robot>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<link name="LFF_link" />

</robot>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<link name="LRF_link" />

</robot>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<link name="RFF_link" />

</robot>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<link name="RRF_link" />

</robot>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

</robot>
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<xacro:link_macro
name="LFH_link"
vis_name="${hip_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<xacro:link_macro
name="LRH_link"
vis_name="rear_left_hip.stl"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<xacro:link_macro
name="RFH_link"
vis_name="front_right_hip.stl"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>


<xacro:link_macro
name="RRH_link"
vis_name="rear_right_hip.stl"
Expand Down
28 changes: 28 additions & 0 deletions src/meldog_description/description/links/hip/properties.urdf.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- meshes -->
<xacro:property name="hip_vis_stl_name" value="hip_test.stl" />
<xacro:property name="hip_coll_stl_name" value="hip_collision.stl" />

<!-- inertial properties -->

<!-- mass -->
<xacro:property name="hip_mass" value="3.607"/>

<!-- center of mass -->
<xacro:property name="hip_cm_x" value="125.497"/>
<xacro:property name="hip_cm_y" value="20.770"/>
<xacro:property name="hip_cm_z" value="0.248"/>

<!-- tensor of inertia -->
<xacro:property name="hip_ixx" value="4660.408"/>
<xacro:property name="hip_ixy" value="-338.226"/>
<xacro:property name="hip_ixz" value="0.847"/>

<xacro:property name="hip_iyy" value="14607.423"/>
<xacro:property name="hip_iyz" value="49.927"/>

<xacro:property name="hip_izz" value="13707.172"/>

</robot>
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="LFLL_link"
vis_name="${lower_limb_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="LRLL_link"
vis_name="${lower_limb_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="RFLL_link"
vis_name="${lower_limb_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="RRLL_link"
vis_name="${lower_limb_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- meshes -->
<xacro:property name="lower_limb_vis_stl_name" value="lower_limb_test.stl" />
<xacro:property name="lower_limb_coll_stl_name" value="lower_limb_collision.stl" />

<!-- inertial properties -->

<!-- mass -->
<xacro:property name="lower_limb_mass" value="0.116"/>

<!-- center of mass -->
<xacro:property name="lower_limb_cm_x" value="0.546"/>
<xacro:property name="lower_limb_cm_y" value="0"/>
<xacro:property name="lower_limb_cm_z" value="-177.643"/>

<!-- moments of inertia -->
<xacro:property name="lower_limb_ixx" value="967.349"/>
<xacro:property name="lower_limb_ixy" value="0"/>
<xacro:property name="lower_limb_ixz" value="-4.842"/>

<xacro:property name="lower_limb_iyy" value="982.604"/>
<xacro:property name="lower_limb_iyz" value="-0.001"/>

<xacro:property name="lower_limb_izz" value="37.177"/>

</robot>
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="LFUL_link"
vis_name="${upper_limb_vis_stl_name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="LRUL_link"
vis_name="upper_limb_test.stl"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="RFUL_link"
vis_name="r_upper_limb_vis.stl"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<xacro:include filename="../../base_properties.urdf.xacro" />
<xacro:include filename="../../macros/macros.urdf.xacro"/>

<xacro:link_macro
name="RRUL_link"
vis_name="r_upper_limb_vis.stl"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">

<!-- meshes -->
<xacro:property name="upper_limb_vis_stl_name" value="upper_limb_test.stl" />
<xacro:property name="upper_limb_coll_stl_name" value="upper_limb_collision.stl" />

<!-- inertial properties -->

<!-- mass -->
<xacro:property name="upper_limb_mass" value="0.474"/>

<!-- center of mass -->
<xacro:property name="upper_limb_cm_x" value="-1.185"/>
<xacro:property name="upper_limb_cm_y" value="-4.308"/>
<xacro:property name="upper_limb_cm_z" value="-94.203"/>

<!-- moments of inertia -->
<xacro:property name="upper_limb_ixx" value="4064.505"/>
<xacro:property name="upper_limb_ixy" value="1.241"/>
<xacro:property name="upper_limb_ixz" value="19.989"/>

<xacro:property name="upper_limb_iyy" value="4150.05"/>
<xacro:property name="upper_limb_iyz" value="235.648"/>

<xacro:property name="upper_limb_izz" value="424.555"/>

</robot>
Loading

0 comments on commit 1abf57f

Please sign in to comment.