update pbnbv

This commit is contained in:
2025-05-19 16:32:04 +08:00
parent b98753bfbb
commit cd436605a5
25 changed files with 1228 additions and 178 deletions

View File

@@ -83,7 +83,8 @@ class PredictResult:
def get_center_matrix_pose_from_cluster(self, cluster):
min_total_distance = float('inf')
center_matrix_pose = None
if len(cluster) == 1:
return cluster[0]
for matrix_pose in cluster:
total_distance = 0
for other_matrix_pose in cluster:
@@ -94,6 +95,7 @@ class PredictResult:
min_total_distance = total_distance
center_matrix_pose = matrix_pose
return center_matrix_pose
def get_candidate_poses(self):