Jerrremy commited on
Commit
f99e13f
·
verified ·
1 Parent(s): d661052

Upload realman data part 001

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. realman/README.md +49 -0
  2. realman/plot_from_hdf5.py +224 -0
  3. realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-04-58.h5 +3 -0
  4. realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-05-25.h5 +3 -0
  5. realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-05-51.h5 +3 -0
  6. realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-23-38.h5 +3 -0
  7. realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-24-02.h5 +3 -0
  8. realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-24-27.h5 +3 -0
  9. realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-24-51.h5 +3 -0
  10. realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-25-15.h5 +3 -0
  11. realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-25-40.h5 +3 -0
  12. realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-26-12.h5 +3 -0
  13. realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-26-43.h5 +3 -0
  14. realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-27-14.h5 +3 -0
  15. realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-27-43.h5 +3 -0
  16. realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-28-12.h5 +3 -0
  17. realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-28-41.h5 +3 -0
  18. realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-29-07.h5 +3 -0
  19. realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-29-34.h5 +3 -0
  20. realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-30-01.h5 +3 -0
  21. realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-31-13.h5 +3 -0
  22. realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-32-23.h5 +3 -0
  23. realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-33-33.h5 +3 -0
  24. realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-34-13.h5 +3 -0
  25. realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-34-53.h5 +3 -0
  26. realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-35-33.h5 +3 -0
  27. realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-36-26.h5 +3 -0
  28. realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-37-18.h5 +3 -0
  29. realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-38-11.h5 +3 -0
  30. realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-38-45.h5 +3 -0
  31. realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-39-19.h5 +3 -0
  32. realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-39-52.h5 +3 -0
  33. realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-40-37.h5 +3 -0
  34. realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-41-21.h5 +3 -0
  35. realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-42-06.h5 +3 -0
  36. realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-06-30.h5 +3 -0
  37. realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-07-09.h5 +3 -0
  38. realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-07-48.h5 +3 -0
  39. realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-42-27.h5 +3 -0
  40. realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-42-51.h5 +3 -0
  41. realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-43-15.h5 +3 -0
  42. realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-43-42.h5 +3 -0
  43. realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-44-09.h5 +3 -0
  44. realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-44-36.h5 +3 -0
  45. realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-45-10.h5 +3 -0
  46. realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-45-44.h5 +3 -0
  47. realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-46-18.h5 +3 -0
  48. realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-46-44.h5 +3 -0
  49. realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-47-10.h5 +3 -0
  50. realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-47-36.h5 +3 -0
realman/README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Realman WR75S Robot Data Plotting
2
+
3
+ This project contains data collected from the Realman WR75S robot. The data is organized for four robots (`robot1`, `robot2`, `robot3`, `robot4`), and each robot directory contains four datasets with different counterweights (`robotx_ykg`, where `x` is 1-4 for the robot number, and `y` is 0-3 for the counterweight type).
4
+
5
+ ## Directory Structure
6
+
7
+ ```
8
+ .
9
+ ├── plot_from_hdf5.py
10
+ ├── robot1/
11
+ │ ├── robot1_0kg/
12
+ │ ├── robot1_1kg/
13
+ │ ├── robot1_2kg/
14
+ │ └── robot1_3kg/
15
+ ├── robot2/
16
+ │ └── ... (same as robot1)
17
+ ├── robot3/
18
+ │ └── ... (same as robot1)
19
+ ├── robot4/
20
+ │ └── ... (same as robot1)
21
+ ```
22
+
23
+ ## Data Description
24
+
25
+ - Each subdirectory (e.g., `robot1_0kg`) contains data collected from the corresponding robot with a specific counterweight.
26
+ - The data is stored in HDF5 format and includes joint angles, velocities, currents, and temperatures.
27
+
28
+ ## Script Usage
29
+
30
+ The script `plot_from_hdf5.py` is used to visualize the collected data:
31
+
32
+ - It reads HDF5 files from the specified data directory.
33
+ - It generates plots for joint angles, velocities, currents, and temperatures.
34
+ - All plots are saved in a new directory named `plot_data` under the script's location.
35
+
36
+ ### How to Run
37
+
38
+ 1. Place `plot_from_hdf5.py` in the same directory as the `robot1`, `robot2`, `robot3`, and `robot4` folders.
39
+ 2. Make sure the data files are in the correct subdirectories.
40
+ 3. Run the script using Python:
41
+ ```
42
+ python plot_from_hdf5.py
43
+ ```
44
+ 4. The script will process all data files in the selected subdirectory and save the plots.
45
+
46
+ ## Notes
47
+
48
+ - This project is for visualizing and analyzing joint data from Realman WR75S robots under different counterweight conditions.
49
+ - The script supports batch plotting for all data files in a given subdirectory.
realman/plot_from_hdf5.py ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import h5py
2
+ import numpy as np
3
+ import matplotlib.pyplot as plt
4
+ import os
5
+ from datetime import datetime
6
+
7
+ PLOT_SINGLE_JOINT = False # Whether to plot each joint separately
8
+
9
+ def smooth_curve(data, window_size=11):
10
+ """Simple moving average filter"""
11
+ if window_size < 2:
12
+ return data
13
+ window = np.ones(int(window_size))/float(window_size)
14
+ # 'valid' mode will shorten the length, use 'edge' padding to keep the length unchanged
15
+ return np.convolve(data, window, mode='same')
16
+
17
+ def calc_numeric_velocity(time_list, position_list):
18
+ dt = np.diff(time_list)
19
+ dtheta = np.diff(position_list)
20
+ dt[dt == 0] = 0.005
21
+ vel = dtheta / dt
22
+ t_mid = (time_list[:-1] + time_list[1:]) / 2
23
+ return t_mid, vel
24
+
25
+ def plot_data(filename):
26
+ # 1. Read data
27
+ with h5py.File(f'{filename}', 'r') as f:
28
+ command_time_list = f['command_time_list'][:]
29
+ command_val_list = f['command_val_list'][:]
30
+ motion_name = f['motion_name'][()].decode('utf-8') # Get motion name
31
+ current_time = f['current_time'][()].decode('utf-8') # Get current time string
32
+
33
+ joint_time_list_left = f['robot1/joint_time_list'][:]
34
+ joint_val_list_left = f['robot1/joint_angle_list'][:] # shape: [N, 7]
35
+ joint_time_list_right = f['robot2/joint_time_list'][:]
36
+ joint_val_list_right = f['robot2/joint_angle_list'][:] # shape: [N, 7]
37
+
38
+ joint_velocity_left = f['robot1/joint_velocity_list'][:]
39
+ joint_current_left = f['robot1/joint_current_list'][:]
40
+ joint_temperature_left = f['robot1/joint_temperature_list'][:]
41
+ joint_velocity_right = f['robot2/joint_velocity_list'][:]
42
+ joint_current_right = f['robot2/joint_current_list'][:]
43
+ joint_temperature_right = f['robot2/joint_temperature_list'][:]
44
+
45
+ print(f"Loaded data: {len(command_time_list)} command points")
46
+ print(f"LeftArm joint data shape: {joint_val_list_left.shape}")
47
+ print(f"RightArm joint data shape: {joint_val_list_right.shape}")
48
+ print(f"LeftArm joint time points: {len(joint_time_list_left)}")
49
+ print(f"RightArm joint time points: {len(joint_time_list_right)}")
50
+
51
+ # 2. Generate save directory
52
+ parent_dir = os.path.abspath(os.path.dirname(__file__))
53
+ plot_data_dir = os.path.join(parent_dir, 'plot_data', motion_name + current_time)
54
+ os.makedirs(plot_data_dir, exist_ok=True)
55
+ print(f"saving images in: {plot_data_dir}")
56
+
57
+ if PLOT_SINGLE_JOINT:
58
+ # 3. Plot 14 images separately
59
+ for i in range(7):
60
+ # leftarm
61
+ plt.figure(figsize=(10, 5))
62
+ plt.plot(command_time_list, command_val_list[:, i], label='Command (LeftArm, rad)', color='b', linestyle='-')
63
+ plt.plot(joint_time_list_left, joint_val_list_left[:, i], label=f'LeftArm Joint {i+1} (rad)', color='r', linestyle='--')
64
+ plt.xlabel('Elapsed Time (s)')
65
+ plt.ylabel('Angle (rad)')
66
+ plt.title(f'Command vs LeftArm Joint {i+1} (rad)')
67
+ plt.legend(loc='best', fontsize=10)
68
+ plt.grid(True)
69
+ plt.tight_layout()
70
+ save_path = os.path.join(plot_data_dir, f'leftarm_joint_{i+1}.png')
71
+ plt.savefig(save_path)
72
+ plt.close()
73
+ print(f"image saved: {save_path}")
74
+
75
+ # rightarm
76
+ plt.figure(figsize=(10, 5))
77
+ plt.plot(command_time_list, command_val_list[:, i+7], label='Command (RightArm, rad)', color='b', linestyle='-')
78
+ plt.plot(joint_time_list_right, joint_val_list_right[:, i], label=f'RightArm Joint {i+1} (rad)', color='g', linestyle='--')
79
+ plt.xlabel('Elapsed Time (s)')
80
+ plt.ylabel('Angle (rad)')
81
+ plt.title(f'Command vs RightArm Joint {i+1} (rad)')
82
+ plt.legend(loc='best', fontsize=10)
83
+ plt.grid(True)
84
+ plt.tight_layout()
85
+ save_path = os.path.join(plot_data_dir, f'rightarm_joint_{i+1}.png')
86
+ plt.savefig(save_path)
87
+ plt.close()
88
+ print(f"image saved: {save_path}")
89
+
90
+ # 4. alldata.png: 14 subplots (7 left + 7 right)
91
+ fig, axs = plt.subplots(14, 1, figsize=(14, 32), sharex=True)
92
+ for i in range(7):
93
+ axs[i].plot(command_time_list, command_val_list[:, i], label='Command (LeftArm, rad)', color='b', linestyle='-')
94
+ axs[i].plot(joint_time_list_left, joint_val_list_left[:, i], label=f'LeftArm Joint {i+1} (rad)', color='r', linestyle='--')
95
+ axs[i].set_ylabel('Angle (rad)')
96
+ axs[i].set_title(f'LeftArm Joint {i+1}')
97
+ axs[i].legend(loc='best', fontsize=9)
98
+ axs[i].grid(True)
99
+ for i in range(7):
100
+ axs[i+7].plot(command_time_list, command_val_list[:, i+7], label='Command (RightArm, rad)', color='b', linestyle='-')
101
+ axs[i+7].plot(joint_time_list_right, joint_val_list_right[:, i], label=f'RightArm Joint {i+1} (rad)', color='g', linestyle='--')
102
+ axs[i+7].set_ylabel('Angle (rad)')
103
+ axs[i+7].set_title(f'RightArm Joint {i+1}')
104
+ axs[i+7].legend(loc='best', fontsize=9)
105
+ axs[i+7].grid(True)
106
+ axs[-1].set_xlabel('Elapsed Time (s)')
107
+ fig.suptitle(f'Command and Actual Angle || {motion_name}', fontsize=18)
108
+ plt.tight_layout(rect=[0, 0, 1, 0.97])
109
+ alldata_path = os.path.join(plot_data_dir, 'alldata.png')
110
+ plt.savefig(alldata_path)
111
+ plt.close()
112
+ print(f"all joints plot saved: {alldata_path}")
113
+
114
+ # ==== Plot "raw velocity" ====
115
+ fig, axs = plt.subplots(14, 1, figsize=(14, 32), sharex=True)
116
+ for i in range(7):
117
+ orig_vel_left = joint_velocity_left[:, i]
118
+ axs[i].plot(joint_time_list_left, orig_vel_left, label=f'LeftArm Joint {i+1} (deg/s)', color='r')
119
+ axs[i].set_ylabel('Velocity (deg/s)')
120
+ axs[i].set_title(f'LeftArm Joint {i+1}')
121
+ axs[i].legend(loc='best', fontsize=9)
122
+ axs[i].grid(True)
123
+ for i in range(7):
124
+ orig_vel_right = joint_velocity_right[:, i]
125
+ axs[i+7].plot(joint_time_list_right, orig_vel_right, label=f'RightArm Joint {i+1} (deg/s)', color='g')
126
+ axs[i+7].set_ylabel('Velocity (deg/s)')
127
+ axs[i+7].set_title(f'RightArm Joint {i+1}')
128
+ axs[i+7].legend(loc='best', fontsize=9)
129
+ axs[i+7].grid(True)
130
+ axs[-1].set_xlabel('Elapsed Time (s)')
131
+ fig.suptitle(f'Raw Joint Velocity (deg/s) || {motion_name}', fontsize=18)
132
+ plt.tight_layout(rect=[0, 0, 1, 0.97])
133
+ raw_vel_path = os.path.join(plot_data_dir, 'alldata_velocity_raw.png')
134
+ plt.savefig(raw_vel_path)
135
+ plt.close()
136
+ print(f"raw velocity plot saved: {raw_vel_path}")
137
+
138
+ # ==== Plot compare: numerical diff & smoothing vs raw velocity ====
139
+ fig, axs = plt.subplots(14, 1, figsize=(14, 32), sharex=True)
140
+ for i in range(7):
141
+ t_left, num_vel_left = calc_numeric_velocity(joint_time_list_left, joint_val_list_left[:, i])
142
+ num_vel_left_deg = num_vel_left
143
+ num_vel_left_smooth = smooth_curve(num_vel_left_deg, window_size=11)
144
+ orig_vel_left = joint_velocity_left[:, i]
145
+ axs[i].plot(t_left, num_vel_left_smooth, label=f'NumDiff Smoothed (deg/s)', color='orange', linestyle='-')
146
+ axs[i].plot(joint_time_list_left, orig_vel_left, label=f'Raw (deg/s)', color='r', linestyle='--')
147
+ axs[i].set_ylabel('Velocity (deg/s)')
148
+ axs[i].set_title(f'LeftArm Joint {i+1}')
149
+ axs[i].legend(loc='best', fontsize=9)
150
+ axs[i].grid(True)
151
+ for i in range(7):
152
+ t_right, num_vel_right = calc_numeric_velocity(joint_time_list_right, joint_val_list_right[:, i])
153
+ num_vel_right_deg = num_vel_right
154
+ num_vel_right_smooth = smooth_curve(num_vel_right_deg, window_size=11)
155
+ orig_vel_right = joint_velocity_right[:, i]
156
+ axs[i+7].plot(t_right, num_vel_right_smooth, label=f'NumDiff Smoothed (deg/s)', color='orange', linestyle='-')
157
+ axs[i+7].plot(joint_time_list_right, orig_vel_right, label=f'Raw (deg/s)', color='g', linestyle='--')
158
+ axs[i+7].set_ylabel('Velocity (deg/s)')
159
+ axs[i+7].set_title(f'RightArm Joint {i+1}')
160
+ axs[i+7].legend(loc='best', fontsize=9)
161
+ axs[i+7].grid(True)
162
+ axs[-1].set_xlabel('Elapsed Time (s)')
163
+ fig.suptitle(f'Velocity Comparison (NumDiff Smoothed vs Raw) || {motion_name}', fontsize=18)
164
+ plt.tight_layout(rect=[0, 0, 1, 0.97])
165
+ vel_compare_path = os.path.join(plot_data_dir, 'alldata_velocity_compare.png')
166
+ plt.savefig(vel_compare_path)
167
+ plt.close()
168
+ print(f"velocity compare plot saved: {vel_compare_path}")
169
+
170
+ # ==== Plot current ====
171
+ fig, axs = plt.subplots(14, 1, figsize=(14, 32), sharex=True)
172
+ for i in range(7):
173
+ axs[i].plot(joint_time_list_left, joint_current_left[:, i], label=f'LeftArm Joint {i+1} current (A)', color='r')
174
+ axs[i].set_ylabel('Current (A)')
175
+ axs[i].set_title(f'LeftArm Joint {i+1}')
176
+ axs[i].legend(loc='best', fontsize=9)
177
+ axs[i].grid(True)
178
+ for i in range(7):
179
+ axs[i+7].plot(joint_time_list_right, joint_current_right[:, i], label=f'RightArm Joint {i+1} current (A)', color='g')
180
+ axs[i+7].set_ylabel('Current (A)')
181
+ axs[i+7].set_title(f'RightArm Joint {i+1}')
182
+ axs[i+7].legend(loc='best', fontsize=9)
183
+ axs[i+7].grid(True)
184
+ axs[-1].set_xlabel('Elapsed Time (s)')
185
+ fig.suptitle(f'Joint Current || {motion_name}', fontsize=18)
186
+ plt.tight_layout(rect=[0, 0, 1, 0.97])
187
+ cur_img_path = os.path.join(plot_data_dir, 'alldata_current.png')
188
+ plt.savefig(cur_img_path)
189
+ plt.close()
190
+ print(f"current plot saved: {cur_img_path}")
191
+
192
+ # ==== Plot temperature ====
193
+ fig, axs = plt.subplots(14, 1, figsize=(14, 32), sharex=True)
194
+ for i in range(7):
195
+ axs[i].plot(joint_time_list_left, joint_temperature_left[:, i], label=f'LeftArm Joint {i+1} temperature (°C)', color='r')
196
+ axs[i].set_ylabel('Temp (°C)')
197
+ axs[i].set_title(f'LeftArm Joint {i+1}')
198
+ axs[i].legend(loc='best', fontsize=9)
199
+ axs[i].grid(True)
200
+ for i in range(7):
201
+ axs[i+7].plot(joint_time_list_right, joint_temperature_right[:, i], label=f'RightArm Joint {i+1} temperature (°C)', color='g')
202
+ axs[i+7].set_ylabel('Temp (°C)')
203
+ axs[i+7].set_title(f'RightArm Joint {i+1}')
204
+ axs[i+7].legend(loc='best', fontsize=9)
205
+ axs[i+7].grid(True)
206
+ axs[-1].set_xlabel('Elapsed Time (s)')
207
+ fig.suptitle(f'Joint Temperature || {motion_name}', fontsize=18)
208
+ plt.tight_layout(rect=[0, 0, 1, 0.97])
209
+ temp_img_path = os.path.join(plot_data_dir, 'alldata_temperature.png')
210
+ plt.savefig(temp_img_path)
211
+ plt.close()
212
+ print(f"temperature plot saved: {temp_img_path}")
213
+
214
+ if __name__ == "__main__":
215
+ run_dir = 'robot1/robot1_0kg'
216
+ files = [f for f in os.listdir(run_dir) if os.path.isfile(os.path.join(run_dir, f))]
217
+ print(f"Found {len(files)} files in {run_dir}:")
218
+
219
+ for filename in files:
220
+ print(f"Plotting {filename} ...")
221
+ plot_data(run_dir + "/" + filename)
222
+ print("All plotting completed.")
223
+
224
+
realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-04-58.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585cc39f1df81d1e25e0f46f5800c64d5fd9cf43b3f628a6aad8344322383022
3
+ size 1034608
realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-05-25.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:752c72219a61286fd634c9376b5f1687cf24ce7c21f999c40b53561b02d10d5a
3
+ size 1027880
realman/robot1/robot1_0kg/motion_index_0_slow1_0kg_0-KIT_167_go_over_beam07_poses_2025-08-26_14-05-51.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8b64f0394448c2b65f010a1a133c90d8912bfdbca88acacb6906807e0c95e11
3
+ size 1026256
realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-23-38.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86b9a689c5eaa4f845fb3ee34bad506071013a494ed76dc1fb26451e757287dd
3
+ size 793208
realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-24-02.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd6f31a72ebf46e747a586c45a7decd547c407341062c380fdecd015e8f012ad
3
+ size 793440
realman/robot1/robot1_0kg/motion_index_10_slow1_0kg_0-KIT_379_push_recovery_right06_poses_2025-08-26_14-24-27.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:738921208e34a202e33831131bff1edf8d2336a7408c775e53952ef83d3ee700
3
+ size 797848
realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-24-51.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0727cb8d2617fd7c0dd65cb5f9a5784e75ce025eedefe7a2a981175e3b3cf3fe
3
+ size 709168
realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-25-15.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71cfd0799097f670125293d888515035dfba3b2acaf18d54f5094a565d68b8d2
3
+ size 714968
realman/robot1/robot1_0kg/motion_index_11_slow1_0kg_0-KIT_572_tennis_forehand_left02_poses_2025-08-26_14-25-40.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:499d1485d27826974a6aafba842553afa35801fbf9d35b6724e3d6f9594f3c58
3
+ size 714968
realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-26-12.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0fa9376666ea7a2cc6cb8bed7a769929932dd9d97a94d4fbc7857ccd29208f9
3
+ size 1393992
realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-26-43.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b85ebea531f81f15016349a92f34ef654b4e24027e06ebc1396d42439bf6f29
3
+ size 1395848
realman/robot1/robot1_0kg/motion_index_12_slow1_0kg_0-KIT_572_violin_right14_poses_2025-08-26_14-27-14.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fcf3909271014d81b03ba10d46921d0231df9c524ec8e5256809444d0cd7a3f
3
+ size 1396776
realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-27-43.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca59ad624a8a21f2c058dc668c9421f70e407eb28c93edc30fc9c44933132bd5
3
+ size 1238464
realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-28-12.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f4c86d4f4f7cb50d62979091e3665e85b56355fbf78729821a468fd97b6c146
3
+ size 1233592
realman/robot1/robot1_0kg/motion_index_13_slow1_0kg_0-KIT_3_kneel_up_hold02_poses_2025-08-26_14-28-41.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eae2865fa4f6c5887278985cb0e07f9e94b1382cfb56ecd5507458cde7afe666
3
+ size 1232896
realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-29-07.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e6f61900893832b6185ac076fbdf6a68fadafa6fd017c1049f92d3ec8653482
3
+ size 888160
realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-29-34.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c210abf6f1a0a8c179b080aef850113cc59135eec4bc97542c1f0fda1a64a0e1
3
+ size 887464
realman/robot1/robot1_0kg/motion_index_14_slow1_0kg_0-ACCAD_Male2MartialArtsStances_c3d_D9 - warm up to ready to warm up_poses_2025-08-26_14-30-01.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df062a0651136930037fe0e9dbf61872735d7105e7502e426ac86c13f915eb69
3
+ size 895584
realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-31-13.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fe5baaa07740d10e061af04881e0e9a60e50bff6effe4214a0d2e21ca13ea03
3
+ size 5244936
realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-32-23.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3076613737b78f24246f5d8fb4acde7407313b819de531f355badda0317de063
3
+ size 5246560
realman/robot1/robot1_0kg/motion_index_15_slow1_0kg_0-CMU_86_86_13_poses_2025-08-26_14-33-33.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d510e4990ab66607d84d5030ee2f6d90ae4e7c36c8b0dbaf5ce8cec3106ff3a5
3
+ size 5234264
realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-34-13.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dc2d8afbadb3021fa6554eb29378262037a6c5f1e334f1f8c10c8db9892dc81
3
+ size 2508432
realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-34-53.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e040e512f37b703e1070638d7c195637b316b11d1870c803749b6b5b2e9c9dde
3
+ size 2521192
realman/robot1/robot1_0kg/motion_index_16_slow1_0kg_0-CMU_93_93_02_poses_2025-08-26_14-35-33.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5071186b7290d2e62c813c3b84b3db741b6281c4b69f2fa8127f5c632c02f8c
3
+ size 2512144
realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-36-26.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b00fead99fe8d51a69e943d3a61cb90951a69eb4b3135ed42aea0bc1395d34d
3
+ size 3810560
realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-37-18.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ea4566a9bd2db6347cce8ba305f80220363eec7d9c5642eb63e7b8578529870
3
+ size 3821232
realman/robot1/robot1_0kg/motion_index_17_slow1_0kg_0-CMU_55_55_03_poses_2025-08-26_14-38-11.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02559a4365fe4a6c9431dfdc0ef5f92300ab6edf90ad70fd9c90a7d48e00c670
3
+ size 3835152
realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-38-45.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39ada4cafcf9598a116237c298f428febf0bcb4e2bbce9222057fb1d01e717c0
3
+ size 1602720
realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-39-19.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c365fad8e3fd2907dabc48e6a2b70bf2fc7f16b97dd4f536b0ad29ff318ea61
3
+ size 1593672
realman/robot1/robot1_0kg/motion_index_18_slow1_0kg_0-CMU_118_118_32_poses_2025-08-26_14-39-52.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe9d3e34b3c0a2a874eae364f6ef024bad7a6ec88bdcf94edb22f30d8e5b2b79
3
+ size 1600632
realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-40-37.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e174ab46f64ed9be1bbb4162756092628a4f0848ee2f81679a2d6ad159d597f
3
+ size 3285400
realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-41-21.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47c6e2e39cabf537bf26756c0b8cb57ef6a84c70b4d4e42cec5f7c815e8e282a
3
+ size 3268696
realman/robot1/robot1_0kg/motion_index_19_slow1_0kg_0-CMU_31_31_13_poses_2025-08-26_14-42-06.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7edd325999c5db05f6f28357ffeb389c1fcb5ec267b4c6c54f623b1caedb854
3
+ size 3280296
realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-06-30.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c008f1147aede2a32a39868a10b416ad7f7da054ba988978eb895fb04514b83
3
+ size 2050024
realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-07-09.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71fed9e68e2b277cd3d097c98ace3af6fae7cc8236d5598953bb8912bac4d67b
3
+ size 2051880
realman/robot1/robot1_0kg/motion_index_1_slow1_0kg_0-KIT_441_drinking03_poses_2025-08-26_14-07-48.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:289d18faa17c48ce0c2b36d662a59814e576abbb459ee17386e258d361135f0d
3
+ size 2058608
realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-42-27.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab517154f54e7fc182876d0f6b7c888f13637866a4bfbc38816cf529d33ca4e
3
+ size 770296
realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-42-51.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98a6a4de667d225096672598e755a5312563d3a7b04c68a8ad6cc46e14c52469
3
+ size 771224
realman/robot1/robot1_0kg/motion_index_20_slow1_0kg_0-CMU_140_140_08_poses_2025-08-26_14-43-15.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4380bb8a60309e9b553450844b4a0f0cb755b9bb3ebaca2c1985300d39cc51b0
3
+ size 767280
realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-43-42.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2ddc2f6390d67b6b48e20129fe36d8eaf86011308f3aca6b5b6a06504d40bb8
3
+ size 1069944
realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-44-09.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a272fc69909aa17003c37cf71b9ce2d279143e87a882c55e872f2c8c04c687e1
3
+ size 1070640
realman/robot1/robot1_0kg/motion_index_21_slow1_0kg_0-SSM_synced_20160330_03333_chicken_wings_poses_2025-08-26_14-44-36.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aeb207978f1bfe8903641ebde5d9f1841f7f9c0d3ce5724916545cd24f93205
3
+ size 1064376
realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-45-10.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2176283e50c868058c72c7521395b91e26834f305d8ebfe64ecb01b15642d190
3
+ size 1757456
realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-45-44.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2744539c01a093b006ae300fdef6e81880d57f6f8270c55450fa9a68f277b854
3
+ size 1752120
realman/robot1/robot1_0kg/motion_index_22_slow1_0kg_0-SSM_synced_20160330_03333_shake_hips_poses_2025-08-26_14-46-18.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb7c15956b5fb753e6a0edb3b1debe786f07903dc41c83178e5855ac7dd2b497
3
+ size 1769288
realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-46-44.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:502e979414cae68c3abc09c3415381384cce5579bd5b5d551a2aaeb9d9f45354
3
+ size 953840
realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-47-10.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fb1fa9427b77fd2d72e89b14083e872b06db663127681a743bc99f2fe3dbd9e
3
+ size 956392
realman/robot1/robot1_0kg/motion_index_23_slow1_0kg_0-SSM_synced_20160330_03333_shoulders_poses_2025-08-26_14-47-36.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29d22f521dc4e3f42b929282da26da3ca62b18d84877f6a11864f0dfc43580b7
3
+ size 954304