all_zero = True # 假设所有的值都是0
for obj in fusion_orin_obj.objects:
attributes = [obj.id, obj.type, obj.confidence, obj.track_status, obj.age_total,
obj.age_measured, obj.source, obj.vel_x, obj.vel_y, obj.acc_x,
obj.acc_y, obj.heading_angle, obj.pos_x, obj.pos_y, obj.length,
obj.width, obj.height]
if any(attr != 0 for attr in attributes):
all_zero = False
break
if all_zero:
print("所有属性的值都是0")
else:
print("存在非0的属性值")