|
@@ -38,6 +38,8 @@ def cal_jump(result):
|
|
|
initial_ankle_height = float(result[list(result.keys())[0]]["leg_heigh"])
|
|
initial_ankle_height = float(result[list(result.keys())[0]]["leg_heigh"])
|
|
|
min_ankle_height = initial_ankle_height
|
|
min_ankle_height = initial_ankle_height
|
|
|
for index in result:
|
|
for index in result:
|
|
|
|
|
+ if len(result[index]) == 0:
|
|
|
|
|
+ continue
|
|
|
if float(result[index]["leg_heigh"]) < initial_ankle_height - 3:
|
|
if float(result[index]["leg_heigh"]) < initial_ankle_height - 3:
|
|
|
if float(result[index]["leg_heigh"]) < float(min_ankle_height) and float(
|
|
if float(result[index]["leg_heigh"]) < float(min_ankle_height) and float(
|
|
|
result[index]["leg_heigh"]) != 0.0:
|
|
result[index]["leg_heigh"]) != 0.0:
|
|
@@ -48,6 +50,8 @@ def cal_jump(result):
|
|
|
min_hip_angle = float(result[list(result.keys())[0]]["hip_right_angle"])
|
|
min_hip_angle = float(result[list(result.keys())[0]]["hip_right_angle"])
|
|
|
min_wrist_index = list(result.keys())[0]
|
|
min_wrist_index = list(result.keys())[0]
|
|
|
for index in result:
|
|
for index in result:
|
|
|
|
|
+ if len(result[index]) == 0:
|
|
|
|
|
+ continue
|
|
|
if float(result[index]["leg_heigh"]) >= initial_ankle_height - 3:
|
|
if float(result[index]["leg_heigh"]) >= initial_ankle_height - 3:
|
|
|
if float(result[index]["hip_right_angle"]) <= min_hip_angle and float(
|
|
if float(result[index]["hip_right_angle"]) <= min_hip_angle and float(
|
|
|
result[index]["hip_right_angle"]) != 0.0:
|
|
result[index]["hip_right_angle"]) != 0.0:
|
|
@@ -60,6 +64,8 @@ def cal_jump(result):
|
|
|
# break
|
|
# break
|
|
|
leave_index = min_hip_angle_index
|
|
leave_index = min_hip_angle_index
|
|
|
for index in result:
|
|
for index in result:
|
|
|
|
|
+ if len(result[index]) == 0:
|
|
|
|
|
+ continue
|
|
|
if float(index) < float(min_hip_angle_index):
|
|
if float(index) < float(min_hip_angle_index):
|
|
|
if float(result[index]["leg_heigh"]) >= initial_ankle_height - 3:
|
|
if float(result[index]["leg_heigh"]) >= initial_ankle_height - 3:
|
|
|
if float(result[index]["wrist_heigh"]) <= min_wrist_height and float(
|
|
if float(result[index]["wrist_heigh"]) <= min_wrist_height and float(
|
|
@@ -104,6 +110,8 @@ def cal_jump(result):
|
|
|
highest_ankle_index = list(result.keys())[0]
|
|
highest_ankle_index = list(result.keys())[0]
|
|
|
min_ankle_height = initial_ankle_height
|
|
min_ankle_height = initial_ankle_height
|
|
|
for index in result:
|
|
for index in result:
|
|
|
|
|
+ if len(result[index]) == 0:
|
|
|
|
|
+ continue
|
|
|
if float(index) > float(leave_index):
|
|
if float(index) > float(leave_index):
|
|
|
if float(result[index]["leg_heigh"]) < initial_ankle_height - 3:
|
|
if float(result[index]["leg_heigh"]) < initial_ankle_height - 3:
|
|
|
if float(result[index]["knee_right_angle"]) >= float(max_hip_angle):
|
|
if float(result[index]["knee_right_angle"]) >= float(max_hip_angle):
|
|
@@ -140,6 +148,8 @@ def cal_jump(result):
|
|
|
lowest_ankle_height = float(result[reland_index]["leg_heigh"])
|
|
lowest_ankle_height = float(result[reland_index]["leg_heigh"])
|
|
|
lowest_ankle_index = list(result.keys())[0]
|
|
lowest_ankle_index = list(result.keys())[0]
|
|
|
for index in result:
|
|
for index in result:
|
|
|
|
|
+ if len(result[index]) == 0:
|
|
|
|
|
+ continue
|
|
|
if int(index) <= int(highest_ankle_index):
|
|
if int(index) <= int(highest_ankle_index):
|
|
|
continue
|
|
continue
|
|
|
else:
|
|
else:
|