mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 05:15:10 +00:00
* Add post process station and related resources - Created JSON configuration for post_process_station and its child post_process_deck. - Added YAML definitions for post_process_station, bottle carriers, bottles, and deck resources. - Implemented Python classes for bottle carriers, bottles, decks, and warehouses to manage resources in the post process. - Established a factory method for creating warehouses with customizable dimensions and layouts. - Defined the structure and behavior of the post_process_deck and its associated warehouses. * feat(post_process): add post_process_station and related warehouse functionality - Introduced post_process_station.json to define the post-processing station structure. - Implemented post_process_warehouse.py to create warehouse configurations with customizable layouts. - Added warehouses.py for specific warehouse configurations (4x3x1). - Updated post_process_station.yaml to reflect new module paths for OpcUaClient. - Refactored bottle carriers and bottles YAML files to point to the new module paths. - Adjusted deck.yaml to align with the new organizational structure for post_process_deck.
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
from os import name
|
|
from pylabrobot.resources import Deck, Coordinate, Rotation
|
|
|
|
from unilabos.devices.workstation.post_process.warehouses import (
|
|
post_process_warehouse_4x3x1,
|
|
post_process_warehouse_4x3x1_2,
|
|
)
|
|
|
|
|
|
|
|
class post_process_deck(Deck):
|
|
def __init__(
|
|
self,
|
|
name: str = "post_process_deck",
|
|
size_x: float = 2000.0,
|
|
size_y: float = 1000.0,
|
|
size_z: float = 2670.0,
|
|
category: str = "deck",
|
|
setup: bool = True,
|
|
) -> None:
|
|
super().__init__(name=name, size_x=1700.0, size_y=1350.0, size_z=2670.0)
|
|
if setup:
|
|
self.setup()
|
|
|
|
def setup(self) -> None:
|
|
# 添加仓库
|
|
self.warehouses = {
|
|
"原料罐堆栈": post_process_warehouse_4x3x1("原料罐堆栈"),
|
|
"反应罐堆栈": post_process_warehouse_4x3x1_2("反应罐堆栈"),
|
|
|
|
}
|
|
# warehouse 的位置
|
|
self.warehouse_locations = {
|
|
"原料罐堆栈": Coordinate(350.0, 55.0, 0.0),
|
|
"反应罐堆栈": Coordinate(1000.0, 55.0, 0.0),
|
|
|
|
}
|
|
|
|
for warehouse_name, warehouse in self.warehouses.items():
|
|
self.assign_child_resource(warehouse, location=self.warehouse_locations[warehouse_name])
|
|
|
|
|
|
|
|
|
|
|
|
|