From 070d512caa6950c39971b8de471b34b0d21849ed Mon Sep 17 00:00:00 2001 From: Lovro Date: Thu, 2 Mar 2023 09:46:55 +0100 Subject: [PATCH 1/5] Add pids for simulation. --- urdf/ur.ros2_control.xacro | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/urdf/ur.ros2_control.xacro b/urdf/ur.ros2_control.xacro index f1050ab..ab2ccdf 100644 --- a/urdf/ur.ros2_control.xacro +++ b/urdf/ur.ros2_control.xacro @@ -75,6 +75,17 @@ + + + 10000.0 + 0.0 + 5.0 + 75 + -75 + 150 + -150 + 0.0 + @@ -91,6 +102,17 @@ + + + 10000.0 + 0.0 + 5.0 + 75 + -75 + 150 + -150 + 0.0 + @@ -107,6 +129,17 @@ + + + 10000.0 + 0.0 + 5.0 + 75 + -75 + 150 + -150 + 0.0 + @@ -123,6 +156,17 @@ + + + 500.0 + 0.0 + 5.0 + 14 + -14 + 28 + -28 + 0.0 + @@ -139,6 +183,17 @@ + + + 500.0 + 0.0 + 5.0 + 14 + -14 + 28 + -28 + 0.0 + @@ -155,6 +210,17 @@ + + + 300.0 + 0.0 + 0.0 + 14 + -14 + 28 + -28 + 0.0 + From 1289ef18cc4675417fd14f75f86a476b595394dc Mon Sep 17 00:00:00 2001 From: Lovro Date: Fri, 3 Mar 2023 17:34:28 +0100 Subject: [PATCH 2/5] Add dynamics per joint. Change pid params. --- urdf/ur.ros2_control.xacro | 144 ++++++++++++++++++++++++------------- urdf/ur_macro.xacro | 12 ++-- 2 files changed, 102 insertions(+), 54 deletions(-) diff --git a/urdf/ur.ros2_control.xacro b/urdf/ur.ros2_control.xacro index ab2ccdf..2b22d02 100644 --- a/urdf/ur.ros2_control.xacro +++ b/urdf/ur.ros2_control.xacro @@ -77,14 +77,22 @@ - 10000.0 - 0.0 - 5.0 - 75 - -75 - 150 - -150 - 0.0 + 10.0 + 0.0 + 0.01 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 50.0 + 100.0 + 0.0 + 75.0 + -75.0 + 150.0 + -150.0 + 0.0 @@ -104,14 +112,22 @@ - 10000.0 - 0.0 - 5.0 - 75 - -75 - 150 - -150 - 0.0 + 10.0 + 0.0 + 0.01 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 300.0 + 90.0 + 0.0 + 75.0 + -75.0 + 150.0 + -150.0 + 0.0 @@ -131,14 +147,22 @@ - 10000.0 - 0.0 - 5.0 - 75 - -75 - 150 - -150 - 0.0 + 10.0 + 0.0 + 0.01 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 50.0 + 100.0 + 0.0 + 75.0 + -75.0 + 150.0 + -150.0 + 0.0 @@ -158,14 +182,22 @@ - 500.0 - 0.0 - 5.0 - 14 - -14 - 28 - -28 - 0.0 + 10.0 + 0.0 + 0.001 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 10.0 + 10.0 + 0.0 + 14.0 + -14.0 + 28.0 + -28.0 + 0.0 @@ -185,14 +217,22 @@ - 500.0 - 0.0 - 5.0 - 14 - -14 - 28 - -28 - 0.0 + 10.0 + 0.0 + 0.001 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 5.0 + 10.0 + 0.0 + 14.0 + -14.0 + 28.0 + -28.0 + 0.0 @@ -212,14 +252,22 @@ - 300.0 - 0.0 - 0.0 - 14 - -14 - 28 - -28 - 0.0 + 10.0 + 0.0 + 0.0001 + 1.57 + -1.57 + 3.14 + -3.14 + 0.0 + 5.0 + 10.0 + 0.0 + 14.0 + -14.0 + 28.0 + -28.0 + 0.0 diff --git a/urdf/ur_macro.xacro b/urdf/ur_macro.xacro index 7e43bcd..a56e950 100644 --- a/urdf/ur_macro.xacro +++ b/urdf/ur_macro.xacro @@ -288,7 +288,7 @@ - + @@ -300,7 +300,7 @@ - + @@ -312,7 +312,7 @@ - + @@ -324,7 +324,7 @@ - + @@ -336,7 +336,7 @@ - + @@ -348,7 +348,7 @@ - + From 03a9cf6e947a7ec5025951b335cfd1f54126277f Mon Sep 17 00:00:00 2001 From: Lovro Date: Wed, 8 Mar 2023 12:34:55 +0100 Subject: [PATCH 3/5] Update pid params for sim. --- urdf/ur.ros2_control.xacro | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/urdf/ur.ros2_control.xacro b/urdf/ur.ros2_control.xacro index 2b22d02..57c5ffd 100644 --- a/urdf/ur.ros2_control.xacro +++ b/urdf/ur.ros2_control.xacro @@ -85,8 +85,8 @@ 3.14 -3.14 0.0 - 50.0 - 100.0 + 10.0 + 1000.0 0.0 75.0 -75.0 @@ -120,8 +120,8 @@ 3.14 -3.14 0.0 - 300.0 - 90.0 + 10.0 + 1000.0 0.0 75.0 -75.0 @@ -155,8 +155,8 @@ 3.14 -3.14 0.0 - 50.0 - 100.0 + 10.0 + 1000.0 0.0 75.0 -75.0 @@ -191,7 +191,7 @@ -3.14 0.0 10.0 - 10.0 + 1000.0 0.0 14.0 -14.0 @@ -226,7 +226,7 @@ -3.14 0.0 5.0 - 10.0 + 1000.0 0.0 14.0 -14.0 @@ -261,7 +261,7 @@ -3.14 0.0 5.0 - 10.0 + 1000.0 0.0 14.0 -14.0 From 6a3d062f491095f2d45964caf0ad5f475ed05fd2 Mon Sep 17 00:00:00 2001 From: Lovro Date: Mon, 20 Mar 2023 12:52:15 +0100 Subject: [PATCH 4/5] Adapt pids for simulation. --- urdf/ur.ros2_control.xacro | 108 +++++++++++-------------------------- 1 file changed, 30 insertions(+), 78 deletions(-) diff --git a/urdf/ur.ros2_control.xacro b/urdf/ur.ros2_control.xacro index 57c5ffd..0a57abc 100644 --- a/urdf/ur.ros2_control.xacro +++ b/urdf/ur.ros2_control.xacro @@ -77,19 +77,11 @@ - 10.0 - 0.0 - 0.01 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 10.0 - 1000.0 - 0.0 - 75.0 - -75.0 + 4000.0 + 250.0 + 1.0 + 15.0 + -15.0 150.0 -150.0 0.0 @@ -112,19 +104,11 @@ - 10.0 - 0.0 - 0.01 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 10.0 - 1000.0 - 0.0 - 75.0 - -75.0 + 100000.0 + 1600.0 + 2.5 + 45.0 + -45.0 150.0 -150.0 0.0 @@ -147,19 +131,11 @@ - 10.0 - 0.0 - 0.01 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 10.0 - 1000.0 - 0.0 - 75.0 - -75.0 + 10000.0 + 450.0 + 2.0 + 30.0 + -30.0 150.0 -150.0 0.0 @@ -182,19 +158,11 @@ - 10.0 - 0.0 - 0.001 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 10.0 - 1000.0 - 0.0 - 14.0 - -14.0 + 3000.0 + 175.0 + 0.5 + 7.0 + -7.0 28.0 -28.0 0.0 @@ -217,19 +185,11 @@ - 10.0 - 0.0 - 0.001 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 5.0 - 1000.0 - 0.0 - 14.0 - -14.0 + 2500.0 + 150.0 + 0.3 + 6.0 + -6.0 28.0 -28.0 0.0 @@ -252,19 +212,11 @@ - 10.0 - 0.0 - 0.0001 - 1.57 - -1.57 - 3.14 - -3.14 - 0.0 - 5.0 - 1000.0 - 0.0 - 14.0 - -14.0 + 2000.0 + 10.0 + 0.2 + 5.0 + -5.0 28.0 -28.0 0.0 From 3a862130e5ca74e46cf403501ee2f982ff4bc1b4 Mon Sep 17 00:00:00 2001 From: Lovro Date: Tue, 21 Mar 2023 11:07:05 +0100 Subject: [PATCH 5/5] Add parameter for absolute mesh paths. --- urdf/ur_macro.xacro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urdf/ur_macro.xacro b/urdf/ur_macro.xacro index a56e950..a65c8b3 100644 --- a/urdf/ur_macro.xacro +++ b/urdf/ur_macro.xacro @@ -70,6 +70,7 @@ fake_sensor_commands:=false sim_gazebo:=false sim_ignition:=false + force_abs_paths:=false headless_mode:=false initial_positions:=${dict(shoulder_pan_joint=0.0,shoulder_lift_joint=-1.57,elbow_joint=0.0,wrist_1_joint=-1.57,wrist_2_joint=0.0,wrist_3_joint=0.0)} use_tool_communication:=false @@ -96,7 +97,7 @@ kinematics_parameters_file="${kinematics_parameters_file}" physical_parameters_file="${physical_parameters_file}" visual_parameters_file="${visual_parameters_file}" - force_abs_paths="${sim_gazebo or sim_ignition}"/> + force_abs_paths="${force_abs_paths}"/>