Add post process station and related resources (#195)

* 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.
This commit is contained in:
Roy
2025-12-23 18:40:09 +08:00
committed by GitHub
parent acbaff7bb7
commit 5fec753fb9
16 changed files with 3874 additions and 261 deletions

View File

@@ -0,0 +1,38 @@
from unilabos.devices.workstation.post_process.post_process_warehouse import WareHouse, warehouse_factory
# =================== Other ===================
def post_process_warehouse_4x3x1(name: str) -> WareHouse:
"""创建post_process 4x3x1仓库"""
return warehouse_factory(
name=name,
num_items_x=4,
num_items_y=3,
num_items_z=1,
dx=10.0,
dy=10.0,
dz=10.0,
item_dx=137.0,
item_dy=96.0,
item_dz=120.0,
category="warehouse",
)
def post_process_warehouse_4x3x1_2(name: str) -> WareHouse:
"""已弃用创建post_process 4x3x1仓库"""
return warehouse_factory(
name=name,
num_items_x=4,
num_items_y=3,
num_items_z=1,
dx=12.0,
dy=12.0,
dz=12.0,
item_dx=137.0,
item_dy=96.0,
item_dz=120.0,
category="warehouse",
)