Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pallet_sim-0.0.22.tar.gz (402.7 kB view hashes)

Uploaded Source

Built Distribution

pallet_sim-0.0.22-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page