From 17165c5067b323683f90240d7510f9a991e1843f Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Thu, 16 Feb 2023 18:53:12 +0100 Subject: [PATCH 1/8] [ergoCubSN000] Update leg torque control gains --- .../motorControl/left_leg-eb8-j0_3-mc.xml | 8 +++---- .../motorControl/left_leg-eb9-j4_5-mc.xml | 14 +++++------ .../motorControl/right_leg-eb6-j0_3-mc.xml | 8 +++---- .../motorControl/right_leg-eb7-j4_5-mc.xml | 24 +++++++++---------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/ergoCubSN000/hardware/motorControl/left_leg-eb8-j0_3-mc.xml b/ergoCubSN000/hardware/motorControl/left_leg-eb8-j0_3-mc.xml index aa547f2ef7..3181802275 100644 --- a/ergoCubSN000/hardware/motorControl/left_leg-eb8-j0_3-mc.xml +++ b/ergoCubSN000/hardware/motorControl/left_leg-eb8-j0_3-mc.xml @@ -117,18 +117,18 @@ current metric_units machine_units - -0.0 0.0 -0.0 -0.0 + -100 150 -0.0 -350 0 0 0 0 - -0 0 -0 -0 + -10 25 -0 -100 2500 2500 2500 2500 200 200 200 200 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 - -0.0 0.0 -0.0 -0.0 + -0.0001 0.0001 -0.0005 -0.0003 0 0 0 0 - -50 50 -50 -50 + -40 50 -150 -110 diff --git a/ergoCubSN000/hardware/motorControl/left_leg-eb9-j4_5-mc.xml b/ergoCubSN000/hardware/motorControl/left_leg-eb9-j4_5-mc.xml index 37976f7877..c297db0e3f 100644 --- a/ergoCubSN000/hardware/motorControl/left_leg-eb9-j4_5-mc.xml +++ b/ergoCubSN000/hardware/motorControl/left_leg-eb9-j4_5-mc.xml @@ -116,18 +116,18 @@ current metric_units machine_units - -1000 -1000 - 0 0 - -500 -1000 - 2500 2500 - 200 200 + -0 -50 + 0 0 + -0 0 + 2500 2500 + 200 200 0 0 0 0 0 0 1 1 - -0.0009 -0.0003 + -0.0009 -0.0003 0 0 - -128.81 -227.739 + -128.81 -160 diff --git a/ergoCubSN000/hardware/motorControl/right_leg-eb6-j0_3-mc.xml b/ergoCubSN000/hardware/motorControl/right_leg-eb6-j0_3-mc.xml index d3dc685e7a..73d8678881 100644 --- a/ergoCubSN000/hardware/motorControl/right_leg-eb6-j0_3-mc.xml +++ b/ergoCubSN000/hardware/motorControl/right_leg-eb6-j0_3-mc.xml @@ -117,18 +117,18 @@ current metric_units machine_units - 0.0 -0.0 0.0 0.0 + 100 -150 0.0 350 0 0 0 0 - 0 -0 0 0 + 10 -25 0 100 2500 2500 2500 2500 200 200 200 200 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 - 0.0 -0.0 0.0 0.0 + 0.0001 -0.0001 0.0005 0.0003 0 0 0 0 - 50 -50 50 50 + 40 -50 150 110 diff --git a/ergoCubSN000/hardware/motorControl/right_leg-eb7-j4_5-mc.xml b/ergoCubSN000/hardware/motorControl/right_leg-eb7-j4_5-mc.xml index 6be2ea8ce5..763263dfd3 100644 --- a/ergoCubSN000/hardware/motorControl/right_leg-eb7-j4_5-mc.xml +++ b/ergoCubSN000/hardware/motorControl/right_leg-eb7-j4_5-mc.xml @@ -116,18 +116,18 @@ current metric_units machine_units - 1000 1000 - 0 0 - 500 1000 - 2500 2500 - 200 200 - 0 0 - 0 0 - 0 0 - 1 1 - 0.0009 0.0003 - 0 0 - 128.81 227.739 + 0 50 + 0 0 + 0 0 + 2500 2500 + 200 200 + 0 0 + 0 0 + 0 0 + 1 1 + 0.0009 0.0003 + 0 0 + 128.81 160 From 83981bb857c5f166c7b1a701a00b226640ba77e5 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Fri, 24 Feb 2023 14:48:17 +0100 Subject: [PATCH 2/8] [ergoCubSN000] Enable torque control via current on arms --- .../motorControl/left_arm-eb2-j0_1-mc.xml | 33 ++++++++++++++++++- .../motorControl/left_arm-eb4-j2_3-mc.xml | 33 ++++++++++++++++++- .../motorControl/right_arm-eb1-j0_1-mc.xml | 33 ++++++++++++++++++- .../motorControl/right_arm-eb3-j2_3-mc.xml | 33 ++++++++++++++++++- 4 files changed, 128 insertions(+), 4 deletions(-) diff --git a/ergoCubSN000/hardware/motorControl/left_arm-eb2-j0_1-mc.xml b/ergoCubSN000/hardware/motorControl/left_arm-eb2-j0_1-mc.xml index 72ca590815..3f16974819 100644 --- a/ergoCubSN000/hardware/motorControl/left_arm-eb2-j0_1-mc.xml +++ b/ergoCubSN000/hardware/motorControl/left_arm-eb2-j0_1-mc.xml @@ -33,7 +33,7 @@ POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT - TRQ_PID_DEFAULT TRQ_PID_DEFAULT + TRQ_PID_OUTPUT_CURR TRQ_PID_OUTPUT_CURR 2FOC_CUR_CONTROL 2FOC_CUR_CONTROL 2FOC_VEL_CONTROL 2FOC_VEL_CONTROL @@ -112,12 +112,43 @@ + + torque + current + metric_units + machine_units + 150 100 + 0 0 + 0 0 + 2500 2500 + 200 200 + 0 0 + 0 0 + 0 0 + 1 1 + 0.0001 0.0001 + 0 0 + 250 200 + 0.0049 0.0049 + + + 1 1 + 0 0 + 0 0 + 0 0 + 0.0001 0.0001 + 0.01 0.01 + 10 10 + 0.001 0.001 + 0.000099 0.000099 + + diff --git a/ergoCubSN000/hardware/motorControl/left_arm-eb4-j2_3-mc.xml b/ergoCubSN000/hardware/motorControl/left_arm-eb4-j2_3-mc.xml index c23c29335d..f44dc56212 100644 --- a/ergoCubSN000/hardware/motorControl/left_arm-eb4-j2_3-mc.xml +++ b/ergoCubSN000/hardware/motorControl/left_arm-eb4-j2_3-mc.xml @@ -33,7 +33,7 @@ POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT - TRQ_PID_DEFAULT TRQ_PID_DEFAULT + TRQ_PID_OUTPUT_CURR TRQ_PID_OUTPUT_CURR 2FOC_CUR_CONTROL 2FOC_CUR_CONTROL 2FOC_VEL_CONTROL 2FOC_VEL_CONTROL @@ -112,12 +112,43 @@ + + torque + current + metric_units + machine_units + 0 -200 + 0 0 + 0 0 + 2500 2500 + 200 200 + 0 0 + 0 0 + 0 0 + 1 1 + 0.0001 -0.0002 + 0 0 + 50 -300 + 0.0049 0.0049 + + + 1 1 + 0 0 + 0 0 + 0 0 + 0.0001 0.0001 + 0.01 0.01 + 10 10 + 0.001 0.001 + 0.000099 0.000099 + + diff --git a/ergoCubSN000/hardware/motorControl/right_arm-eb1-j0_1-mc.xml b/ergoCubSN000/hardware/motorControl/right_arm-eb1-j0_1-mc.xml index 6f6b53e96b..e84f207d7b 100644 --- a/ergoCubSN000/hardware/motorControl/right_arm-eb1-j0_1-mc.xml +++ b/ergoCubSN000/hardware/motorControl/right_arm-eb1-j0_1-mc.xml @@ -34,7 +34,7 @@ POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT - TRQ_PID_DEFAULT TRQ_PID_DEFAULT + TRQ_PID_OUTPUT_CURR TRQ_PID_OUTPUT_CURR 2FOC_CUR_CONTROL 2FOC_CUR_CONTROL 2FOC_VEL_CONTROL 2FOC_VEL_CONTROL @@ -114,12 +114,43 @@ + + torque + current + metric_units + machine_units + -150 -100 + 0 0 + 0 0 + 2500 2500 + 200 200 + 0 0 + 0 0 + 0 0 + 1 1 + -0.0001 -0.0001 + 0 0 + -250 -200 + 0.0049 0.0049 + + + 1 1 + 0 0 + 0 0 + 0 0 + 0.0001 0.0001 + 0.01 0.01 + 10 10 + 0.001 0.001 + 0.000099 0.000099 + + diff --git a/ergoCubSN000/hardware/motorControl/right_arm-eb3-j2_3-mc.xml b/ergoCubSN000/hardware/motorControl/right_arm-eb3-j2_3-mc.xml index 6a1d37cf98..2b511d7bac 100644 --- a/ergoCubSN000/hardware/motorControl/right_arm-eb3-j2_3-mc.xml +++ b/ergoCubSN000/hardware/motorControl/right_arm-eb3-j2_3-mc.xml @@ -33,7 +33,7 @@ POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT POS_PID_DEFAULT - TRQ_PID_DEFAULT TRQ_PID_DEFAULT + TRQ_PID_OUTPUT_CURR TRQ_PID_OUTPUT_CURR 2FOC_CUR_CONTROL 2FOC_CUR_CONTROL 2FOC_VEL_CONTROL 2FOC_VEL_CONTROL @@ -114,12 +114,43 @@ + + torque + current + metric_units + machine_units + 0 200 + 0 0 + 0 0 + 2500 2500 + 200 200 + 0 0 + 0 0 + 0 0 + 1 1 + -0.0001 0.0002 + 0 0 + -50 300 + 0.0049 0.0049 + + + 1 1 + 0 0 + 0 0 + 0 0 + 0.0001 0.0001 + 0.01 0.01 + 10 10 + 0.001 0.001 + 0.000099 0.000099 + + From d63c343b45542819f91ecf47ce4f355e241e28de Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Wed, 1 Mar 2023 11:48:26 +0100 Subject: [PATCH 3/8] [ergoCubSN000] Update the cluster config file --- .../contexts/yarpmanager/cluster-config.xml | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/ergoCubSN000/extra/contexts/yarpmanager/cluster-config.xml b/ergoCubSN000/extra/contexts/yarpmanager/cluster-config.xml index 40d6e6265a..186363f61b 100644 --- a/ergoCubSN000/extra/contexts/yarpmanager/cluster-config.xml +++ b/ergoCubSN000/extra/contexts/yarpmanager/cluster-config.xml @@ -1,17 +1,15 @@ - - - - - - -icub-console -icub-console-gui -pi-ifeel -icub-cuda -icub-head -icub-virtualizer -icub29 + + + + + + + ergocub-laptop + ergocub-torso + ergocub-head + icub-console-gui + icub-virtualizer From 2bb0a96e121ff16ddb2a2e44262382eebb2d4876 Mon Sep 17 00:00:00 2001 From: mebbaid Date: Thu, 2 Mar 2023 15:11:46 +0000 Subject: [PATCH 4/8] updated current limits and head PID gains --- ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml | 6 +++--- ergoCubSN000/hardware/motorControl/torso-eb5-j0_2-mc.xml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml b/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml index 7f4acc0d5e..7f4edb9973 100644 --- a/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml +++ b/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml @@ -47,9 +47,9 @@ pwm metric_units machine_units - -512 +535 - -17 +14 - -1621 +1670 + -200 +200 + 0 0 + -20 +20 3360 3360 3360 3360 0 0 diff --git a/ergoCubSN000/hardware/motorControl/torso-eb5-j0_2-mc.xml b/ergoCubSN000/hardware/motorControl/torso-eb5-j0_2-mc.xml index 9aa976cac6..d9c4e6683f 100644 --- a/ergoCubSN000/hardware/motorControl/torso-eb5-j0_2-mc.xml +++ b/ergoCubSN000/hardware/motorControl/torso-eb5-j0_2-mc.xml @@ -16,10 +16,10 @@ 23 45 43 -23 -18 -43 120 120 120 - 5000 8000 5000 - 10000 16000 10000 - 15000 20000 15000 - 10000 10000 10000 + 5000 15000 5000 + 10000 20000 10000 + 15000 30000 15000 + 10000 16000 10000 From 72579481f145336d79cb80dd13a154bd059dcfa7 Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Mon, 6 Mar 2023 16:26:22 +0000 Subject: [PATCH 5/8] [ergoCubSN000] Decrease the PID gains of the head --- ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml b/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml index 7f4edb9973..1cb1d83ae3 100644 --- a/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml +++ b/ergoCubSN000/hardware/motorControl/head-eb20-j0_1-mc.xml @@ -47,9 +47,9 @@ pwm metric_units machine_units - -200 +200 + -150 +150 0 0 - -20 +20 + -15 +15 3360 3360 3360 3360 0 0 From affadb08e1399f7a4431ef7d71213ea4c932687e Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Mon, 6 Mar 2023 16:26:47 +0000 Subject: [PATCH 6/8] [ergoCubSN000] Decrease the PID of the wrists --- .../hardware/motorControl/left_arm-eb31-j4_6-mc.xml | 12 ++++++------ .../hardware/motorControl/right_arm-eb30-j4_6-mc.xml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ergoCubSN000/hardware/motorControl/left_arm-eb31-j4_6-mc.xml b/ergoCubSN000/hardware/motorControl/left_arm-eb31-j4_6-mc.xml index 7c60b84210..7382b37177 100644 --- a/ergoCubSN000/hardware/motorControl/left_arm-eb31-j4_6-mc.xml +++ b/ergoCubSN000/hardware/motorControl/left_arm-eb31-j4_6-mc.xml @@ -15,9 +15,9 @@ 90 50 30 -90 -60 -30 90 90 90 - 1000 1000 1000 - 1500 1500 1500 - 2000 2000 2000 + 300 300 300 + 360 360 360 + 450 450 450 16000 16000 16000 @@ -47,9 +47,9 @@ current metric_units machine_units - -67 -67 -67 - -11 -11 -11 - -294 -294 -294 + -50 -50 -50 + -8 -8 -8 + -220 -220 -220 500 500 500 200 200 200 0 0 0 diff --git a/ergoCubSN000/hardware/motorControl/right_arm-eb30-j4_6-mc.xml b/ergoCubSN000/hardware/motorControl/right_arm-eb30-j4_6-mc.xml index 16dfdb0a36..e7ca2dcc53 100644 --- a/ergoCubSN000/hardware/motorControl/right_arm-eb30-j4_6-mc.xml +++ b/ergoCubSN000/hardware/motorControl/right_arm-eb30-j4_6-mc.xml @@ -15,9 +15,9 @@ 90 50 30 -90 -60 -30 90 90 90 - 1000 1000 1000 - 1500 1500 1500 - 2000 2000 2000 + 300 300 300 + 300 300 300 + 360 360 360 16000 16000 16000 @@ -47,9 +47,9 @@ current metric_units machine_units - -67 -67 -67 - -11 -11 -11 - -294 -294 -294 + -50 -50 -50 + -8 -8 -8 + -220 -220 -220 500 500 500 200 200 200 0 0 0 From f555aad3724b974da751faa6d675f55436847e18 Mon Sep 17 00:00:00 2001 From: Giulio Romualdi Date: Mon, 6 Mar 2023 16:27:17 +0000 Subject: [PATCH 7/8] [ergoCubSN000] Update the calibrators of the wrists --- ergoCubSN000/calibrators/left_arm-calib.xml | 2 +- ergoCubSN000/calibrators/right_arm-calib.xml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ergoCubSN000/calibrators/left_arm-calib.xml b/ergoCubSN000/calibrators/left_arm-calib.xml index 4b3f5185ab..03624bf540 100644 --- a/ergoCubSN000/calibrators/left_arm-calib.xml +++ b/ergoCubSN000/calibrators/left_arm-calib.xml @@ -30,7 +30,7 @@ - (4 5 6) (2) (0) (1) (3) (7 8 9 10) (11 12) + (4 5 6) (3) (2) (0) (1) (7 8 9 10) (11 12) left_arm-mc_remapper diff --git a/ergoCubSN000/calibrators/right_arm-calib.xml b/ergoCubSN000/calibrators/right_arm-calib.xml index b08db65074..4e97a381d4 100644 --- a/ergoCubSN000/calibrators/right_arm-calib.xml +++ b/ergoCubSN000/calibrators/right_arm-calib.xml @@ -17,7 +17,7 @@ 10 10 10 10 12 12 12 12 12 12 12 12 12 - -4000 3000 3000 -4000 6109 28993 36030 0 0 0 0 0 0 + -4000 3000 3000 -4000 19023 28993 36030 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 @@ -30,7 +30,8 @@ 2 2 2 2 2 2 2 90 90 90 90 90 90 - (4 5 6) (2) (0) (1) (3) (7 8 9 10) (11 12) + + (3) (2) (0) (1) (7 8) (11 12) right_arm-mc_remapper From e2aeec4d94c4fa8f732880c32abe20a2cdd8c7e6 Mon Sep 17 00:00:00 2001 From: ergocub Date: Mon, 6 Mar 2023 17:58:34 +0100 Subject: [PATCH 8/8] Make sure that: The realsense can be launched wihtout the lidar The relsense streams using the right port names --- ergoCubSN000/realsense2.xml | 10 ++++++ ergoCubSN000/sensors/realsense.xml | 56 +++++++++++++++--------------- 2 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 ergoCubSN000/realsense2.xml diff --git a/ergoCubSN000/realsense2.xml b/ergoCubSN000/realsense2.xml new file mode 100644 index 0000000000..6c7fc82c9f --- /dev/null +++ b/ergoCubSN000/realsense2.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/ergoCubSN000/sensors/realsense.xml b/ergoCubSN000/sensors/realsense.xml index 18fd952ada..2acc0c6b9c 100644 --- a/ergoCubSN000/sensors/realsense.xml +++ b/ergoCubSN000/sensors/realsense.xml @@ -1,35 +1,35 @@ - + - - - (640 480) - (640 480) - 30 - true - RGB - - - (0.2 10.0) - - - 2 - - false - + + + (640 480) + (640 480) + 30 + true + RGB + + + (0.2 10.0) + + + 2 + + false + - - 0.03 - /ergocub/depthCamera - - - realsenseD450 - - - - + + 0.03 + /depthCamera + + + realsenseD450 + + + + - +