This repository provides JSON parsers and models for the VDMA - LIF (Layout Interchange Format), which is used for defining track layouts and exchanging information between the integrator of driverless transport vehicles and a third-party master control system.
The repository contains:
- A JSON Schema that defines the structure of the VDMA-LIF format: lif-schema.json. The schema is based on the Version 1.0.0 guidline document.
- Parsers and models written in:
- Python
- C#
- TypeScript
The models are generated from the lif-schema.json using quicktype.
All package are available through the standard package managers.
Add vdma-lif package
pip install vmda_lif
Usage:
from vdma_lif.parser import LIFParser
layout_collection = LIFParser.from_file("example.lif.json")
Add Vdma.Lif package
dotnet add package Vdma.Lif
Usage:
LifLayoutCollection layoutCollection = LifJsonParser.FromJson(lifJson);
Add vmda-lif package
npm install --save-dev vdma-lif
Usage:
import { LIFParser } from 'vdma-lif';
const layoutCollection = LIFParser.fromJson(jsonString)
Install dependencies
npm install
- Python >=3.7
- Build requirements:
In
src/python
runpip install .[dev]
npm generate:python
- .NET 8.0
- Install Resharper CLI
dotnet tool install -g JetBrains.ReSharper.GlobalTools
npm generate:csharp
- Install npm
- In
src/typescript
runnpm install
npm generate:typescript
Contributions are welcome! If you want to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
Please ensure all changes are covered by unit tests.
This project is licensed under the MIT License. See the LICENSE file for details.
Let me know if you need any further adjustments!
This repository is maintained by Continua Systems GmbH. For any inquiries, please contact us at:
- Website: https://continua.systems
- Email: [email protected]