update 调试识别后的z

This commit is contained in:
Gogs
2024-12-09 14:31:35 +08:00
parent e43859b522
commit 959b80e733

View File

@ -602,7 +602,9 @@ class Feeding:
_, img, xyz, uvw, points = self.detection.get_position(Point_isVision=False, Box_isPoint=True, First_Depth=True, Iter_Max_Pixel=30,save_img_point=0, Height_reduce=30, width_reduce=30) _, img, xyz, uvw, points = self.detection.get_position(Point_isVision=False, Box_isPoint=True, First_Depth=True, Iter_Max_Pixel=30,save_img_point=0, Height_reduce=30, width_reduce=30)
self.detection_image = img self.detection_image = img
target_position,noraml_base = getPosition(*xyz,*uvw,None,points) target_position,noraml_base = getPosition(*xyz,*uvw,None,points)
position = Real_Position().init_position(*target_position[:3],*noraml_base[:3]) position = Real_Position().init_position(*target_position[:3],*noraml_base[:3])
position.Z = position.Z+40
return position return position
def next_start(self,reverse=False): def next_start(self,reverse=False):
print(f'原点到初始位置的第{self.feedConfig.feedLine.origin2start_pos_index}') print(f'原点到初始位置的第{self.feedConfig.feedLine.origin2start_pos_index}')