This commit is contained in:
Kseninia Mikhaylova 2024-12-13 15:51:55 +03:00
parent 72a5eb2bbd
commit dacbe2ec74
1 changed files with 3 additions and 2 deletions

View File

@ -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[:])