Skip to content

Commit

Permalink
description: add ROS-I base and tool0 frames. Fix ros-industrial#49 and
Browse files Browse the repository at this point in the history
ros-industrial#95.

Note that 'base' is essentially 'base_link' but rotated by 180
degrees over the Z-axis. This is necessary as the visual and
collision geometries appear to also have their origins rotated
180 degrees wrt the real robot.

'tool0' is similar to 'ee_link', but with its orientation such
that it coincides with an all-zeros TCP setting on the UR
controller. Users are expected to attach their own TCP frames
to this frame, instead of updating it (see also [1]).

[1] http://wiki.ros.org/Industrial/Tutorials/WorkingWithRosIndustrialRobotSupportPackages#Standardised_links_.2BAC8_frames
  • Loading branch information
gavanderhoorn committed Apr 22, 2015
1 parent b36e029 commit db6b163
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ur_description/urdf/ur10.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,25 @@
<xacro:ur10_arm_transmission prefix="${prefix}" />
<xacro:ur10_arm_gazebo prefix="${prefix}" />

<!-- ROS base_link to UR 'Base' Coordinates transform -->
<link name="${prefix}base"/>
<joint name="${prefix}base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin xyz="0 0 0" rpy="0 0 ${-pi}"/>
<parent link="${prefix}base_link"/>
<child link="${prefix}base"/>
</joint>

<!-- Frame coincident with all-zeros TCP on UR controller -->
<link name="${prefix}tool0"/>
<joint name="${prefix}wrist_3_link-tool0" type="fixed">
<origin xyz="0 ${wrist_3_length} 0" rpy="${pi/-2.0} 0 0"/>
<parent link="${prefix}wrist_3_link"/>
<child link="${prefix}tool0"/>
</joint>

</xacro:macro>
</robot>
16 changes: 16 additions & 0 deletions ur_description/urdf/ur10_joint_limited_robot.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
<link name="base"/>
<joint name="base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin rpy="0 0 -3.14159265" xyz="0 0 0"/>
<parent link="base_link"/>
<child link="base"/>
</joint>
<link name="tool0"/>
<joint name="wrist_3_link-tool0" type="fixed">
<origin rpy="-1.570796325 0 0" xyz="0 0.0922 0"/>
<parent link="wrist_3_link"/>
<child link="tool0"/>
</joint>
<link name="world"/>
<joint name="world_joint" type="fixed">
<parent link="world"/>
Expand Down
16 changes: 16 additions & 0 deletions ur_description/urdf/ur10_robot.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
<link name="base"/>
<joint name="base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin rpy="0 0 -3.14159265" xyz="0 0 0"/>
<parent link="base_link"/>
<child link="base"/>
</joint>
<link name="tool0"/>
<joint name="wrist_3_link-tool0" type="fixed">
<origin rpy="-1.570796325 0 0" xyz="0 0.0922 0"/>
<parent link="wrist_3_link"/>
<child link="tool0"/>
</joint>
<link name="world"/>
<joint name="world_joint" type="fixed">
<parent link="world"/>
Expand Down
20 changes: 20 additions & 0 deletions ur_description/urdf/ur5.urdf.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,25 @@
<xacro:ur5_arm_transmission prefix="${prefix}" />
<xacro:ur5_arm_gazebo prefix="${prefix}" />

<!-- ROS base_link to UR 'Base' Coordinates transform -->
<link name="${prefix}base"/>
<joint name="${prefix}base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin xyz="0 0 0" rpy="0 0 ${-pi}"/>
<parent link="${prefix}base_link"/>
<child link="${prefix}base"/>
</joint>

<!-- Frame coincident with all-zeros TCP on UR controller -->
<link name="${prefix}tool0"/>
<joint name="${prefix}wrist_3_link-tool0" type="fixed">
<origin xyz="0 ${wrist_3_length} 0" rpy="${pi/-2.0} 0 0"/>
<parent link="${prefix}wrist_3_link"/>
<child link="${prefix}tool0"/>
</joint>

</xacro:macro>
</robot>
16 changes: 16 additions & 0 deletions ur_description/urdf/ur5_joint_limited_robot.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
<link name="base"/>
<joint name="base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin rpy="0 0 -3.14159265" xyz="0 0 0"/>
<parent link="base_link"/>
<child link="base"/>
</joint>
<link name="tool0"/>
<joint name="wrist_3_link-tool0" type="fixed">
<origin rpy="-1.570796325 0 0" xyz="0 0.0823 0"/>
<parent link="wrist_3_link"/>
<child link="tool0"/>
</joint>
<link name="world"/>
<joint name="world_joint" type="fixed">
<parent link="world"/>
Expand Down
16 changes: 16 additions & 0 deletions ur_description/urdf/ur5_robot.urdf
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
<link name="base"/>
<joint name="base_link-base" type="fixed">
<!-- NOTE: this rotation is only needed as long as base_link itself is
not corrected wrt the real robot (ie: rotated over 180
degrees)
-->
<origin rpy="0 0 -3.14159265" xyz="0 0 0"/>
<parent link="base_link"/>
<child link="base"/>
</joint>
<link name="tool0"/>
<joint name="wrist_3_link-tool0" type="fixed">
<origin rpy="-1.570796325 0 0" xyz="0 0.0823 0"/>
<parent link="wrist_3_link"/>
<child link="tool0"/>
</joint>
<link name="world"/>
<joint name="world_joint" type="fixed">
<parent link="world"/>
Expand Down

0 comments on commit db6b163

Please sign in to comment.