From ff604a07a4aafefbe324af29a8be86d10be684ca Mon Sep 17 00:00:00 2001 From: Aron Svastits Date: Tue, 1 Aug 2023 10:49:43 +0200 Subject: [PATCH] add general kr support package for moveit --- .../config/kr6_r700_sixx_joint_limits.yaml | 38 +++++++++++++++++ .../config/kr6_r900_sixx_joint_limits.yaml | 38 +++++++++++++++++ .../config/kr16_r2010-2_joint_limits.yaml | 41 +++++++++++++++++++ .../CMakeLists.txt | 4 +- .../config/kinematics.yaml | 2 +- .../config/moveit_controllers.yaml | 0 .../config/pilz_cartesian_limits.yaml | 0 .../config/urdf_planning_scene.rviz | 0 .../package.xml | 4 +- .../srdf/kr_arm.srdf.xacro | 8 ++-- .../srdf/kr_arm_macro.xacro | 19 ++++----- 11 files changed, 135 insertions(+), 19 deletions(-) create mode 100644 kuka_agilus_support/config/kr6_r700_sixx_joint_limits.yaml create mode 100644 kuka_agilus_support/config/kr6_r900_sixx_joint_limits.yaml create mode 100644 kuka_cybertech_support/config/kr16_r2010-2_joint_limits.yaml rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/CMakeLists.txt (56%) rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/config/kinematics.yaml (90%) rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/config/moveit_controllers.yaml (100%) rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/config/pilz_cartesian_limits.yaml (100%) rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/config/urdf_planning_scene.rviz (100%) rename {kuka_cybertech_moveit_config => kuka_kr_moveit_config}/package.xml (88%) rename kuka_cybertech_moveit_config/srdf/kr16_r2010-2_arm.srdf.xacro => kuka_kr_moveit_config/srdf/kr_arm.srdf.xacro (55%) rename kuka_cybertech_moveit_config/srdf/cybertech_arm.macro.xacro => kuka_kr_moveit_config/srdf/kr_arm_macro.xacro (74%) diff --git a/kuka_agilus_support/config/kr6_r700_sixx_joint_limits.yaml b/kuka_agilus_support/config/kr6_r700_sixx_joint_limits.yaml new file mode 100644 index 0000000..ce89cea --- /dev/null +++ b/kuka_agilus_support/config/kr6_r700_sixx_joint_limits.yaml @@ -0,0 +1,38 @@ +# joint_limits.yaml allows the dynamics properties specified in the URDF to be overwritten or augmented as needed +# Specific joint properties can be changed with the keys [max_position, min_position, max_velocity, max_acceleration, max_jerk] +# Joint limits can be turned off with [has_velocity_limits, has_acceleration_limits] + +# Easiest way to slow down the robot is to decrease the velocity and acceleration scaling factors +default_velocity_scaling_factor: 1.0 +default_acceleration_scaling_factor: 1.0 +joint_limits: + joint_a1: + has_velocity_limits: true + max_velocity: 6.283185 + has_acceleration_limits: false + has_jerk: false + joint_a2: + has_velocity_limits: true + max_velocity: 5.23599 + has_acceleration_limits: false + has_jerk: false + joint_a3: + has_velocity_limits: true + max_velocity: 6.283185 + has_acceleration_limits: false + has_jerk: false + joint_a4: + has_velocity_limits: true + max_velocity: 6.64970 + has_acceleration_limits: false + has_jerk: false + joint_a5: + has_velocity_limits: true + max_velocity: 6.77188 + has_acceleration_limits: false + has_jerk: false + joint_a6: + has_velocity_limits: true + max_velocity: 10.73377 + has_acceleration_limits: false + has_jerk: false diff --git a/kuka_agilus_support/config/kr6_r900_sixx_joint_limits.yaml b/kuka_agilus_support/config/kr6_r900_sixx_joint_limits.yaml new file mode 100644 index 0000000..ce89cea --- /dev/null +++ b/kuka_agilus_support/config/kr6_r900_sixx_joint_limits.yaml @@ -0,0 +1,38 @@ +# joint_limits.yaml allows the dynamics properties specified in the URDF to be overwritten or augmented as needed +# Specific joint properties can be changed with the keys [max_position, min_position, max_velocity, max_acceleration, max_jerk] +# Joint limits can be turned off with [has_velocity_limits, has_acceleration_limits] + +# Easiest way to slow down the robot is to decrease the velocity and acceleration scaling factors +default_velocity_scaling_factor: 1.0 +default_acceleration_scaling_factor: 1.0 +joint_limits: + joint_a1: + has_velocity_limits: true + max_velocity: 6.283185 + has_acceleration_limits: false + has_jerk: false + joint_a2: + has_velocity_limits: true + max_velocity: 5.23599 + has_acceleration_limits: false + has_jerk: false + joint_a3: + has_velocity_limits: true + max_velocity: 6.283185 + has_acceleration_limits: false + has_jerk: false + joint_a4: + has_velocity_limits: true + max_velocity: 6.64970 + has_acceleration_limits: false + has_jerk: false + joint_a5: + has_velocity_limits: true + max_velocity: 6.77188 + has_acceleration_limits: false + has_jerk: false + joint_a6: + has_velocity_limits: true + max_velocity: 10.73377 + has_acceleration_limits: false + has_jerk: false diff --git a/kuka_cybertech_support/config/kr16_r2010-2_joint_limits.yaml b/kuka_cybertech_support/config/kr16_r2010-2_joint_limits.yaml new file mode 100644 index 0000000..f4241fb --- /dev/null +++ b/kuka_cybertech_support/config/kr16_r2010-2_joint_limits.yaml @@ -0,0 +1,41 @@ +# joint_limits.yaml allows the dynamics properties specified in the URDF to be overwritten or augmented as needed +# Specific joint properties can be changed with the keys [max_position, min_position, max_velocity, max_acceleration, max_jerk] +# Joint limits can be turned off with [has_velocity_limits, has_acceleration_limits] + +# The default config of moveit does not take into account the jerk limits, the RuckigTrajectorySmoothing adapter must be +# added to the planning pipeline to support jerk limits # TODO: check if jerk dimensions are ok!! + +# Easiest way to slow down the robot is to decrease the velocity and acceleration scaling factors +default_velocity_scaling_factor: 1.0 +default_acceleration_scaling_factor: 1.0 +joint_limits: + joint_a1: + has_velocity_limits: true + max_velocity: 3.490656 + has_acceleration_limits: false + has_jerk: false + joint_a2: + has_velocity_limits: true + max_velocity: 3.05432 + has_acceleration_limits: false + has_jerk: false + joint_a3: + has_velocity_limits: true + max_velocity: 3.31613 + has_acceleration_limits: false + has_jerk: false + joint_a4: + has_velocity_limits: true + max_velocity: 7.50492 + has_acceleration_limits: false + has_jerk: false + joint_a5: + has_velocity_limits: true + max_velocity: 7.50492 + has_acceleration_limits: false + has_jerk: false + joint_a6: + has_velocity_limits: true + max_velocity: 10.99557 + has_acceleration_limits: false + has_jerk: false diff --git a/kuka_cybertech_moveit_config/CMakeLists.txt b/kuka_kr_moveit_config/CMakeLists.txt similarity index 56% rename from kuka_cybertech_moveit_config/CMakeLists.txt rename to kuka_kr_moveit_config/CMakeLists.txt index ac4f33d..5ca49cf 100644 --- a/kuka_cybertech_moveit_config/CMakeLists.txt +++ b/kuka_kr_moveit_config/CMakeLists.txt @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.5) -project(kuka_cybertech_moveit_config) +project(kuka_kr_moveit_config) find_package(ament_cmake REQUIRED) find_package(urdf REQUIRED) find_package(xacro REQUIRED) -xacro_add_files(TARGET kr16r2010-2 srdf/kr16_r2010-2_arm.srdf.xacro OUTPUT kr16_r2010-2_arm.srdf INSTALL DESTINATION urdf) +xacro_add_files(TARGET kr_arm srdf/kr_arm.srdf.xacro OUTPUT kr_arm.srdf INSTALL DESTINATION urdf) install(DIRECTORY config DESTINATION share/${PROJECT_NAME}) diff --git a/kuka_cybertech_moveit_config/config/kinematics.yaml b/kuka_kr_moveit_config/config/kinematics.yaml similarity index 90% rename from kuka_cybertech_moveit_config/config/kinematics.yaml rename to kuka_kr_moveit_config/config/kinematics.yaml index bba62b5..69af1fd 100644 --- a/kuka_cybertech_moveit_config/config/kinematics.yaml +++ b/kuka_kr_moveit_config/config/kinematics.yaml @@ -1,4 +1,4 @@ -cybertech_arm: +kr_arm: kinematics_solver: kdl_kinematics_plugin/KDLKinematicsPlugin kinematics_solver_search_resolution: 0.005 kinematics_solver_timeout: 0.05 diff --git a/kuka_cybertech_moveit_config/config/moveit_controllers.yaml b/kuka_kr_moveit_config/config/moveit_controllers.yaml similarity index 100% rename from kuka_cybertech_moveit_config/config/moveit_controllers.yaml rename to kuka_kr_moveit_config/config/moveit_controllers.yaml diff --git a/kuka_cybertech_moveit_config/config/pilz_cartesian_limits.yaml b/kuka_kr_moveit_config/config/pilz_cartesian_limits.yaml similarity index 100% rename from kuka_cybertech_moveit_config/config/pilz_cartesian_limits.yaml rename to kuka_kr_moveit_config/config/pilz_cartesian_limits.yaml diff --git a/kuka_cybertech_moveit_config/config/urdf_planning_scene.rviz b/kuka_kr_moveit_config/config/urdf_planning_scene.rviz similarity index 100% rename from kuka_cybertech_moveit_config/config/urdf_planning_scene.rviz rename to kuka_kr_moveit_config/config/urdf_planning_scene.rviz diff --git a/kuka_cybertech_moveit_config/package.xml b/kuka_kr_moveit_config/package.xml similarity index 88% rename from kuka_cybertech_moveit_config/package.xml rename to kuka_kr_moveit_config/package.xml index 1146106..abf2631 100644 --- a/kuka_cybertech_moveit_config/package.xml +++ b/kuka_kr_moveit_config/package.xml @@ -1,8 +1,8 @@ - kuka_cybertech_moveit_config + kuka_kr_moveit_config 0.1.0 - Package containing moveit configuration for KUKA Cybertech robots + Package containing moveit configuration for KUKA KR robots Aron Svastits BSD diff --git a/kuka_cybertech_moveit_config/srdf/kr16_r2010-2_arm.srdf.xacro b/kuka_kr_moveit_config/srdf/kr_arm.srdf.xacro similarity index 55% rename from kuka_cybertech_moveit_config/srdf/kr16_r2010-2_arm.srdf.xacro rename to kuka_kr_moveit_config/srdf/kr_arm.srdf.xacro index 4d86655..fba0458 100644 --- a/kuka_cybertech_moveit_config/srdf/kr16_r2010-2_arm.srdf.xacro +++ b/kuka_kr_moveit_config/srdf/kr_arm.srdf.xacro @@ -3,7 +3,9 @@ This is a format for representing semantic information about the robot structure. A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined --> - - - + + + + + diff --git a/kuka_cybertech_moveit_config/srdf/cybertech_arm.macro.xacro b/kuka_kr_moveit_config/srdf/kr_arm_macro.xacro similarity index 74% rename from kuka_cybertech_moveit_config/srdf/cybertech_arm.macro.xacro rename to kuka_kr_moveit_config/srdf/kr_arm_macro.xacro index b1c78fd..a7b3f6f 100644 --- a/kuka_cybertech_moveit_config/srdf/cybertech_arm.macro.xacro +++ b/kuka_kr_moveit_config/srdf/kr_arm_macro.xacro @@ -1,20 +1,20 @@ - + - - + + - - - + + + - + @@ -23,11 +23,8 @@ - - - - +