Pallet simulation library developed at THWS
Project description
Pallet Simulator
Pallet Simulator is a Python package that provides functionalities for visualizing pallets inside orders and simulating their stability.
Installation
You can install the Pallet Simulator package using pip:
pip install pallet-sim
Usage
Please refer to the examples folder for detailed examples on how to use the Pallet Simulator. The examples demonstrate how to visualize pallets within orders and simulate their stability.
Data Structures
The Pallet Simulator uses a JSON-based data structure to represent orders. An order object contains the following fields:
{
"orderID": "order_id",
"pallets": [
{
"palletNr": "palletNr",
"palletType": "EURO_PALLET",
"palletDimension": {
"x": 800.0,
"y": 1200.0
},
"boxes": [
{
"product_code": "0",
"anchor": {
"x": 313.0,
"y": 606.0,
"z": 0.0
},
"dimension": {
"x": 159.0,
"y": 298.0,
"z": 211.0
},
"approach": "9"
}
]
}
],
"articles": {
"0": {
"description": "description",
"weight": 5054.0,
"shippingGroup": "A"
}
}
}
In this structure, an order consists of multiple pallets, each identified by a palletNr. Each pallet has a type (palletType), dimensions (palletDimension), and a list of boxes (boxes). Each box is defined by a product code (product_code), anchor coordinates (anchor), dimensions (dimension), and an approach value (approach).
The articles field represents the articles or products included in the order. Each article is identified by a numeric key (e.g., "0") and has a description, weight, and shipping group.
The Pallet Simulator utilizes this order structure to generate visual representations of pallets and perform stability simulations.
Feel free to modify and adapt this structure based on your specific requirements and use cases.
For more details on how to use the Pallet Simulator, please refer to the documentation and examples provided with the package.
Example files are located under pallet_data/generic_data.
License
This project is licensed under the MIT License. See the LICENSE file for details.
The MIT License is a permissive open-source license that allows you to use, modify, and distribute the software for both commercial and non-commercial purposes. It provides you with the freedom to adapt the codebase to suit your needs while providing attribution to the original authors.
For more information about the MIT License, please visit opensource.org/licenses/MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pallet_sim-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 306d8b832c4105c26d3e662c913a2c340916b1bd7b352638374d5619f5c411ad |
|
MD5 | 0535b1db2a07c13cd22f77b78ce16e4a |
|
BLAKE2b-256 | c6918281c486a71300df3437f8afdff64af6affac3f9312c3874cefdc5801517 |