main
moscowsky 1 month ago
parent 2da387b2de
commit 0c2e47f014

@ -162,7 +162,7 @@ def gen_new_point(piece, trs, vs, existing_ps, dist_limit, vert_shift,
if np.linalg.norm(p - ep) < dist_limit: if np.linalg.norm(p - ep) < dist_limit:
succ = False succ = False
break break
if succ or curr_trial == max_trial - 1: if succ or curr_trial == num_generation_trials - 1:
break break
# выдать найденную точку # выдать найденную точку
if len(existing_ps) > 0: if len(existing_ps) > 0:
@ -303,8 +303,8 @@ class GenLocationsOnMeshNode(Node):
m.id = ind m.id = ind
m.type = Marker.SPHERE m.type = Marker.SPHERE
m.action = Marker.ADD m.action = Marker.ADD
m.pose.position.x = self.existing_points[ind][0] m.pose.position.x = self.existing_points[ind][0] + 400
m.pose.position.y = self.existing_points[ind][1] m.pose.position.y = self.existing_points[ind][1] + 400
m.pose.position.z = self.existing_points[ind][2] m.pose.position.z = self.existing_points[ind][2]
m.pose.orientation.w = 1. m.pose.orientation.w = 1.
m.scale.x = 1. m.scale.x = 1.

Loading…
Cancel
Save