-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of cleanup and changes to try and get the simplified model to wo…
…rk. Still won't respond to angular velocity for some reason
- Loading branch information
Showing
6 changed files
with
135 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
urc_hw_description/urdf/simplified_model/inertial_macros.xacro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<!-- Define some commonly used intertial properties --> | ||
<xacro:macro name="box_inertia" params="m w h d"> | ||
<inertial> | ||
<origin xyz="0 0 0" rpy="${pi/2} 0 ${pi/2}" /> | ||
<mass value="${m}" /> | ||
<inertia ixx="${(m/12) * (h*h + d*d)}" ixy="0.0" ixz="0.0" iyy="${(m/12) * (w*w + d*d)}" | ||
iyz="0.0" izz="${(m/12) * (w*w + h*h)}" /> | ||
</inertial> | ||
</xacro:macro> | ||
|
||
<xacro:macro name="cylinder_inertia" params="m r h"> | ||
<inertial> | ||
<origin xyz="0 0 0" rpy="0 0 0" /> | ||
<mass value="${m}" /> | ||
<inertia ixx="${(m/12) * (3*r*r + h*h)}" ixy="0.0" ixz="0.0" | ||
iyy="${(m/12) * (3*r*r + h*h)}" | ||
iyz="0.0" izz="${(m/2) * (r*r)}" /> | ||
</inertial> | ||
</xacro:macro> | ||
|
||
<xacro:macro name="sphere_inertia" params="m r"> | ||
<inertial> | ||
<mass value="${m}" /> | ||
<inertia ixx="${(2/5) * m * (r*r)}" ixy="0.0" ixz="0.0" iyy="${(2/5) * m * (r*r)}" | ||
iyz="0.0" izz="${(2/5) * m * (r*r)}" /> | ||
</inertial> | ||
</xacro:macro> | ||
|
||
|
||
</robot> |
Oops, something went wrong.