From 0c2e47f014ac89462a2134a417d7737a3d042954 Mon Sep 17 00:00:00 2001 From: moscowsky Date: Mon, 22 Jun 2026 17:08:21 +0300 Subject: [PATCH] +400 fix --- .../gen_locations_on_mesh/gen_locations_on_mesh_node.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gen_locations_on_mesh/gen_locations_on_mesh/gen_locations_on_mesh_node.py b/gen_locations_on_mesh/gen_locations_on_mesh/gen_locations_on_mesh_node.py index 1c2eb8c..edc1946 100644 --- a/gen_locations_on_mesh/gen_locations_on_mesh/gen_locations_on_mesh_node.py +++ b/gen_locations_on_mesh/gen_locations_on_mesh/gen_locations_on_mesh_node.py @@ -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: succ = False break - if succ or curr_trial == max_trial - 1: + if succ or curr_trial == num_generation_trials - 1: break # выдать найденную точку if len(existing_ps) > 0: @@ -303,8 +303,8 @@ class GenLocationsOnMeshNode(Node): m.id = ind m.type = Marker.SPHERE m.action = Marker.ADD - m.pose.position.x = self.existing_points[ind][0] - m.pose.position.y = self.existing_points[ind][1] + m.pose.position.x = self.existing_points[ind][0] + 400 + m.pose.position.y = self.existing_points[ind][1] + 400 m.pose.position.z = self.existing_points[ind][2] m.pose.orientation.w = 1. m.scale.x = 1.