OSI Validator

Travis Build Status

OSI Validator checks the compliance of OSI messages with predefined rules. The full documentation on usage and customization of the rules is available here.

Usage

usage: osivalidator [-h] [--rules RULES] --data DATA
                    [--type {SensorView,GroundTruth,SensorData}]
                    [--output OUTPUT] [--timesteps TIMESTEPS] [--debug]
                    [--verbose]

Validate data defined at the input

optional arguments:
--help, -h                                      Show this help message and exit.
--rules RULES, -r RULES                         Directory with text files containig rules.
--data DATA, -d DATA                            Path to the file with OSI-serialized data.
--type {SensorView,GroundTruth,SensorData},     Name of the message type used to serialize data.
    -t {SensorView,GroundTruth,SensorData}
--output OUTPUT, -o OUTPUT                      Output folder of the log files.
--timesteps TIMESTEPS                           Number of timesteps to analyze. If -1, all.
--debug                                         Set the debug mode to ON.
--verbose                                       Set the verbose mode to ON (display in console).

Installation

OSI Validator has been developed with Python 3.6 within a virtual environment on Ubuntu 18.04.

Global

Clone repository osi-validation:

git clone https://github.com/OpenSimulationInterface/osi-validation.git

Change directory:

cd osi-validation

Clone repository open-simulation-interface:

git clone https://github.com/OpenSimulationInterface/open-simulation-interface.git

Clone repository proto2cpp:

git clone https://github.com/OpenSimulationInterface/proto2cpp.git

Install:

sudo pip3 install .