From dacbe2ec74fdb8859347672e92cb22a56ba6ded3 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Fri, 13 Dec 2024 15:51:55 +0300 Subject: [PATCH] wall pos --- robot/conveyor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robot/conveyor.py b/robot/conveyor.py index c8ab3f6..bd5696c 100644 --- a/robot/conveyor.py +++ b/robot/conveyor.py @@ -113,8 +113,9 @@ class ConveyorBelt: self.boxes.remove(box_id) self.conveyor_stopped = True wall_position = list(pos) - dir_wall = (self.direction + 1) % 3 - wall_position[dir_wall] += self.box_size[dir_wall] + dir_wall = (self.direction + 1) % (3 - 1) + wall_position[dir_wall] -= self.box_size[dir_wall] * 0.5 + self.call_robot(wall_position, box_id) else: new_pos = list(pos[:])