This repository defines an exchange format for the dimensions of a soccer field in the RoboCup SPL and contains a program to validate files in that format.
Give field-validate.py
a list of files on the commandline and it will check all files whether they follow the schema defined by the SPL rules.
This program needs Python 3 to run. No other libraries or dependencies are required.
This program uses a JSON Schema to auto-generate validation code. The schema can be found in generate-validator
. To auto-generate the validation code Python 3 and the Python-dependencies from requirements.txt
are needed.
In tests
you find JSON files describing a field constructed to the standard dimensions of the SPL rules.