Datasets:

Modalities:
Text
Video
Size:
< 1K
Libraries:
Datasets
License:
inessorrentino commited on
Commit
5e24d76
·
verified ·
1 Parent(s): e0e12ca

Upload 13 files

Browse files
.gitattributes CHANGED
@@ -1369,3 +1369,13 @@ TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_07_30.mat filte
1369
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_08_26.mat filter=lfs diff=lfs merge=lfs -text
1370
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_09_53.mat filter=lfs diff=lfs merge=lfs -text
1371
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_10_53.mat filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
1369
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_08_26.mat filter=lfs diff=lfs merge=lfs -text
1370
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_09_53.mat filter=lfs diff=lfs merge=lfs -text
1371
  TSID_pole/2024_10_16_tsid_pole/robot_logger_device_2024_10_16_13_10_53.mat filter=lfs diff=lfs merge=lfs -text
1372
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_21_39.mat filter=lfs diff=lfs merge=lfs -text
1373
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_28_37.mat filter=lfs diff=lfs merge=lfs -text
1374
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_40_25.mat filter=lfs diff=lfs merge=lfs -text
1375
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_07_16.mat filter=lfs diff=lfs merge=lfs -text
1376
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_18_48.mat filter=lfs diff=lfs merge=lfs -text
1377
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_32_13.mat filter=lfs diff=lfs merge=lfs -text
1378
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_10_27_43.mat filter=lfs diff=lfs merge=lfs -text
1379
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_03_18.mat filter=lfs diff=lfs merge=lfs -text
1380
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_09_38.mat filter=lfs diff=lfs merge=lfs -text
1381
+ tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_24_14.mat filter=lfs diff=lfs merge=lfs -text
tsid_balancing_torque_control/2024_10_17_tsid_balancing/plot_data.asv ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ close all;
2
+ clear;
3
+
4
+ dataset = 'robot_logger_device_2024_10_17_13_32_13.mat';
5
+
6
+ load(dataset);
7
+
8
+ jnt_list = robot_logger_device.tsid_fixed_cartesian.joints_state.torques.tsid.elements_names;
9
+
10
+ time_des = squeeze(robot_logger_device.balancing_tsid.desired_torque.timestamps)';
11
+ time_meas = squeeze(robot_logger_device.joints_state. ...
12
+ torques.timestamps)';
13
+ trq_meas = squeeze(robot_logger_device.joints_state.torques.data)';
14
+ [~, start_idx] = min(abs(time_meas - time_des(1)));
15
+ time_meas = time_meas(start_idx:end);
16
+ trq_meas = trq_meas(start_idx:end, :);
17
+ time_end = min(time_meas(end), time_des(end));
18
+ time_meas = time_meas(time_meas <= time_end);
19
+ time_des = time_des(time_des <= time_end);
20
+ trq_meas = trq_meas(1:length(time_meas), :);
21
+ time_start = time_meas(1);
22
+ time_meas = time_meas - time_start;
23
+ time_des = time_des - time_start;
24
+ time_des = time_des - time_des(1);
25
+
26
+ trq_des = squeeze(robot_logger_device.balancing_tsid.desired_torque.timestamps.data)';
27
+ trq_des = trq_des(:, end-11:end);
28
+ trq_meas = trq_meas(:, end-11:end);
29
+
30
+ com_des = squeeze(robot_logger_device.balancing_tsid.com_reference.data)';
31
+ com_meas = squeeze(robot_logger_device.balancing_tsid.com_from_measured)';
32
+
33
+ % Plot trq_meas vs trq_des in 6 subplots in 1 figure and the other 6 in a new figure
34
+ figure;
35
+ for i=1:6
36
+ subplot(3,2,i);
37
+ plot(time_meas, trq_meas(:, i), 'LineWidth', 2);
38
+ hold on;
39
+ plot(time_des, trq_des(:, i), 'LineWidth', 2);
40
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
41
+ legend('Measured', 'Commanded');
42
+ xlabel('Time [s]', 'FontSize', 12);
43
+ ylabel('Torque [Nm]', 'FontSize', 12);
44
+ % Disable latex interpreter for titles
45
+ set(get(gca, 'title'), 'interpreter', 'none');
46
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
47
+ end
48
+
49
+ figure;
50
+ for i=7:12
51
+ subplot(3,2,i-6);
52
+ plot(time_meas, trq_meas(:, i), 'LineWidth', 2);
53
+ hold on;
54
+ plot(time_des, trq_des(:, i), 'LineWidth', 2);
55
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
56
+ legend('Measured', 'Commanded');
57
+ xlabel('Time [s]', 'FontSize', 12);
58
+ ylabel('Torque [Nm]', 'FontSize', 12);
59
+ % Disable latex interpreter for titles
60
+ set(get(gca, 'title'), 'interpreter', 'none');
61
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
62
+ end
63
+
64
+
65
+ % Plot tracking error of torques
66
+ % Align data to the same time vector time_des
67
+ trq_meas = interp1(time_meas, trq_meas, time_des);
68
+
69
+ trq_err = trq_meas - trq_des;
70
+ figure;
71
+ for i=1:6
72
+ subplot(3,2,i);
73
+ plot(time_des, trq_err(:, i), 'LineWidth', 2);
74
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
75
+ xlabel('Time [s]', 'FontSize', 12);
76
+ ylabel('Error [Nm]', 'FontSize', 12);
77
+ set(get(gca, 'title'), 'interpreter', 'none');
78
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
79
+ end
80
+
81
+ figure;
82
+ for i=7:12
83
+ subplot(3,2,i-6);
84
+ plot(time_des, trq_err(:, i), 'LineWidth', 2);
85
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
86
+ xlabel('Time [s]', 'FontSize', 12);
87
+ ylabel('Error [Nm]', 'FontSize', 12);
88
+ set(get(gca, 'title'), 'interpreter', 'none');
89
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
90
+ end
91
+
92
+
93
+ % Plot com_des vs com_meas in 6 subplots in 1 figure and the other 6 in a new figure
94
+ labels = ['CoM_x', 'CoM_y', 'CoM_z'];
95
+ figure;
96
+ for i=1:3
97
+ subplot(3,1,i);
98
+ plot(time_des, com_des(:, i), 'LineWidth', 2);
99
+ hold on;
100
+ plot(time_meas, com_meas(:, i), 'LineWidth', 2);
101
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
102
+ legend('Desired', 'Measured');
103
+ xlabel('Time [s]', 'FontSize', 12);
104
+ ylabel(labels[, 'FontSize', 12);
105
+ % Disable latex interpreter for titles
106
+ set(get(gca, 'title'), 'interpreter', 'none');
107
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
108
+ end
tsid_balancing_torque_control/2024_10_17_tsid_balancing/plot_data.m ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ close all;
2
+ clear;
3
+
4
+ dataset = 'robot_logger_device_2024_10_17_13_32_13.mat';
5
+
6
+ load(dataset);
7
+
8
+ jnt_list = robot_logger_device.balancing_tsid.desired_torque.elements_names;
9
+
10
+ time_des = squeeze(robot_logger_device.balancing_tsid.desired_torque.timestamps)';
11
+ time_meas = squeeze(robot_logger_device.joints_state. ...
12
+ torques.timestamps)';
13
+ trq_meas = squeeze(robot_logger_device.joints_state.torques.data)';
14
+ [~, start_idx] = min(abs(time_meas - time_des(1)));
15
+ time_meas = time_meas(start_idx:end);
16
+ trq_meas = trq_meas(start_idx:end, :);
17
+ time_end = min(time_meas(end), time_des(end));
18
+ time_meas = time_meas(time_meas <= time_end);
19
+ time_des = time_des(time_des <= time_end);
20
+ trq_meas = trq_meas(1:length(time_meas), :);
21
+ time_start = time_meas(1);
22
+ time_meas = time_meas - time_start;
23
+ time_des = time_des - time_start;
24
+ time_des = time_des - time_des(1);
25
+
26
+ trq_des = squeeze(robot_logger_device.balancing_tsid.desired_torque.data)';
27
+ trq_des = trq_des(:, end-11:end);
28
+ trq_meas = trq_meas(:, end-11:end);
29
+
30
+ com_des = squeeze(robot_logger_device.balancing_tsid.com_reference.data)';
31
+ com_meas = squeeze(robot_logger_device.balancing_tsid.com_from_measured.data)';
32
+
33
+ % Plot trq_meas vs trq_des in 6 subplots in 1 figure and the other 6 in a new figure
34
+ figure;
35
+ for i=1:6
36
+ subplot(3,2,i);
37
+ plot(time_meas, trq_meas(:, i), 'LineWidth', 2);
38
+ hold on;
39
+ plot(time_des, trq_des(:, i), 'LineWidth', 2);
40
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
41
+ legend('Desired', 'Measured');
42
+ xlabel('Time [s]', 'FontSize', 12);
43
+ ylabel('Torque [Nm]', 'FontSize', 12);
44
+ % Disable latex interpreter for titles
45
+ set(get(gca, 'title'), 'interpreter', 'none');
46
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
47
+ end
48
+
49
+ figure;
50
+ for i=7:12
51
+ subplot(3,2,i-6);
52
+ plot(time_meas, trq_meas(:, i), 'LineWidth', 2);
53
+ hold on;
54
+ plot(time_des, trq_des(:, i), 'LineWidth', 2);
55
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
56
+ legend('Desired', 'Measured');
57
+ xlabel('Time [s]', 'FontSize', 12);
58
+ ylabel('Torque [Nm]', 'FontSize', 12);
59
+ % Disable latex interpreter for titles
60
+ set(get(gca, 'title'), 'interpreter', 'none');
61
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
62
+ end
63
+
64
+
65
+ % Plot tracking error of torques
66
+ % Align data to the same time vector time_des
67
+ trq_meas = interp1(time_meas, trq_meas, time_des);
68
+
69
+ trq_err = trq_meas - trq_des;
70
+ figure;
71
+ for i=1:6
72
+ subplot(3,2,i);
73
+ plot(time_des, trq_err(:, i), 'LineWidth', 2);
74
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
75
+ xlabel('Time [s]', 'FontSize', 12);
76
+ ylabel('Error [Nm]', 'FontSize', 12);
77
+ set(get(gca, 'title'), 'interpreter', 'none');
78
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
79
+ end
80
+
81
+ figure;
82
+ for i=7:12
83
+ subplot(3,2,i-6);
84
+ plot(time_des, trq_err(:, i), 'LineWidth', 2);
85
+ title(['Joint ', jnt_list(i)], 'FontSize', 14);
86
+ xlabel('Time [s]', 'FontSize', 12);
87
+ ylabel('Error [Nm]', 'FontSize', 12);
88
+ set(get(gca, 'title'), 'interpreter', 'none');
89
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
90
+ end
91
+
92
+
93
+ % Plot com_des vs com_meas in 6 subplots in 1 figure and the other 6 in a new figure
94
+ labels = {'CoM_x', 'CoM_y', 'CoM_z'};
95
+ figure;
96
+ for i=1:3
97
+ subplot(3,1,i);
98
+ plot(time_des, com_des(:, i), 'LineWidth', 2);
99
+ hold on;
100
+ plot(time_des, com_meas(:, i), 'LineWidth', 2);
101
+ legend('Desired', 'Measured');
102
+ xlabel('Time [s]', 'FontSize', 12);
103
+ ylabel(labels{i}, 'FontSize', 12);
104
+ % Disable latex interpreter for titles
105
+ set(get(gca, 'title'), 'interpreter', 'none');
106
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
107
+ ylim([max(com_des(:, i))-0.12, max(com_des(:, i))+0.12])
108
+ end
109
+
110
+ labels = {'Error CoM_x', 'Error CoM_y', 'Error CoM_z'};
111
+ figure;
112
+ for i=1:3
113
+ subplot(3,1,i);
114
+ plot(time_des, com_des(:, i) - com_meas(:, i), 'LineWidth', 2);
115
+ xlabel('Time [s]', 'FontSize', 12);
116
+ ylabel(labels{i}, 'FontSize', 12);
117
+ % Disable latex interpreter for titles
118
+ set(get(gca, 'title'), 'interpreter', 'none');
119
+ set(gca, 'LineWidth', 1.5, 'FontSize', 12);
120
+ end
tsid_balancing_torque_control/2024_10_17_tsid_balancing/readme.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ - robot_logger_device_2024_10_17_13_18_48
2
+
3
+ kp 0.5 ankle joints e hip yaw
4
+ kp 0.2 hip pitch e roll
5
+
6
+ kd 0 per joints regularization
7
+
8
+ ci sono diversi giunti che fanno quello che vogliono
9
+
10
+
11
+ - robot_logger_device_2024_10_17_13_32_13
12
+
13
+ kp committati in robots-configuration
14
+ max torque friction hip yaw abbassata a 8 Nm
15
+
16
+ guarda i plot dei tracking
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_21_39.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59914955ad5c60c10f3cec145cf2b65f373eea49ef27a844547498091d4b86ba
3
+ size 614766582
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_28_37.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66aaee9d629b0674ea6817f74fca9e2d8034baa8112adb5bd0d6bd9aec6c7529
3
+ size 49990920
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_12_40_25.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9094c2e024c65b395adedc582840fd89ba871502e5cda99bf750d846599eb19
3
+ size 325415486
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_07_16.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52bab982050f9fee3e8288378806c1ddcb13bbc104454236b47721c7f56d6117
3
+ size 461448158
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_18_48.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:530626f21c6c43cd9da1c7d43a04c0c6a6d83d7900a7430adbb984bc96653139
3
+ size 435565598
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_17_13_32_13.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:426fd74fd9e72f3c6468af47e50234559abb64b135e34e8cdd9921d4884e89d1
3
+ size 630661534
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_10_27_43.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab1c919e63bec51359e0f784898fab1489c9a687650e41ea5d62e944446ae44c
3
+ size 84541358
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_03_18.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ddeb8ac99e7bf9642cf3f78a052c568a53dd1a656dcb9cc2b34e3edb5cb6949
3
+ size 417312846
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_09_38.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbfab620f7f41ff9ee5afdef8dc5655d084311a5017d823b5dbea64071f5ca2a
3
+ size 264080982
tsid_balancing_torque_control/2024_10_17_tsid_balancing/robot_logger_device_2024_10_18_11_24_14.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28c96a74b6f2c30e343af3094762d331a0ec520ea3f38d89b101e8228053f818
3
+ size 209522110