wall pos
This commit is contained in:
parent
72a5eb2bbd
commit
dacbe2ec74
|
@ -113,8 +113,9 @@ class ConveyorBelt:
|
||||||
self.boxes.remove(box_id)
|
self.boxes.remove(box_id)
|
||||||
self.conveyor_stopped = True
|
self.conveyor_stopped = True
|
||||||
wall_position = list(pos)
|
wall_position = list(pos)
|
||||||
dir_wall = (self.direction + 1) % 3
|
dir_wall = (self.direction + 1) % (3 - 1)
|
||||||
wall_position[dir_wall] += self.box_size[dir_wall]
|
wall_position[dir_wall] -= self.box_size[dir_wall] * 0.5
|
||||||
|
|
||||||
self.call_robot(wall_position, box_id)
|
self.call_robot(wall_position, box_id)
|
||||||
else:
|
else:
|
||||||
new_pos = list(pos[:])
|
new_pos = list(pos[:])
|
||||||
|
|
Loading…
Reference in New Issue