From 6bb82f931c218c3c5b0b6d83a4489d2767d69918 Mon Sep 17 00:00:00 2001 From: dg-shadow Date: Thu, 23 Apr 2020 10:00:33 +0000 Subject: [PATCH 01/28] first attempt --- .../urdf/right_srhand_ur10.urdf.xacro | 2 +- .../ra_trajectory_controller_no_wrist.yaml | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro b/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro index 4a9497e22..678718125 100644 --- a/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro +++ b/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro @@ -12,7 +12,7 @@ - + diff --git a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml index d5b0d2f6d..488b80468 100644 --- a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml @@ -1,5 +1,5 @@ ra_trajectory_controller: - type: "position_controllers/JointTrajectoryController" + type: "velocity_controllers/ComplianceController" joints: - ra_shoulder_pan_joint - ra_shoulder_lift_joint @@ -7,6 +7,7 @@ ra_trajectory_controller: - ra_wrist_1_joint - ra_wrist_2_joint - ra_wrist_3_joint + compliance_command_timeout: 1.5 constraints: goal_time: 0.6 stopped_velocity_tolerance: 1.0 @@ -20,3 +21,20 @@ ra_trajectory_controller: state_publish_rate: 25 action_monitor_rate: 10 allow_partial_joints_goal: true + #!!These values have not been optimized!! + gains: + ra_shoulder_pan_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_shoulder_lift_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_elbow_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_1_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_2_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_3_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + + # Use a feedforward term to reduce the size of PID gains + velocity_ff: + ra_shoulder_pan_joint: 1.0 + ra_shoulder_lift_joint: 1.0 + ra_elbow_joint: 1.0 + ra_wrist_1_joint: 1.0 + ra_wrist_2_joint: 1.0 + ra_wrist_3_joint: 1.0 From 5eb47bb83470bea2d84d472ee52bda223dccfe3e Mon Sep 17 00:00:00 2001 From: dg-shadow Date: Tue, 28 Apr 2020 09:48:17 +0000 Subject: [PATCH 02/28] Least terrible tuning I could find --- .../config/robot_configs/right_sh_ur10.yaml | 2 +- .../controller/ra_trajectory_controller_no_wrist.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sr_multi_moveit/sr_multi_moveit_config/config/robot_configs/right_sh_ur10.yaml b/sr_multi_moveit/sr_multi_moveit_config/config/robot_configs/right_sh_ur10.yaml index c3c1a58a7..052ea3d2e 100644 --- a/sr_multi_moveit/sr_multi_moveit_config/config/robot_configs/right_sh_ur10.yaml +++ b/sr_multi_moveit/sr_multi_moveit_config/config/robot_configs/right_sh_ur10.yaml @@ -6,7 +6,7 @@ robot: arm: name: ur10 main_group: manipulator - moveit_path: + moveit_path: package: sr_multi_moveit_config relative_path: /config/ur extra_groups_config_path: /config diff --git a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml index 488b80468..7abd83f9e 100644 --- a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml @@ -1,3 +1,13 @@ +gazebo_ros_control: + pid_gains: + ra_shoulder_pan_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + ra_shoulder_lift_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + ra_elbow_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + ra_wrist_1_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + ra_wrist_2_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + ra_wrist_3_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} + + ra_trajectory_controller: type: "velocity_controllers/ComplianceController" joints: From 0096de90b52e5efb36f7dd3195ed3b5ac48945e9 Mon Sep 17 00:00:00 2001 From: Toni Oliver Date: Fri, 1 May 2020 09:31:19 +0000 Subject: [PATCH 03/28] Comment out gazebo pid gains --- .../ra_trajectory_controller_no_wrist.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml index 7abd83f9e..ee760ec23 100644 --- a/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/gazebo/controller/ra_trajectory_controller_no_wrist.yaml @@ -1,11 +1,11 @@ -gazebo_ros_control: - pid_gains: - ra_shoulder_pan_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} - ra_shoulder_lift_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} - ra_elbow_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} - ra_wrist_1_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} - ra_wrist_2_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} - ra_wrist_3_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# gazebo_ros_control: +# pid_gains: +# ra_shoulder_pan_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# ra_shoulder_lift_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# ra_elbow_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# ra_wrist_1_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# ra_wrist_2_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} +# ra_wrist_3_joint: {p: 500, i: 1000, d: 0.1, i_clamp_max: 1000, i_clamp_min: -1000, antiwindup: true} ra_trajectory_controller: From 1e6ee3c97497a8de4f4f9e99bc9832096933b5ea Mon Sep 17 00:00:00 2001 From: Toni Oliver Date: Wed, 23 Sep 2020 11:20:00 +0000 Subject: [PATCH 04/28] Add FT sensor to right hand UR10e xacro --- .../urdf/right_srhand_ur10e.urdf.xacro | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro b/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro index 82fa8bd48..a2d6d96f3 100644 --- a/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro +++ b/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro @@ -3,7 +3,7 @@ - + @@ -23,9 +23,35 @@ + - + - + + + + true + + true + true + + sensor + child_to_parent + + + + true + + + + + 125.0 + ra_wrench + ra_arm_to_hand + + From 2ddd51fd5d3c8739461e35f7b0e965495a44af38 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Mon, 16 Nov 2020 08:42:42 +0000 Subject: [PATCH 05/28] debugging --- .../config/ra_trajectory_controller.yaml | 26 ------------------ .../ra_trajectory_controller_no_wrist.yaml | 27 +++++++++++++++++-- .../config/right_ur10e_arm_robot_hw.yaml | 4 +-- .../config/right_ur_arm_robot_hw.yaml | 4 +-- .../launch/sr_hardware_control_loop.launch | 4 +-- 5 files changed, 31 insertions(+), 34 deletions(-) delete mode 100644 sr_robot_launch/config/ra_trajectory_controller.yaml diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml deleted file mode 100644 index 15a1b1cfe..000000000 --- a/sr_robot_launch/config/ra_trajectory_controller.yaml +++ /dev/null @@ -1,26 +0,0 @@ -ra_trajectory_controller: - type: "position_controllers/JointTrajectoryController" - hardware_interface: - joints: &robot_joints - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint - - rh_WRJ1 - - rh_WRJ2 - joints: *robot_joints - constraints: - goal_time: 0.6 - stopped_velocity_tolerance: 0.05 - ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} - ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} - ra_elbow_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_1_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} - rh_WRJ1: {trajectory: 0.9, goal: 0.4} - rh_WRJ2: {trajectory: 0.9, goal: 0.4} - stop_trajectory_duration: 0.5 - allow_partial_joints_goal: true diff --git a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml index b39084d67..056fbc001 100644 --- a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml @@ -1,5 +1,7 @@ +# type: "velocity_controllers/ComplianceController" +# type: "velocity_controllers/JointTrajectoryController" ra_trajectory_controller: - type: "position_controllers/JointTrajectoryController" + type: "velocity_controllers/ComplianceController" joints: - ra_shoulder_pan_joint - ra_shoulder_lift_joint @@ -7,9 +9,10 @@ ra_trajectory_controller: - ra_wrist_1_joint - ra_wrist_2_joint - ra_wrist_3_joint + compliance_command_timeout: 1.5 constraints: goal_time: 0.6 - stopped_velocity_tolerance: 0.05 + stopped_velocity_tolerance: 1.0 ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} ra_elbow_joint: {trajectory: 0.3, goal: 0.1} @@ -17,4 +20,24 @@ ra_trajectory_controller: ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} stop_trajectory_duration: 0.5 + state_publish_rate: 500 + action_monitor_rate: 10 allow_partial_joints_goal: true + #!!These values have not been optimized!! + gains: + ra_shoulder_pan_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_shoulder_lift_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_elbow_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_1_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_2_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_3_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + + # Use a feedforward term to reduce the size of PID gains + velocity_ff: + var: &v_ff 0.8 + ra_shoulder_pan_joint: *v_ff + ra_shoulder_lift_joint: *v_ff + ra_elbow_joint: *v_ff + ra_wrist_1_joint: *v_ff + ra_wrist_2_joint: *v_ff + ra_wrist_3_joint: *v_ff diff --git a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml index a8da278c7..bcb5b8620 100644 --- a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml @@ -15,11 +15,11 @@ ra_sr_ur_robot_hw: # for sending robot programs # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - robot_ip: 10.8.1.1 + robot_ip: 192.168.1.1 # for the server that moves the robot # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - control_pc_ip_address: 10.8.1.100 + control_pc_ip_address: 192.168.1.100 input_recipe_file: /home/user/projects/shadow_robot/base/src/Universal_Robots_ROS_Driver/ur_robot_driver/resources/rtde_input_recipe.txt diff --git a/sr_robot_launch/config/right_ur_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur_arm_robot_hw.yaml index affded94d..23103e172 100644 --- a/sr_robot_launch/config/right_ur_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur_arm_robot_hw.yaml @@ -15,11 +15,11 @@ ra_sr_ur_robot_hw: # for sending robot programs # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - robot_ip: 10.8.1.1 + robot_ip: 192.168.1.1 # for the server that moves the robot # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - control_pc_ip_address: 10.8.1.100 + control_pc_ip_address: 192.168.1.100 input_recipe_file: /home/user/projects/shadow_robot/base/src/Universal_Robots_ROS_Driver/ur_robot_driver/resources/rtde_input_recipe.txt diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index db324008a..4fc3820f0 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -12,7 +12,7 @@ - + @@ -53,7 +53,7 @@ - + From 1beca708ab6ea0b487b945a7f261ad941c5b0979 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Mon, 16 Nov 2020 08:50:17 +0000 Subject: [PATCH 06/28] debugging --- .../ra_trajectory_controller_no_wrist.yaml | 24 ++- sr_robot_launch/launch/sr_ur10arm_box.launch | 160 ++++++++++++++++++ 2 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 sr_robot_launch/launch/sr_ur10arm_box.launch diff --git a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml index b39084d67..488b80468 100644 --- a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml @@ -1,5 +1,5 @@ ra_trajectory_controller: - type: "position_controllers/JointTrajectoryController" + type: "velocity_controllers/ComplianceController" joints: - ra_shoulder_pan_joint - ra_shoulder_lift_joint @@ -7,9 +7,10 @@ ra_trajectory_controller: - ra_wrist_1_joint - ra_wrist_2_joint - ra_wrist_3_joint + compliance_command_timeout: 1.5 constraints: goal_time: 0.6 - stopped_velocity_tolerance: 0.05 + stopped_velocity_tolerance: 1.0 ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} ra_elbow_joint: {trajectory: 0.3, goal: 0.1} @@ -17,4 +18,23 @@ ra_trajectory_controller: ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} stop_trajectory_duration: 0.5 + state_publish_rate: 25 + action_monitor_rate: 10 allow_partial_joints_goal: true + #!!These values have not been optimized!! + gains: + ra_shoulder_pan_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_shoulder_lift_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_elbow_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_1_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_2_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + ra_wrist_3_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + + # Use a feedforward term to reduce the size of PID gains + velocity_ff: + ra_shoulder_pan_joint: 1.0 + ra_shoulder_lift_joint: 1.0 + ra_elbow_joint: 1.0 + ra_wrist_1_joint: 1.0 + ra_wrist_2_joint: 1.0 + ra_wrist_3_joint: 1.0 diff --git a/sr_robot_launch/launch/sr_ur10arm_box.launch b/sr_robot_launch/launch/sr_ur10arm_box.launch new file mode 100644 index 000000000..afb6e458a --- /dev/null +++ b/sr_robot_launch/launch/sr_ur10arm_box.launch @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [/robot_description, /robot_description_semantic] + + + + + + + + + + + + + + [/robot_description] + + + + + From 2da2801858e721b241c88245fb14909818409328 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Tue, 24 Nov 2020 15:54:17 +0000 Subject: [PATCH 07/28] parameters --- .../ra_trajectory_controller_no_wrist.yaml | 20 +++++++++++------- .../config/right_ur10e_arm_robot_hw.yaml | 21 +++++++++++-------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml index 3324033df..9702e8209 100644 --- a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml @@ -12,7 +12,7 @@ ra_trajectory_controller: compliance_command_timeout: 1.5 constraints: goal_time: 0.6 - stopped_velocity_tolerance: 1.0 + stopped_velocity_tolerance: 0.1 ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} ra_elbow_joint: {trajectory: 0.3, goal: 0.1} @@ -25,16 +25,20 @@ ra_trajectory_controller: allow_partial_joints_goal: true #!!These values have not been optimized!! gains: - ra_shoulder_pan_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_shoulder_lift_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_elbow_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_1_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_2_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_3_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + p: &p_gain 20.0 + i: &i_gain 0.0 + d: &d_gain 0.0 + clamp: &i_clamp 1.0 + ra_shoulder_pan_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_shoulder_lift_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_elbow_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_1_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_2_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_3_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} # Use a feedforward term to reduce the size of PID gains velocity_ff: - var: &v_ff 0.8 + var: &v_ff 0.0 ra_shoulder_pan_joint: *v_ff ra_shoulder_lift_joint: *v_ff ra_elbow_joint: *v_ff diff --git a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml index bcb5b8620..fdea02ea2 100644 --- a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml @@ -1,12 +1,11 @@ ra_sr_ur_robot_hw: - hardware_interface: - joints: &robot_joints - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint + joints: &robot_joints + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint type: ur_driver/HardwareInterface @@ -41,6 +40,10 @@ ra_sr_ur_robot_hw: use_local_hardware_interface_param: true - non_blocking_read: true +# non_blocking_read: true + + non_blocking_read: false wrench_prefix: right_ + + tf_prefix: ra_ From a7f008f304175bdca6a413bc0eba222229d225bc Mon Sep 17 00:00:00 2001 From: carebare47 Date: Tue, 24 Nov 2020 15:57:14 +0000 Subject: [PATCH 08/28] params --- .../ra_trajectory_controller_no_wrist.yaml | 25 +++++++++++-------- .../config/right_ur10e_arm_robot_hw.yaml | 19 +++++++------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml index 056fbc001..58c15bee4 100644 --- a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml @@ -11,8 +11,8 @@ ra_trajectory_controller: - ra_wrist_3_joint compliance_command_timeout: 1.5 constraints: - goal_time: 0.6 - stopped_velocity_tolerance: 1.0 + goal_time: 6.0 + stopped_velocity_tolerance: 0.05 ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} ra_elbow_joint: {trajectory: 0.3, goal: 0.1} @@ -20,24 +20,29 @@ ra_trajectory_controller: ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} stop_trajectory_duration: 0.5 - state_publish_rate: 500 + state_publish_rate: 250 action_monitor_rate: 10 allow_partial_joints_goal: true #!!These values have not been optimized!! gains: - ra_shoulder_pan_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_shoulder_lift_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_elbow_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_1_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_2_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} - ra_wrist_3_joint: {p: 5.0, i: 0.05, d: 0.1, i_clamp: 1} + p: &p_gain 20.0 + i: &i_gain 0.0 + d: &d_gain 0.0 + clamp: &i_clamp 1.0 + ra_shoulder_pan_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_shoulder_lift_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_elbow_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_1_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_2_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_3_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} # Use a feedforward term to reduce the size of PID gains velocity_ff: - var: &v_ff 0.8 + var: &v_ff 0.0 ra_shoulder_pan_joint: *v_ff ra_shoulder_lift_joint: *v_ff ra_elbow_joint: *v_ff ra_wrist_1_joint: *v_ff ra_wrist_2_joint: *v_ff ra_wrist_3_joint: *v_ff + diff --git a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml index bcb5b8620..7f4decd9f 100644 --- a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml @@ -1,12 +1,11 @@ ra_sr_ur_robot_hw: - hardware_interface: - joints: &robot_joints - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint + joints: &robot_joints + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint type: ur_driver/HardwareInterface @@ -41,6 +40,8 @@ ra_sr_ur_robot_hw: use_local_hardware_interface_param: true - non_blocking_read: true + non_blocking_read: false wrench_prefix: right_ + + tf_prefix: ra_ From 965884a6f1aff563449f8ed0cce7445e0bdeb29d Mon Sep 17 00:00:00 2001 From: carebare47 Date: Wed, 25 Nov 2020 09:21:10 +0000 Subject: [PATCH 09/28] remove box --- .../config/ra_ur10e_with_box.urdf.xacro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro index b0a136f1b..f83481e46 100644 --- a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro +++ b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro @@ -23,13 +23,13 @@ - - + - + From 554958cf46d2342ef7a2f4824ec7f776a8039a37 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Wed, 25 Nov 2020 09:22:40 +0000 Subject: [PATCH 10/28] mass and kinematics --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 4fc3820f0..19a431aea 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -53,10 +53,11 @@ - + - - + + + From 29f71164c10f92942fa10f8f9289f7b879082f08 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Tue, 15 Dec 2020 14:29:30 +0000 Subject: [PATCH 11/28] add transmission interface to launch files for hw --- .../launch/sr_bimanual_hardware_control_loop.launch | 5 ++++- sr_robot_launch/launch/sr_hardware_control_loop.launch | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sr_robot_launch/launch/sr_bimanual_hardware_control_loop.launch b/sr_robot_launch/launch/sr_bimanual_hardware_control_loop.launch index eba1c15e8..f4be1440f 100644 --- a/sr_robot_launch/launch/sr_bimanual_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_bimanual_hardware_control_loop.launch @@ -48,6 +48,9 @@ + + + @@ -66,7 +69,7 @@ - + diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 19a431aea..00869d4a1 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -39,6 +39,7 @@ + @@ -55,9 +56,10 @@ - - - + + + + @@ -150,7 +152,7 @@ - + From ec2c54c9385a9e25f05ff652787d3e4e9383ffce Mon Sep 17 00:00:00 2001 From: carebare47 Date: Wed, 16 Dec 2020 13:22:42 +0000 Subject: [PATCH 12/28] fix arg bug --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 00869d4a1..122a8df05 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -61,7 +61,7 @@ - + @@ -152,7 +152,7 @@ - + From 3722df86b27b6723703d0e78b96f42e49cf82074 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 13:35:35 +0000 Subject: [PATCH 13/28] trying to load both controllers --- ...> ra_compliant_trajectory_controller.yaml} | 2 +- .../config/ra_trajectory_controller.yaml | 22 +++++++++++++++++++ .../launch/sr_hardware_control_loop.launch | 14 +++++------- 3 files changed, 29 insertions(+), 9 deletions(-) rename sr_robot_launch/config/{ra_trajectory_controller_no_wrist.yaml => ra_compliant_trajectory_controller.yaml} (98%) create mode 100644 sr_robot_launch/config/ra_trajectory_controller.yaml diff --git a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml b/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml similarity index 98% rename from sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml rename to sr_robot_launch/config/ra_compliant_trajectory_controller.yaml index 58c15bee4..1b2bb5621 100644 --- a/sr_robot_launch/config/ra_trajectory_controller_no_wrist.yaml +++ b/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml @@ -1,6 +1,6 @@ # type: "velocity_controllers/ComplianceController" # type: "velocity_controllers/JointTrajectoryController" -ra_trajectory_controller: +ra_compliant_trajectory_controller: type: "velocity_controllers/ComplianceController" joints: - ra_shoulder_pan_joint diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml new file mode 100644 index 000000000..8160c541b --- /dev/null +++ b/sr_robot_launch/config/ra_trajectory_controller.yaml @@ -0,0 +1,22 @@ +ra_trajectory_controller: + type: "position_controllers/JointTrajectoryController" + hardware_interface: + joints: &robot_joints + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint + joints: *robot_joints + constraints: + goal_time: 0.6 + stopped_velocity_tolerance: 0.05 + ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} + ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} + ra_elbow_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_1_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} + stop_trajectory_duration: 0.5 + allow_partial_joints_goal: true diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 122a8df05..7426c6e6e 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -40,6 +40,8 @@ + + @@ -47,7 +49,6 @@ - @@ -110,7 +111,6 @@ - @@ -159,18 +159,16 @@ - - + - + + args="--wait-for=/$(arg arm_prefix)_sr_ur_robot_hw/robot_program_running $(arg trajectory_controller_type)"/> - - + Date: Thu, 17 Dec 2020 13:37:26 +0000 Subject: [PATCH 14/28] test flag --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 7426c6e6e..f79b6db9f 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -39,7 +39,7 @@ - + From b3f1474bcf7e7a897c346e8adc03bf41201a8eff Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 14:41:37 +0000 Subject: [PATCH 15/28] load both --- .../config/ra_trajectory_controller.yaml | 47 +++++++++++++++++++ .../launch/sr_hardware_control_loop.launch | 6 ++- 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml index 8160c541b..3fbfd6b93 100644 --- a/sr_robot_launch/config/ra_trajectory_controller.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller.yaml @@ -20,3 +20,50 @@ ra_trajectory_controller: ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} stop_trajectory_duration: 0.5 allow_partial_joints_goal: true + +ra_compliant_trajectory_controller: + type: "velocity_controllers/ComplianceController" + joints: + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint + compliance_command_timeout: 1.5 + constraints: + goal_time: 6.0 + stopped_velocity_tolerance: 0.05 + ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} + ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} + ra_elbow_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_1_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} + ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} + stop_trajectory_duration: 0.5 + state_publish_rate: 250 + action_monitor_rate: 10 + allow_partial_joints_goal: true + #!!These values have not been optimized!! + gains: + p: &p_gain 20.0 + i: &i_gain 0.0 + d: &d_gain 0.0 + clamp: &i_clamp 1.0 + ra_shoulder_pan_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_shoulder_lift_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_elbow_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_1_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_2_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + ra_wrist_3_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} + + # Use a feedforward term to reduce the size of PID gains + velocity_ff: + var: &v_ff 0.0 + ra_shoulder_pan_joint: *v_ff + ra_shoulder_lift_joint: *v_ff + ra_elbow_joint: *v_ff + ra_wrist_1_joint: *v_ff + ra_wrist_2_joint: *v_ff + ra_wrist_3_joint: *v_ff + diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index f79b6db9f..61358f2d4 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -161,9 +161,11 @@ - + + args="--wait-for=/$(arg arm_prefix)_sr_ur_robot_hw/robot_program_running $(arg arm_prefix)_trajectory_controller"/> + From 4bac55a1796f3f108f0a7ace8e458ea38d1e43b6 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 14:41:54 +0000 Subject: [PATCH 16/28] load both --- .../config/ra_controllers.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml index 9ce587b34..608ed94f3 100644 --- a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml +++ b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml @@ -10,3 +10,14 @@ - ra_wrist_1_joint - ra_wrist_2_joint - ra_wrist_3_joint + - name: ra_compliant_trajectory_controller + action_ns: follow_joint_trajectory + type: FollowJointTrajectory + default: true + joints: + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint From 5f1ded8fd40569eff52cb0fea9c5808474f7f037 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 14:50:25 +0000 Subject: [PATCH 17/28] both controllers --- .../config/ra_trajectory_controller.yaml | 25 ++++++++----------- .../launch/sr_hardware_control_loop.launch | 4 +-- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml index 3fbfd6b93..3b72ecc3e 100644 --- a/sr_robot_launch/config/ra_trajectory_controller.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller.yaml @@ -1,13 +1,16 @@ + +joints: &robot_joints + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint + ra_trajectory_controller: type: "position_controllers/JointTrajectoryController" hardware_interface: - joints: &robot_joints - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint + joints: *robot_joints joints: *robot_joints constraints: goal_time: 0.6 @@ -23,13 +26,7 @@ ra_trajectory_controller: ra_compliant_trajectory_controller: type: "velocity_controllers/ComplianceController" - joints: - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint + joints: *robot_joints compliance_command_timeout: 1.5 constraints: goal_time: 6.0 diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 61358f2d4..4a7c50492 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -163,9 +163,7 @@ - + args="--wait-for=/$(arg arm_prefix)_sr_ur_robot_hw/robot_program_running $(arg arm_prefix)_trajectory_controller --stopped $(arg arm_prefix)_compliant_trajectory_controller"/> From 56c7b4289d8cb5e5cf7fb7eee4adaf635a7e7b8a Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 14:55:50 +0000 Subject: [PATCH 18/28] both --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 4a7c50492..0275a5d18 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -163,7 +163,9 @@ + args="--wait-for=/$(arg arm_prefix)_sr_ur_robot_hw/robot_program_running $(arg arm_prefix)_trajectory_controller"/> + From 464195511d7ce50de8e8be22ba5183be9d4ddbd4 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 16:23:32 +0000 Subject: [PATCH 19/28] test --- .../ra_compliant_trajectory_controller.yaml | 21 +++++----- .../config/ra_trajectory_controller.yaml | 40 ------------------- .../launch/sr_hardware_control_loop.launch | 13 +++--- 3 files changed, 17 insertions(+), 57 deletions(-) diff --git a/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml b/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml index 1b2bb5621..741acc6b9 100644 --- a/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml +++ b/sr_robot_launch/config/ra_compliant_trajectory_controller.yaml @@ -1,14 +1,15 @@ -# type: "velocity_controllers/ComplianceController" -# type: "velocity_controllers/JointTrajectoryController" -ra_compliant_trajectory_controller: + +joints: &robot_joints + - ra_shoulder_pan_joint + - ra_shoulder_lift_joint + - ra_elbow_joint + - ra_wrist_1_joint + - ra_wrist_2_joint + - ra_wrist_3_joint + +ra_trajectory_controller: type: "velocity_controllers/ComplianceController" - joints: - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint + joints: *robot_joints compliance_command_timeout: 1.5 constraints: goal_time: 6.0 diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml index 3b72ecc3e..f6c6d0833 100644 --- a/sr_robot_launch/config/ra_trajectory_controller.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller.yaml @@ -24,43 +24,3 @@ ra_trajectory_controller: stop_trajectory_duration: 0.5 allow_partial_joints_goal: true -ra_compliant_trajectory_controller: - type: "velocity_controllers/ComplianceController" - joints: *robot_joints - compliance_command_timeout: 1.5 - constraints: - goal_time: 6.0 - stopped_velocity_tolerance: 0.05 - ra_shoulder_pan_joint: {trajectory: 0.3, goal: 0.1} - ra_shoulder_lift_joint: {trajectory: 0.3, goal: 0.1} - ra_elbow_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_1_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_2_joint: {trajectory: 0.3, goal: 0.1} - ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} - stop_trajectory_duration: 0.5 - state_publish_rate: 250 - action_monitor_rate: 10 - allow_partial_joints_goal: true - #!!These values have not been optimized!! - gains: - p: &p_gain 20.0 - i: &i_gain 0.0 - d: &d_gain 0.0 - clamp: &i_clamp 1.0 - ra_shoulder_pan_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - ra_shoulder_lift_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - ra_elbow_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - ra_wrist_1_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - ra_wrist_2_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - ra_wrist_3_joint: {p: *p_gain, i: *i_gain, d: *d_gain, i_clamp: *i_clamp} - - # Use a feedforward term to reduce the size of PID gains - velocity_ff: - var: &v_ff 0.0 - ra_shoulder_pan_joint: *v_ff - ra_shoulder_lift_joint: *v_ff - ra_elbow_joint: *v_ff - ra_wrist_1_joint: *v_ff - ra_wrist_2_joint: *v_ff - ra_wrist_3_joint: *v_ff - diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 0275a5d18..cd9f1e3e7 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -40,8 +40,6 @@ - - @@ -161,11 +159,12 @@ - - - + + + + + From fa3b9cec268ddc35c42c9fbdf6ec7570805d487a Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 17 Dec 2020 16:39:52 +0000 Subject: [PATCH 20/28] start wrench_to_joint_vel_pub when using compliance controller --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index cd9f1e3e7..d614240e1 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -142,6 +142,8 @@ robot_hardware: - unique_robot_hw + + @@ -159,7 +161,7 @@ - + Date: Fri, 18 Dec 2020 11:58:51 +0000 Subject: [PATCH 21/28] bug --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index d614240e1..89b45b0da 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -143,7 +143,7 @@ - unique_robot_hw - + From 176feb9b3b1aaa86b21547dca660be00f279453e Mon Sep 17 00:00:00 2001 From: carebare47 Date: Fri, 18 Dec 2020 12:03:25 +0000 Subject: [PATCH 22/28] condition around compliance --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 89b45b0da..60c87ce28 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -143,7 +143,13 @@ - unique_robot_hw - + + + + + [/robot_description, /robot_description_semantic] + + From 54b4b795de52fbfcd4436d749cbf4780734b4681 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Fri, 18 Dec 2020 12:50:11 +0000 Subject: [PATCH 23/28] remove old controller --- .../config/ra_controllers.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml index 608ed94f3..9ce587b34 100644 --- a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml +++ b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_controllers.yaml @@ -10,14 +10,3 @@ - ra_wrist_1_joint - ra_wrist_2_joint - ra_wrist_3_joint - - name: ra_compliant_trajectory_controller - action_ns: follow_joint_trajectory - type: FollowJointTrajectory - default: true - joints: - - ra_shoulder_pan_joint - - ra_shoulder_lift_joint - - ra_elbow_joint - - ra_wrist_1_joint - - ra_wrist_2_joint - - ra_wrist_3_joint From 4e2f0761014bf804fdab86545a218cee581a5fd6 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Fri, 18 Dec 2020 12:51:31 +0000 Subject: [PATCH 24/28] test --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index 60c87ce28..2007623b5 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -144,7 +144,7 @@ - + [/robot_description, /robot_description_semantic] From 0c3007a21571e75045d84129427ee16a8fe8fa25 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Fri, 18 Dec 2020 15:04:09 +0000 Subject: [PATCH 25/28] resetting xacros --- sr_multi_description/urdf/right_srhand_ur10.urdf.xacro | 2 +- sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro b/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro index 678718125..4a9497e22 100644 --- a/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro +++ b/sr_multi_description/urdf/right_srhand_ur10.urdf.xacro @@ -12,7 +12,7 @@ - + diff --git a/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro b/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro index a2d6d96f3..3286679fc 100644 --- a/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro +++ b/sr_multi_description/urdf/right_srhand_ur10e.urdf.xacro @@ -3,7 +3,7 @@ - + From 63263064d2fe3267e90f5c874d56c4a2bee077d4 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Fri, 18 Dec 2020 15:48:07 +0000 Subject: [PATCH 26/28] fix --- sr_robot_launch/launch/sr_hardware_control_loop.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index f67f71fdb..bd1abfce8 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -158,7 +158,7 @@ - + [/robot_description, /robot_description_semantic] From f0efa259a158053fa70de1e38377803ecdcc3eb4 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 7 Jan 2021 16:19:30 +0000 Subject: [PATCH 27/28] tidying --- .../config/ra_ur10e_with_box.urdf.xacro | 8 +- .../config/right_ur10e_arm_robot_hw.yaml | 5 +- .../config/right_ur_arm_robot_hw.yaml | 4 +- .../launch/sr_hardware_control_loop.launch | 21 +-- sr_robot_launch/launch/sr_ur10arm_box.launch | 160 ------------------ 5 files changed, 15 insertions(+), 183 deletions(-) delete mode 100644 sr_robot_launch/launch/sr_ur10arm_box.launch diff --git a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro index f83481e46..b0a136f1b 100644 --- a/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro +++ b/sr_multi_moveit/sr_box_ur10_moveit_config/config/ra_ur10e_with_box.urdf.xacro @@ -23,13 +23,13 @@ - + + - + diff --git a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml index 73ede01f7..00ef54e7d 100644 --- a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml @@ -14,11 +14,11 @@ ra_sr_ur_robot_hw: # for sending robot programs # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - robot_ip: 192.168.1.1 + robot_ip: 10.8.1.1 # for the server that moves the robot # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - control_pc_ip_address: 192.168.1.100 + control_pc_ip_address: 10.8.1.100 input_recipe_file: /home/user/projects/shadow_robot/base/src/Universal_Robots_ROS_Driver/ur_robot_driver/resources/rtde_input_recipe.txt @@ -44,4 +44,3 @@ ra_sr_ur_robot_hw: wrench_prefix: right_ - tf_prefix: ra_ diff --git a/sr_robot_launch/config/right_ur_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur_arm_robot_hw.yaml index 246385863..dd79fe2f4 100644 --- a/sr_robot_launch/config/right_ur_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur_arm_robot_hw.yaml @@ -14,11 +14,11 @@ ra_sr_ur_robot_hw: # for sending robot programs # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - robot_ip: 192.168.1.1 + robot_ip: 10.8.1.1 # for the server that moves the robot # aurora (https://github.com/shadow-robot/aurora) uses sed to replace this IP with the user-defined IP - control_pc_ip_address: 192.168.1.100 + control_pc_ip_address: 10.8.1.100 input_recipe_file: /home/user/projects/shadow_robot/base/src/Universal_Robots_ROS_Driver/ur_robot_driver/resources/rtde_input_recipe.txt diff --git a/sr_robot_launch/launch/sr_hardware_control_loop.launch b/sr_robot_launch/launch/sr_hardware_control_loop.launch index bd1abfce8..54d0b1b5f 100644 --- a/sr_robot_launch/launch/sr_hardware_control_loop.launch +++ b/sr_robot_launch/launch/sr_hardware_control_loop.launch @@ -18,7 +18,7 @@ - + @@ -67,6 +67,8 @@ + + @@ -156,8 +158,7 @@ robot_hardware: - unique_robot_hw - - + @@ -173,22 +174,14 @@ - - - - - - - - - - + + diff --git a/sr_robot_launch/launch/sr_ur10arm_box.launch b/sr_robot_launch/launch/sr_ur10arm_box.launch deleted file mode 100644 index afb6e458a..000000000 --- a/sr_robot_launch/launch/sr_ur10arm_box.launch +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [/robot_description, /robot_description_semantic] - - - - - - - - - - - - - - [/robot_description] - - - - - From 4c848f8dfe03005b52a4b570862bca0fb599f2a7 Mon Sep 17 00:00:00 2001 From: carebare47 Date: Thu, 7 Jan 2021 16:23:43 +0000 Subject: [PATCH 28/28] tidying --- sr_robot_launch/config/ra_trajectory_controller.yaml | 1 - sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/sr_robot_launch/config/ra_trajectory_controller.yaml b/sr_robot_launch/config/ra_trajectory_controller.yaml index f6c6d0833..3ea63e484 100644 --- a/sr_robot_launch/config/ra_trajectory_controller.yaml +++ b/sr_robot_launch/config/ra_trajectory_controller.yaml @@ -23,4 +23,3 @@ ra_trajectory_controller: ra_wrist_3_joint: {trajectory: 0.3, goal: 0.1} stop_trajectory_duration: 0.5 allow_partial_joints_goal: true - diff --git a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml index 00ef54e7d..c1caa73b7 100644 --- a/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml +++ b/sr_robot_launch/config/right_ur10e_arm_robot_hw.yaml @@ -43,4 +43,3 @@ ra_sr_ur_robot_hw: non_blocking_read: true wrench_prefix: right_ -