From 92bd9ac26c68787be91b6f45a569d2be670589cc Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Mon, 16 Apr 2018 14:40:14 +0200 Subject: [PATCH 1/7] Gazebo support for KUKA KR10 --- kuka_kr10_gazebo/CMakeLists.txt | 9 ++ kuka_kr10_gazebo/README.md | 13 ++ .../config/joint_state_controller.yaml | 3 + .../config/kr10_arm_controller.yaml | 21 ++++ kuka_kr10_gazebo/launch/kr10_control.launch | 10 ++ kuka_kr10_gazebo/launch/kr10_gazebo.launch | 34 ++++++ kuka_kr10_gazebo/launch/load_kr10.launch | 4 + kuka_kr10_gazebo/launch/spawn_kr10.launch | 25 ++++ kuka_kr10_gazebo/package.xml | 40 +++++++ kuka_kr10_gazebo/urdf/kr10.xacro | 15 +++ kuka_kr10_gazebo/urdf/kr10_macro.xacro | 111 ++++++++++++++++++ 11 files changed, 285 insertions(+) create mode 100644 kuka_kr10_gazebo/CMakeLists.txt create mode 100644 kuka_kr10_gazebo/README.md create mode 100644 kuka_kr10_gazebo/config/joint_state_controller.yaml create mode 100644 kuka_kr10_gazebo/config/kr10_arm_controller.yaml create mode 100644 kuka_kr10_gazebo/launch/kr10_control.launch create mode 100644 kuka_kr10_gazebo/launch/kr10_gazebo.launch create mode 100644 kuka_kr10_gazebo/launch/load_kr10.launch create mode 100644 kuka_kr10_gazebo/launch/spawn_kr10.launch create mode 100644 kuka_kr10_gazebo/package.xml create mode 100644 kuka_kr10_gazebo/urdf/kr10.xacro create mode 100644 kuka_kr10_gazebo/urdf/kr10_macro.xacro diff --git a/kuka_kr10_gazebo/CMakeLists.txt b/kuka_kr10_gazebo/CMakeLists.txt new file mode 100644 index 000000000..169bda83a --- /dev/null +++ b/kuka_kr10_gazebo/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 2.8.3) +project(kuka_kr10_gazebo) + +find_package(catkin REQUIRED) + +catkin_package() + +install(DIRECTORY config launch urdf + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) diff --git a/kuka_kr10_gazebo/README.md b/kuka_kr10_gazebo/README.md new file mode 100644 index 000000000..c074bafaf --- /dev/null +++ b/kuka_kr10_gazebo/README.md @@ -0,0 +1,13 @@ +kuka_kr10_gazebo +================ + + + +## Usage +The simulation starts up paused by default. This enables us to turn off the physics engine, this is important to get the desired behaviour from the ros-control position controller. + + +To bring up the simulated robot in Gazebo, run: +``` +roslaunch kuka_kr10_gazebo kr10_gazebo.launch +``` diff --git a/kuka_kr10_gazebo/config/joint_state_controller.yaml b/kuka_kr10_gazebo/config/joint_state_controller.yaml new file mode 100644 index 000000000..9cb3a6599 --- /dev/null +++ b/kuka_kr10_gazebo/config/joint_state_controller.yaml @@ -0,0 +1,3 @@ +joint_state_controller: + type: joint_state_controller/JointStateController + publish_rate: 50 diff --git a/kuka_kr10_gazebo/config/kr10_arm_controller.yaml b/kuka_kr10_gazebo/config/kr10_arm_controller.yaml new file mode 100644 index 000000000..ad488e3b4 --- /dev/null +++ b/kuka_kr10_gazebo/config/kr10_arm_controller.yaml @@ -0,0 +1,21 @@ +arm_controller: + type: position_controllers/JointTrajectoryController + joints: + - joint_a1 + - joint_a2 + - joint_a3 + - joint_a4 + - joint_a5 + - joint_a6 + constraints: + goal_time: 0.6 + stopped_velocity_tolerance: 0.05 + joint_1: {trajectory: 0.1, goal: 0.1} + joint_2: {trajectory: 0.1, goal: 0.1} + joint_3: {trajectory: 0.1, goal: 0.1} + joint_4: {trajectory: 0.1, goal: 0.1} + joint_5: {trajectory: 0.1, goal: 0.1} + joint_6: {trajectory: 0.1, goal: 0.1} + stop_trajectory_duration: 0.5 + state_publish_rate: 25 + action_monitor_rate: 10 diff --git a/kuka_kr10_gazebo/launch/kr10_control.launch b/kuka_kr10_gazebo/launch/kr10_control.launch new file mode 100644 index 000000000..355183429 --- /dev/null +++ b/kuka_kr10_gazebo/launch/kr10_control.launch @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/kuka_kr10_gazebo/launch/kr10_gazebo.launch b/kuka_kr10_gazebo/launch/kr10_gazebo.launch new file mode 100644 index 000000000..b469dd1b2 --- /dev/null +++ b/kuka_kr10_gazebo/launch/kr10_gazebo.launch @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kuka_kr10_gazebo/launch/load_kr10.launch b/kuka_kr10_gazebo/launch/load_kr10.launch new file mode 100644 index 000000000..96ad6f241 --- /dev/null +++ b/kuka_kr10_gazebo/launch/load_kr10.launch @@ -0,0 +1,4 @@ + + + + diff --git a/kuka_kr10_gazebo/launch/spawn_kr10.launch b/kuka_kr10_gazebo/launch/spawn_kr10.launch new file mode 100644 index 000000000..cc906b616 --- /dev/null +++ b/kuka_kr10_gazebo/launch/spawn_kr10.launch @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + diff --git a/kuka_kr10_gazebo/package.xml b/kuka_kr10_gazebo/package.xml new file mode 100644 index 000000000..52969ee50 --- /dev/null +++ b/kuka_kr10_gazebo/package.xml @@ -0,0 +1,40 @@ + + kuka_kr10_gazebo + 0.0.1 + +

+ ROS-Industrial Gazebo support package for the Kuka kr10 (and variants). +

+

+ This package contains the configuration data and launch files required + to simulate the Kuka kr10 manipulator in Gazebo. This includes the base + model, and the kr10. +

+

+ Before using any of the configuration files included in this package, be + sure to check they are correct for the particular robot model and + configuration you intend to use them with. +

+
+ Christopher Schindlbeck (Leibniz University Hannover) + G.A. vd. Hoorn (TU Delft Robotics Institute) + Apache2.0 + + http://wiki.ros.org/kuka_experimental + https://github.com/ros-industrial/kuka_experimental/issues + https://github.com/ros-industrial/kuka_experimental + + catkin + + kuka_resources + kuka_kr10_support + gazebo + gazebo_ros + gazebo_ros_control + gazebo_ros_pkgs + joint_state_controller + position_controllers + joint_trajectory_controller + robot_state_publisher + ros_controllers +
diff --git a/kuka_kr10_gazebo/urdf/kr10.xacro b/kuka_kr10_gazebo/urdf/kr10.xacro new file mode 100644 index 000000000..de2e5ef24 --- /dev/null +++ b/kuka_kr10_gazebo/urdf/kr10.xacro @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/kuka_kr10_gazebo/urdf/kr10_macro.xacro b/kuka_kr10_gazebo/urdf/kr10_macro.xacro new file mode 100644 index 000000000..f73459431 --- /dev/null +++ b/kuka_kr10_gazebo/urdf/kr10_macro.xacro @@ -0,0 +1,111 @@ + + + + + + + + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + /${prefix} + transmission_interface/SimpleTransmission + + hardware_interface/PositionJointInterface + + + 1 + + + + + + + Gazebo/Black + true + + + Gazebo/DarkGrey + true + + + Gazebo/DarkGrey + true + + + Gazebo/DarkGrey + true + + + Gazebo/DarkGrey + true + + + Gazebo/DarkGrey + true + + + Gazebo/Grey + true + + + + + + /${prefix} + gazebo_ros_control/DefaultRobotHWSim + + + + + From 04a55886c28fef6605efaa5a2b4c6cbaeb0abb4f Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Tue, 17 Apr 2018 10:45:51 +0200 Subject: [PATCH 2/7] Revert changes to indigo --- kuka_kr10_gazebo/README.md | 4 +--- kuka_kr10_gazebo/launch/load_kr10.launch | 2 +- kuka_kr10_gazebo/urdf/kr10.xacro | 2 +- kuka_kr10_gazebo/urdf/kr10_macro.xacro | 12 ++++++------ 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/kuka_kr10_gazebo/README.md b/kuka_kr10_gazebo/README.md index c074bafaf..5374a6b77 100644 --- a/kuka_kr10_gazebo/README.md +++ b/kuka_kr10_gazebo/README.md @@ -1,10 +1,8 @@ kuka_kr10_gazebo ================ - - ## Usage -The simulation starts up paused by default. This enables us to turn off the physics engine, this is important to get the desired behaviour from the ros-control position controller. +The simulation starts up paused by default. This enables us to turn off the physics engine, this is important to get the desired behavior from the ros-control position controller. To bring up the simulated robot in Gazebo, run: diff --git a/kuka_kr10_gazebo/launch/load_kr10.launch b/kuka_kr10_gazebo/launch/load_kr10.launch index 96ad6f241..e1d3473cb 100644 --- a/kuka_kr10_gazebo/launch/load_kr10.launch +++ b/kuka_kr10_gazebo/launch/load_kr10.launch @@ -1,4 +1,4 @@ - + diff --git a/kuka_kr10_gazebo/urdf/kr10.xacro b/kuka_kr10_gazebo/urdf/kr10.xacro index de2e5ef24..5834678e2 100644 --- a/kuka_kr10_gazebo/urdf/kr10.xacro +++ b/kuka_kr10_gazebo/urdf/kr10.xacro @@ -1,5 +1,5 @@ - + diff --git a/kuka_kr10_gazebo/urdf/kr10_macro.xacro b/kuka_kr10_gazebo/urdf/kr10_macro.xacro index f73459431..c21f87af6 100644 --- a/kuka_kr10_gazebo/urdf/kr10_macro.xacro +++ b/kuka_kr10_gazebo/urdf/kr10_macro.xacro @@ -1,5 +1,5 @@ - + @@ -75,23 +75,23 @@ true - Gazebo/DarkGrey + Gazebo/Orange true - Gazebo/DarkGrey + Gazebo/Orange true - Gazebo/DarkGrey + Gazebo/Orange true - Gazebo/DarkGrey + Gazebo/Orange true - Gazebo/DarkGrey + Gazebo/Orange true From 7af6a0516bf85da52170408f5858308ce1949c6c Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Tue, 17 Apr 2018 10:55:16 +0200 Subject: [PATCH 3/7] Added dummy inertial values in kr10 for gazebo --- kuka_kr10_support/urdf/kr10r1100sixx.xacro | 1 + .../urdf/kr10r1100sixx_macro.xacro | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/kuka_kr10_support/urdf/kr10r1100sixx.xacro b/kuka_kr10_support/urdf/kr10r1100sixx.xacro index a3a7e2e6f..3fd5ab1b0 100644 --- a/kuka_kr10_support/urdf/kr10r1100sixx.xacro +++ b/kuka_kr10_support/urdf/kr10r1100sixx.xacro @@ -1,4 +1,5 @@ + diff --git a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro index dee4b6065..dcf5dbf36 100644 --- a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro +++ b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro @@ -18,6 +18,13 @@ + + + + + @@ -33,6 +40,13 @@ + + + + + @@ -48,6 +62,13 @@ + + + + + @@ -63,6 +84,13 @@ + + + + + @@ -78,6 +106,13 @@ + + + + + @@ -93,6 +128,13 @@ + + + + + @@ -108,6 +150,13 @@ + + + + + From 8999ef92a35c94a30283ca077a8c286ff382a239 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Thu, 26 Apr 2018 10:45:43 +0200 Subject: [PATCH 4/7] New macro for cylindrical inertia tensor --- kuka_resources/urdf/common_inertia.xacro | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 kuka_resources/urdf/common_inertia.xacro diff --git a/kuka_resources/urdf/common_inertia.xacro b/kuka_resources/urdf/common_inertia.xacro new file mode 100644 index 000000000..c84dfc933 --- /dev/null +++ b/kuka_resources/urdf/common_inertia.xacro @@ -0,0 +1,15 @@ + + + + + + + + + + + + + From 542678e8d0762c5392c14714d46033cbcf1ead88 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Thu, 26 Apr 2018 12:43:36 +0200 Subject: [PATCH 5/7] Added link and mass macros to common_parameters and replaced corresponding data in xacro --- .../urdf/kr10r1100sixx_macro.xacro | 83 +++++++------------ kuka_resources/urdf/common_inertia.xacro | 15 ---- .../urdf/common_robotparameters.xacro | 39 +++++++++ 3 files changed, 67 insertions(+), 70 deletions(-) delete mode 100644 kuka_resources/urdf/common_inertia.xacro create mode 100644 kuka_resources/urdf/common_robotparameters.xacro diff --git a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro index dcf5dbf36..20d1e055f 100644 --- a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro +++ b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro @@ -2,6 +2,7 @@ + @@ -18,13 +19,9 @@ - - - - - + + + @@ -40,13 +37,9 @@ - - - - - + + + @@ -62,13 +55,9 @@ - - - - - + + + @@ -84,13 +73,9 @@ - - - - - + + + @@ -106,13 +91,9 @@ - - - - - + + + @@ -128,13 +109,9 @@ - - - - - + + + @@ -150,54 +127,50 @@ - - - - - + + + - + - + - + - + - + - + diff --git a/kuka_resources/urdf/common_inertia.xacro b/kuka_resources/urdf/common_inertia.xacro deleted file mode 100644 index c84dfc933..000000000 --- a/kuka_resources/urdf/common_inertia.xacro +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - diff --git a/kuka_resources/urdf/common_robotparameters.xacro b/kuka_resources/urdf/common_robotparameters.xacro new file mode 100644 index 000000000..693825fdb --- /dev/null +++ b/kuka_resources/urdf/common_robotparameters.xacro @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From b1bbeb3c961b0bfd8cc234cdedf3a63034f573c1 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Tue, 22 May 2018 15:26:59 +0200 Subject: [PATCH 6/7] Integrated robotparameters to kr10r1100sixx_macro.xacro --- .../urdf/kr10r1100sixx_macro.xacro | 30 +++++++++++++- .../urdf/common_robotparameters.xacro | 39 ------------------- 2 files changed, 29 insertions(+), 40 deletions(-) delete mode 100644 kuka_resources/urdf/common_robotparameters.xacro diff --git a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro index 20d1e055f..17edb8bc6 100644 --- a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro +++ b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro @@ -2,7 +2,35 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kuka_resources/urdf/common_robotparameters.xacro b/kuka_resources/urdf/common_robotparameters.xacro deleted file mode 100644 index 693825fdb..000000000 --- a/kuka_resources/urdf/common_robotparameters.xacro +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From aa013a0359befed1023e3b91b49f5d130994f595 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Fri, 25 May 2018 13:35:07 +0200 Subject: [PATCH 7/7] More descriptive parameter names --- .../urdf/kr10r1100sixx_macro.xacro | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro index 17edb8bc6..0385d0cbc 100644 --- a/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro +++ b/kuka_kr10_support/urdf/kr10r1100sixx_macro.xacro @@ -4,21 +4,21 @@ - - - - - - - + + + + + + + - - - - - - + + + + + + @@ -47,7 +47,7 @@ - + @@ -65,7 +65,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -119,7 +119,7 @@ - + @@ -137,7 +137,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -163,42 +163,42 @@ - + - + - + - + - + - +