Skip to content

Commit

Permalink
Add support for Kuka KR60-HA
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschmeisser committed Feb 10, 2021
1 parent 984e1f2 commit f415759
Show file tree
Hide file tree
Showing 21 changed files with 319 additions and 0 deletions.
19 changes: 19 additions & 0 deletions kuka_kr60_support/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

cmake_minimum_required(VERSION 2.8.3)

project(kuka_kr60_support)

find_package(catkin REQUIRED)

catkin_package()

if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(test/roslaunch_test_kr60ha.xml)
endif()

foreach(dir launch meshes urdf)
install(
DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach()
5 changes: 5 additions & 0 deletions kuka_kr60_support/launch/load_kr60_ha.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<launch>
<!-- Load robot description to parameter server -->
<param name="robot_description" command="$(find xacro)/xacro.py '$(find kuka_kr60_support)/urdf/kr60ha.xacro'"/>
</launch>
8 changes: 8 additions & 0 deletions kuka_kr60_support/launch/test_kr60_ha.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<launch>
<include file="$(find kuka_kr60_support)/launch/load_kr60_ha.launch" />
<param name="use_gui" value="true" />
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"/>
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"/>
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find industrial_robot_client)/config/robot_state_visualize.rviz" required="true" />
</launch>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added kuka_kr60_support/meshes/kr60ha/visual/link_4.stl
Binary file not shown.
Binary file added kuka_kr60_support/meshes/kr60ha/visual/link_5.stl
Binary file not shown.
Binary file not shown.
49 changes: 49 additions & 0 deletions kuka_kr60_support/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0"?>
<package>
<name>kuka_kr60_support</name>
<version>0.0.1</version>
<description>
<p>
ROS-Industrial support for the KUKA KR 60 (and variants).
</p>
<p>
This package contains configuration data, 3D models and launch files
for KUKA KR 60 manipulators. This currently includes the KR 60 HA only.
</p>
<p><b>Specifications</b>:</p>
<ul>
<li>KR 60 HA - Default</li>
</ul>
<p>
Joint limits and maximum joint velocities are based on the information
found in KUKA KR 30, 60 HA with C Variants Specification (V3, 2020-08-17).
All urdfs are based on the default motion and joint velocity limits,
unless noted otherwise.
</p>
<p>
Before using any of the configuration files and / or meshes included
in this package, be sure to check they are correct for the particular
robot model and configuration you intend to use them with.
</p>
</description>
<author>Simon Schmeisser (Optonic)</author>
<maintainer email="[email protected]">G.A. vd. Hoorn (TU Delft Robotics Institute)</maintainer>
<license>BSD</license>

<url type="website">http://ros.org/wiki/kuka_kr60_support</url>
<url type="bugtracker">https://github.com/ros-industrial/kuka_experimental/issues</url>
<url type="repository">https://github.com/ros-industrial/kuka_experimental</url>

<buildtool_depend>catkin</buildtool_depend>

<build_depend>roslaunch</build_depend>

<run_depend>robot_state_publisher</run_depend>
<run_depend>joint_state_publisher</run_depend>
<run_depend>rviz</run_depend>
<run_depend>xacro</run_depend>

<export>
<architecture_independent/>
</export>
</package>
9 changes: 9 additions & 0 deletions kuka_kr60_support/test/roslaunch_test_kr60ha.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<launch>
<group ns="load_kr60_ha__">
<include file="$(find kuka_kr60_support)/launch/load_kr60_ha.launch"/>
</group>

<group ns="test_kr60_ha__">
<include file="$(find kuka_kr60_support)/launch/test_kr60_ha.launch"/>
</group>
</launch>
6 changes: 6 additions & 0 deletions kuka_kr60_support/urdf/kr60ha.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!--Generates a urdf from the macro in kr60ha_macro.xacro -->
<robot name="kuka_kr60ha" xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:include filename="$(find kuka_kr60_support)/urdf/kr60ha_macro.xacro" />
<xacro:kuka_kr60ha prefix=""/>
</robot>
223 changes: 223 additions & 0 deletions kuka_kr60_support/urdf/kr60ha_macro.xacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
<?xml version="1.0"?>
<robot xmlns:xacro="http://wiki.ros.org/xacro">
<xacro:include filename="$(find kuka_resources)/urdf/common_constants.xacro"/>
<xacro:include filename="$(find kuka_resources)/urdf/common_materials.xacro"/>

<xacro:macro name="kuka_kr60ha" params="prefix">
<!-- LINKS -->
<!-- base link -->
<link name="${prefix}base_link">
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/base_link.stl" />
</geometry>
<xacro:material_kuka_black />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/base_link.stl" />
</geometry>
</collision>
</link>
<!-- link 1 (A1) -->
<link name="${prefix}link_1">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_1.stl" />
</geometry>
<xacro:material_kuka_orange />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_1.stl" />
</geometry>
</collision>
</link>
<!-- link 2 -->
<link name="${prefix}link_2">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_2.stl"/>
</geometry>
<xacro:material_kuka_orange />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_2.stl" />
</geometry>
</collision>
</link>
<!-- link 3 -->
<link name="${prefix}link_3">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_3.stl" />
</geometry>

</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_3.stl" />
</geometry>
</collision>
</link>
<!-- link 4 -->
<link name="${prefix}link_4">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_4.stl" />
</geometry>
<xacro:material_kuka_orange />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_4.stl" />
</geometry>
</collision>
</link>
<!-- link 5 -->
<link name="${prefix}link_5">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_5.stl" />
</geometry>
<xacro:material_kuka_orange />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_5.stl" />
</geometry>
</collision>
</link>
<!-- link 6 -->
<link name="${prefix}link_6">
<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="2"/>
<inertia ixx="0.01" ixy="0" ixz="0" iyy="0.01" iyz="0" izz="0.01" />
</inertial>
<visual>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/visual/link_6.stl" />
</geometry>
<xacro:material_kuka_black />
</visual>
<collision>
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<mesh filename="package://kuka_kr60_support/meshes/kr60ha/collision/link_6.stl" />
</geometry>
</collision>
</link>
<!-- tool 0 -->
<!-- This frame corresponds to the $FLANGE coordinate system in KUKA KRC controllers. -->
<link name="${prefix}tool0"/>
<!-- END LINKS -->

<!-- JOINTS -->
<!-- joint 1 (A1) -->
<joint name="${prefix}joint_a1" type="revolute">
<origin xyz="0 0 0" rpy="0 0 0"/>
<parent link="${prefix}base_link"/>
<child link="${prefix}link_1"/>
<axis xyz="0 0 -1"/>
<limit effort="0" lower="${-radians(185)}" upper="${radians(185)}" velocity="${radians(128)}"/>
</joint>
<!-- joint 2 (A2) -->
<joint name="${prefix}joint_a2" type="revolute">
<origin xyz="0.35 0 0.815" rpy="0 0 0"/>
<parent link="${prefix}link_1"/>
<child link="${prefix}link_2"/>
<axis xyz="0 1 0"/>
<limit effort="0" lower="${-radians(135)}" upper="${radians(35)}" velocity="${radians(102)}"/>
</joint>
<!-- joint 3 (A3) -->
<joint name="${prefix}joint_a3" type="revolute">
<origin xyz="0.85 0 0" rpy="0 0 0"/>
<parent link="${prefix}link_2"/>
<child link="${prefix}link_3"/>
<axis xyz="0 1 0"/>
<limit effort="0" lower="${-radians(120)}" upper="${radians(158)}" velocity="${radians(128)}"/>
</joint>
<!-- joint 4 (A4) -->
<joint name="${prefix}joint_a4" type="revolute">
<origin xyz="0.465 0 0.145" rpy="0 0 0"/>
<parent link="${prefix}link_3"/>
<child link="${prefix}link_4"/>
<axis xyz="-1 0 0"/>
<limit effort="0" lower="${-radians(350)}" upper="${radians(350)}" velocity="${radians(260)}"/>
</joint>
<!-- joint 5 (A5) -->
<joint name="${prefix}joint_a5" type="revolute">
<origin xyz="0.355 0 0" rpy="0 0 0"/>
<parent link="${prefix}link_4"/>
<child link="${prefix}link_5"/>
<axis xyz="0 1 0"/>
<limit effort="0" lower="${-radians(119)}" upper="${radians(119)}" velocity="${radians(245)}"/>
</joint>
<!-- joint 6 (A6) -->
<joint name="${prefix}joint_a6" type="revolute">
<origin xyz="0.17 0 0" rpy="0 0 0"/>
<parent link="${prefix}link_5"/>
<child link="${prefix}link_6"/>
<axis xyz="-1 0 0"/>
<limit effort="0" lower="${-radians(350)}" upper="${radians(350)}" velocity="${radians(322)}"/>
</joint>
<!-- tool frame - fixed frame -->
<joint name="${prefix}joint_6-tool0" type="fixed">
<parent link="${prefix}link_6"/>
<child link="${prefix}tool0"/>
<origin xyz="0 0 0" rpy="0 ${radians(90)} 0"/>
</joint>
<!-- END JOINTS -->

<!-- ROS base_link to KUKA $ROBROOT coordinate system transform -->
<link name="${prefix}base" />
<joint name="${prefix}base_link-base" type="fixed">
<origin xyz="0 0 0" rpy="0 0 0"/>
<parent link="${prefix}base_link"/>
<child link="${prefix}base"/>
</joint>

</xacro:macro>
</robot>


0 comments on commit f415759

Please sign in to comment.